拾金线:ma(sma((l+h+2*c)/4-ref((l+h+2*c)/4,1),5,1)/sma(abs((l+h+2*c)/4-ref((l+h+2*c)/4,1)),5,1)*100,1)+50,COLORMAGENTA;
顶:120,POINTDOT,COLORWHITE;
风险:100,POINTDOT,COLORWHITE;
中:50,POINTDOT,COLORWHITE;
次底:0,POINTDOT,COLORWHITE;
底:-20,POINTDOT,COLORWHITE;
等待:IF(拾金线<=底,10,-20),LINETHICK2,COLORYELLOW;
等待2:=IF(CROSS(底,拾金线),10,-20);
DRAWTEXT(等待2=10,5,'等待'),LINETHICK1,COLORYELLOW;
买入:IF(CROSS(拾金线,底) AND 底<拾金线,20,-20),LINETHICK2,COLORRED;
DRAWTEXT(买入=20,20,'★买入'),COLORRED;
买入2:IF(CROSS(拾金线,次底) AND 拾金线>0 AND 拾金线<25,20,-20),LINETHICK2,COLORCYAN;
DRAWTEXT(买入2=20,20,'★买2'),COLORCYAN;
DRAWTEXTABS,linethick1,COLOR00EEff;
减仓:IF(拾金线>=风险,100,120),LINETHICK2,colorwhite;
减仓2:=IF(CROSS(拾金线,风险),100,120);
DRAWTEXT(减仓2=100,100,'减仓'),LINETHICK1,COLORWHITE;
卖出:IF( CROSS(风险,拾金线),100,120),LINETHICK2,COLORGREEN;
DRAWTEXT(卖出=100,95,'卖出'),LINETHICK1,COLORGREEN;