n1:=9;
DRAWGBK(C,Strip(RGB(0,160,60),RGB(00,160,60),0));
mtm:=c-ref(c,1);
ZLGJ:100*ema(ema(mtm,n1),n1)/ema(ema(abs(mtm),n1),n1),coloryellow;{N1=9}
{drawtextabs(20,60,'三点测顶底,决胜2:1 '),LINETHICK2,Coloryellow;}{文字显示,可以不用}
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
主力潜伏中:COUNT(MACD<0,10)=10,COLORRED,LINETHICK0;
STICKLINE(主力潜伏中,0,MACD*30,8,0),COLORRED;
100,COLOR1C1C1C;
0,COLOR1C1C1C;
-100,COLOR1C1C1C;
{-100,STICK,COLOR111C1C;};{去掉竖线,更清爽}