BOLL:MA(C,20);
UB:BOLL+2*STD(C,20);
LB:BOLL-2*STD(C,20);
MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
JX:= REF(H-L,1);
JXA:= REF((H-L)-(C-L),1)*0.191*1.382;
SX:= 2;
轴点A:= REF(H+C+L,1)/3;
撑AA:= 轴点A-JX*0.382;
撑BB:= 轴点A-JX*0.618;
撑CC:= 轴点A-JX;
撑DD:=轴点A-JX*1.382+IF(REF(COUNT(C =REF(MAX(C,O),1),2) 1 AND C =REF(H,1),1),JXA,-JXA);
压AA:= 轴点A+JX*0.382;
压BB:= 轴点A+JX*0.618;
压CC:= 轴点A+JX;
压DD:=轴点A+JX*1.618+IF(REF(COUNT(C =REF(MAX(C,O),1),2) 1 AND C =REF(H,1),1),JXA,-JXA);
撑A:= 撑AA;
撑B:=撑BB;
撑C:=撑CC;
撑D:=撑DD;
压A:=压AA;
压B:=压BB;
压C:=压CC;
压D:=压DD;
{九毛八公式指标网www.9m8.cn}
DRAWTEXT_FIX(ISLASTBAR,0.27,0.05,0,'撑A:'),COLOR0000FF;
DRAWNUMBER_FIX(ISLASTBAR,0.30,0.05,0,撑A),COLOR0000FF;
DRAWTEXT_FIX(ISLASTBAR,0.40,0.05,0,'撑B:'),COLOR0000FF;
DRAWNUMBER_FIX(ISLASTBAR,0.43,0.05,0,撑B),COLOR0000FF;
DRAWTEXT_FIX(ISLASTBAR,0.50,0.05,0,'撑C:'),COLOR0000FF;
DRAWNUMBER_FIX(ISLASTBAR,0.53,0.05,0,撑C),COLOR0000FF;
DRAWTEXT_FIX(ISLASTBAR,0.60,0.05,0,'撑D:'),COLOR0000FF;
DRAWNUMBER_FIX(ISLASTBAR,0.63,0.05,0,撑D),COLOR0000FF;