B52:= BARSLAST(REF(C,2) =REF(MA5,2) AND REF(C,1) REF(MA5,1))+2;
B51:= BARSLAST(REF(C,2) =REF(MA5,2) AND REF(C,1) REF(MA5,1))+1;
DZ:=IF((REF(C,2) =REF(MA5,2)) AND (REF(C,1) REF(MA5,1)),IF(REF(MA5,2) REF(MA5,1),A51,A52),IF(BARSSINCE(REF(C,2) =REF(MA5,2) AND REF(C,1) REF(MA5,1)) 0,IF(REF(MA5, B52) REF(MA5, B51),REF(MA5,B51)*0.98, REF(MA5,B52)*0.98), REF(MA5,1)));
A201:= REF(MA20,1)*0.98;
A202:= REF(MA20,2)*0.98;
B202:= BARSLAST(REF(C,2) =REF(MA20,2) AND REF(C,1) REF(MA20,1))+2;
B201:= BARSLAST(REF(C,2) =REF(MA20,2) AND REF(C,1) REF(MA20,1))+1;
ZZ:=IF((REF(C,2) =REF(MA20,2)) AND (REF(C,1) REF(MA20,1)),IF(REF(MA20,2) REF(MA20,1),A201,A202),IF(BARSSINCE(REF(C,2) =REF(MA20,2) AND REF(C,1) REF(MA20,1)) 0,IF(REF(MA20, B202) REF(MA20, B201),REF(MA20,B201)*0.98, REF(MA20,B202)*0.98), REF(MA20,1)));
短支撑:DZ,COLORWHITE;
中支撑:ZZ,COLORMAGENTA;
白轨:MA(CLOSE,25)+MA(CLOSE,25)*20/100,COLORWHITE;
虚轨:MA(CLOSE,25)+MA(CLOSE,25)*13/100,POINTDOT,COLORGRAY;
黄轨:MA(CLOSE,25)+MA(CLOSE,25)*6/100,COLORYELLOW;
反压:MA(HIGH,5),COLORMAGENTA;
A:=LLV(REF(LOW,1),2)+(HHV(REF(HIGH,1),2)-LLV(REF(LOW,1),2))/2,COLORGREEN;
盈损线:A,COLORGREEN;
MA10:MA(C,10),POINTDOT,LINETHICK4,COLORRED;
中轨:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORLIBLUE,LINETHICK2;
牛熊轨:MA(CLOSE,25), POINTDOT,COLORBLUE;
下白轨:MA(CLOSE,25)-MA(CLOSE,25)*15/100,COLORWHITE;
ZDF:=(C-REF(C,1))/REF(C,1)*100;STICKLINE(ZDF 9.8,O,C,3,0),COLOR0000FF;
DRAWICON(REF(C,1) REF(DZ,1) AND C =DZ AND C A,LOW,1);
DRAWICON(REF(C,1) REF(A,1) AND C =A,LOW,1);