tt:=BARSCOUNT(C);CC:=CLOSE;
JX1:=SUM(AMOUNT,tt)/SUM(VOL*100,tt);
VAR10:=BETWEEN(C/JX1,1.05,0.95);
均线:IF(VAR10=0,MA(C,TT),JX1),COLOR00FFFF;
SJ:=均线+AVEDEV(C,tt)*2;XJ:=均线-AVEDEV(C,tt)*2;
上均:IF(SJ>=DYNAINFO(3)*1.1,DYNAINFO(3)*1.1,SJ),COLOR00FF00;
下均:IF(XJ<=DYNAINFO(3)/1.1,DYNAINFO(3)/1.1,XJ),COLORFF6600;
时长:=if(HOUR>=13 AND HOUR<15 ,1,0);
涨幅:=(C/DYNAINFO(3))>1.02;跌幅:=(C/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,SJ);
横盘上涨:CROSS(横涨,0),COLORRED,POINTDOT,LINETHICK0;
DRAWTEXT(CROSS(横涨,0),均线,'上涨'),COLORRED;
PP:= FILTER(横涨,100) ;
DRAWTEXT(PP,上均,'★突破'),COLORFF00FF;
VERTLINE( PP,3),COLOR00FF00,LINETHICK2; |