P = 1 3 2
N:=POW(2,P);
FF:=CONST(REF(C,1));
AAJ:=IF((FF < 100),FF,(FF / 100));
A:=INTPART(((N * (LOG(AAJ) / LOG(2))) + 1));
Y1:=(A/N);
Y2:=((A+1 ) / N);
Y3:=((A+2 ) / N);
Y4:=((A+3 ) / N);
Z1:=((A-1) / N);{第一个支撑}
Z2:=((A-2) / N);
Z3:=((A-3) / N);
Z4:=((A-4) / N);
ZC1:=IF((FF > 100),(POW(2,Z1) * 100),POW(2,Z1));
ZC2:=IF((FF > 100),(POW(2,Z2) * 100),POW(2,Z2));
ZC3:=IF((FF > 100),(POW(2,Z3) * 100),POW(2,Z3));
ZC4:=IF((FF > 100),(POW(2,Z4) * 100),POW(2,Z4));
YL1:=IF((FF > 100),(POW(2,Y1) * 100),POW(2,Y1));
YL2:=IF((FF > 100),(POW(2,Y2) * 100),POW(2,Y2));
YL3:=IF((FF > 100),(POW(2,Y3) * 100),POW(2,Y3));
YL4:=IF((FF > 100),(POW(2,Y4) * 100),POW(2,Y4));
压一:IF(CURRBARSCOUNT<=240,YL1,DRAWNULL),COLOR05DDFC;
支一:IF(CURRBARSCOUNT<=240,ZC1,DRAWNULL),COLOR00F24F;
支二:IF(CURRBARSCOUNT<=240,ZC2,DRAWNULL),CIRCLEDOT,COLORBROWN ,LINETHICK1;
压二:IF(CURRBARSCOUNT<=240,YL2,DRAWNULL)CIRCLEDOT,COLORWHITE ,LINETHICK1;
支三:IF(CURRBARSCOUNT<=240,ZC3,DRAWNULL),CIRCLEDOT,COLORBLUE,LINETHICK1;
压三:IF(CURRBARSCOUNT<=240,YL3,DRAWNULL)CIRCLEDOT,COLORMAGENTA,LINETHICK1;
支四:IF(CURRBARSCOUNT<=240,ZC4,DRAWNULL)CIRCLEDOT,COLORLIMAGENTA,LINETHICK1;
压四:IF(CURRBARSCOUNT<=240,YL4,DRAWNULL)CIRCLEDOT,COLORBROWN ,LINETHICK1;