顶:80;
VAR1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
做空线: SMA(VAR1,3,1),LINETHICK2,COLORGREEN;
VAR2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
做多线: SMA(VAR2,5,1)-8,LINETHICK2,COLORRED;
逃顶线:71;
强弱分界线:40;
买入:=(crOSS(做多线,做空线) AND 做多线>40 AND REF(做多线,3)<做多线 AND 做空线>40 AND C>=O AND C/REF(C,1)>=1.03);
STICKLINE(买入,0,10,2,0),COLORBLUE;DRAWTEXT_FIX(1,0.60,0.75,0,' '),COLORYELLOW;
STICKLINE(买入,20,10,2,0),COLORYELLOW;
STICKLINE(买入,20,30,1.8,1),COLORYELLOW;
STICKLINE(买入,40,30,1.5,0),COLORYELLOW;
STICKLINE(买入,40,50,1.2,1),COLORYELLOW;
STICKLINE(买入,60,50,0.9,0),COLORYELLOW;
STICKLINE(买入,60,70,0.6,0),COLORLIRED;
DRAWTEXT(CROSS(71,做多线),71,'减仓'),COLORGREEN;
DRAWTEXT(CROSS(40,做多线),40,'清仓'),COLORGREEN;
DRAWTEXT(买入,10,' 买入'),COLORWHITE;