通达信波段抓牛副图+选股指标公式源码

本文公式指标的选股公式如下:

红钻波段抓牛之红钻信号选股指标公式

顶线:=(1+6/100)*MA(CLOSE,25),COLORLIGRAY;
底线:=(1-6/100)*MA(CLOSE,25),COLORLIGRAY;
VAR1:=REF(CLOSE,1);
VAR2:=SMA(MAX(CLOSE-VAR1,0),6,1)/SMA(ABS(CLOSE-VAR1),6,1)*100;
VAR3:=CROSS(84,VAR2);
VAR4:=DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1);
VAR5:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR6:=SMA(VAR5,3,1);
VAR7:=SMA(VAR6,3,1);
VAR8:=(VAR6+VAR7)/2;
VAR9:=VAR8>REF(VAR8,1) AND REF(VAR8,1)<REF(VAR8,2);
VAR10:=VAR8<REF(VAR8,1) AND REF(VAR8,1)>REF(VAR8,2);
VAR11:=EMA(CLOSE,2);{爱查股 www.aichagu.com}
VAR12:=COUNT(REF(EMA(CLOSE,3),1)<REF(EMA(CLOSE,3),2),5)=5 AND EMA(CLOSE,3)>REF(EMA(CLOSE,3),1);
{DRAWTEXT(FILTER(BBI>REF(BBI,1) AND CLOSE>VAR4,10),LOW*0.99,'▲抓牛'),COLORLIRED;}
抓牛信号:FILTER(BBI>REF(BBI,1) AND CLOSE>VAR4,10);
{DRAWICON(VAR12,LOW*0.995,25);}
红钻信号:VAR12;

通达信波段抓牛副图+选股指标公式截图如下,源码已上传到附件中。

波段抓牛副图