N:=5;
【箱顶】:PEAK(HIGH,N,1),LINETHICK3,COLOR0000FF;
【箱底】:TROUGH(LOW,N,1),LINETHICK2,COLORFF8000;
【最低】:=LLV(L,0);
ZDL:=MAX("CR.MA1",MAX("CR.MA2",MAX("CR.MA3","CR.MA4")));
ZXL:=MIN("CR.MA1",MIN("CR.MA2",MIN("CR.MA3","CR.MA4")));
M:=IF("CR.CR">ZDL OR ZDL=DRAWNULL,6,IF("CR.CR"<ZXL,4,5));
BD:=1+M/100;
DS:=ROUND(LOG(OPEN/【最低】)/LOG(BD));
【入货】:POW(BD,DS)*【最低】,CIRCLEDOT,colorred;
【出货】:【入货】*BD,CROSSDOT,colorgreen;
【上限】:【出货】*BD,CIRCLEDOT;
【下限】:【入货】/BD,CIRCLEDOT;
【区间】:M,NODRAW;