VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;
A:SMA(VAR1,7,1),LINETHICK1,COLOR00FFFF;
VAR2:=SMA(A,5,1);
B:IF(crOSS(A,VAR2) AND CROSS(MA(C,5),MA(C,13) AND A>50) ,VAR2*2,VAR2),COLORYELLOW;
{PARTLINE(B,B>REF(B,1),RGB(255,0,0),B<REF(B,1),RGB(0,255,0)),LINETHICK2;}
DRAWBAND(B,RGB(255,0,0),REF(B,1),RGB(0,255,0));
{IF(B>REF(B,1),B,DRAWNULL),LINETHICK2,COLORRED;}
{IF(B<REF(B,1),B,DRAWNULL),LINETHICK2,COLORGREEN;}
DRAWTEXT(CROSS(B,A) ,B,'止盈'),COLOR0000FF;
DRAWTEXT(CROSS(A,B) ,A,'买'),COLOR00FFFF;
趋势成本:REF(A,BArslAST(CROSS(REF(A,3),A))+1),POINTDOT,COLORD3A9FF,LINETHICK2;