分时横盘突破指标源码:tt:=BARSCOUNT(CLOSE);
CC:CLOSE,COLORWHITE,LINETHICK2;
均线:SUM(AMOUNT,0)/SUM(VOL*100,0),COLOR00FFFF;
上均:均线 + AVEDEV(C,tt)*2,COLOR00FF00;
下均:均线 - AVEDEV(C,tt)*2,COLORFF6600;
时长:=if(HOUR>=13 AND HOUR<15 ,1,0);
涨幅:=(CLOSE/DYNAINFO(3))>1.02;
跌幅:=(CLOSE/DYNAINFO(3))<0.98;
横盘:=((HHV(CLOSE,TT)-LLV(CLOSE,TT))/CLOSE)<0.03;
yy:=SMA(VOL,30,1);
放量:=(yy-LLV(Llv(yy,1),30))/(HHV(Hhv(yy,1),30)-LLV(Llv(yy,1),30))>0.92;
涨跌幅:=涨幅 OR 跌幅;
横涨:=涨跌幅=0 and 横盘 and 时长 and 放量 and CROSS(CC,上均);
横盘上涨:CROSS(横涨,0),COLORRED,POINTDOT,LINETHICK0;
DRAWTEXT(CROSS(横涨,0),均线,'上涨'),COLORRED;
PP:= FILTER(横涨,100) ;
DRAWTEXT(PP,上均,'★突破'),COLORFF00FF;
VERTLINE( PP,3),COLOR00FF00,LINETHICK2;