九毛八公式指标
通达信的优化KDJ涨停寻找底部起爆点指标源码如下,需要“大胆杀入”绿色柱出现时自动选股,请老师将指标改为选股公式,谢谢了。 源码: RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100); 短期底部:=LLV(OPEN,30); K:SMA(RSV,3,1); D:SMA(K,3,1); J:(3 * K) - (2 * D),COLOR0000FF,LINETHICK2; VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100); VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100); VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100); VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6); VAR6:=MA(VAR5,3); SG:=EMA(HHV(HIGH,1),8); X1:=EMA(CLOSE,8); X30:=((X1 < REF(X1,1)) AND (CLOSE < X1)); X31:=IF(((SG < REF(SG,1)) OR X30),1,0); 全仓出击:=((((COUNT((X31 = 1),4) = 3) AND (X31 = 0)) AND (((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) > 0.085)) * 89); STICKLINE(全仓出击,89,0,3,0); DRAWICON((全仓出击 >= 89),全仓出击,1); DRAWTEXT((全仓出击 >= 89),89,'*大胆杀入');
公式模块:
SG:=EMA(HHV(HIGH,1),8);
X1:=EMA(CLOSE,8); X30:=((X1 < REF(X1,1)) AND (CLOSE < X1)); X31:=IF(((SG < REF(SG,1)) OR X30),1,0); 全仓出击:=((((COUNT((X31 = 1),4) = 3) AND (X31 = 0)) AND (((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) > 0.085)) * 89); XG:全仓出击>=89;