AA1:MA(C,5);
BB1:MA(C,15);
A:=crOSS(AA1,BB1);
STICKLINE(A,LLV(L,4),LLV(L,4),50,1),COLORBROWN;
DRAWTEXT(A,LLV(L,4),'止损线'),COLORBROWN;
VAR1:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));
VAR2:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));
VAR3:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(LOW,6))),34));
DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW*0.992),1);
DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH*1.008),2);
DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(LOW*0.979),'B'),COLORRED;
DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH*1.025),'S'),COLORGREEN;
年:MA(CLOSE,34),COLORA8A8A8,LINETHICK1;
STICKLINE(C>=年 AND C>=O,C,O,2.8,0),COLORRED;
STICKLINE(C>=年 AND C>=O,H,L,0,0),COLORRED;
STICKLINE(C>=年 AND C
STICKLINE(C<年 AND C<=O,C,O,2.8,1),COLORFFFF00;
STICKLINE(C<年 AND C<=O,H,L,0,1),COLORFFFF00;
STICKLINE(C<年 AND C>O,C,H,0,1),COLORFFFF00;
STICKLINE(C<年 AND C>O,O,L,0,1),COLORFFFF00;