【通达信源码分享】分时横盘突破主图源码指标公式 真正反映逐笔
2022-09-05未知 编 辑:掌上指标
公式源码:
TT:=BARSCOUNT(CLOSE);
CC:=CLOSE;
均线:=IF(BETWEEN(C/(SUM(AMOUNT,0)/SUM(VOL*100,0)),1.05,0.95)=0,MA(C,0),
(SUM(AMOUNT,0)/SUM(VOL*100,0)));
上均:=(均线*1.007 );
下均:=(均线/1.005 );
时长:=IF(HOUR>=10 AND HOUR<15,1,0);
涨幅:=(CLOSE>DYNAINFO(3))>1.02;
跌幅:=(CLOSE/DYNAINFO(3))<0.98;
横盘:=((HHV(CLOSE,BARSCOUNT(CLOSE))-LLV(CLOSE,BARSCOUNT(CLOSE)))/CLOSE)<0.03;
YY:=SMA(VOL,30,1);
放量:=SUM(VOL,6)>REF(MA(VOL,30),1)*0.03;
涨跌幅:=涨幅 OR 跌幅;
横涨:=横盘 AND 放量 AND (C>上均);
DRAWTEXT(FILTER(横涨,50),均线,'★突破'),COLOR00FF00;