以下公式适合通达信股票软件。选出股票后能否买入依然还要综合参考大趋势和其它指标。金叉并非万能,有时刚刚进入金叉或准金叉状态,也可能是上一波反弹的结束,下一波下跌的开始。只有当金叉周期的前后周期均为上涨趋势,金叉的威力才最大。业绩的持续增长才是技术指标的前提和保证。1、0轴上方第一次金叉选股公式:DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA := EMA(DIFF,9);MACD := 2*(DIFF-DEA);xg:cross(diff,dea) and dea>-1.0 and dearef(CLOSE,1) and CLOSE>=ma(c,60);
或:
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); XG:DIF>0 AND DEA>0 AND CROSS(DIF,DEA);
2、0轴上方二次金叉的选股公式:JC:IF(SUM(IF(MACD>0 AND CROSS(MACD.DIF,MACD.DEA),1,0),0)-HHV(IF(IF(CROSS(MACD.DEA,0),1,0),SUM(IF(MACD>0 AND CROSS(MACD.DIF,MACD.DEA),1,0),0),0),0)=2 AND SUM(IF(MACD>0 AND CROSS(MACD.DIF,MACD.DEA),1,0),0)>REF(SUM(IF(MACD>0 AND CROSS(MACD.DIF,MACD.DEA),1,0),0),1),10,0);{选股设JC=10即可}
3.0轴下方一次金叉的选股公式:DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=(DIFF-DEA)*2;低位金叉:CROSS(DIFF,DEA) AND DIFFREF(DIF,AA+1) AND AA=1;DIF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;CC:=CROSS(DIF,DEA);CCC:=COUNT(CC,3)>=1;三金:=AAA AND BBB AND CCC;三金叉:FILTER(三金,3),COLORFF00FF;
使用说明:该选股公式适合超级短线,快进快出具有一定的风险因素,此时的股价往往处于拉高拔升阶段。要求使用者特别关注股价所处的位置,如果过于高位防止庄家诱多。低位可大胆搏杀,短期回档被套也有回旋余地。
8、四线粘合N1:=5;N2:=10;N3:=20;M:=1;MA1:=MA(C,N1);MA2:=MA(C,N2);MA3:=MA(C,N3);A3:=V>REF(V,1)*1.5 AND V>MA(V,5);MAX(MA1,MAX(MA2,MA3))/MIN(MA1,MIN(MA2,MA3))O AND V> REF(V,1) AND FINANCE(7)=0 and DEA>=0 and CROSS(DIFF,DEA);a5:=MA(CLOSE,5)>MA(CLOSE,10);v5:=VOL>MA(VOL,5) and MA(VOL,5)>MA(VOL,10);dje and a5 AND V5 AND MA(CLOSE,30)>=REF(MA(CLOSE,30),1) ======================================================================将macd指标的参数调为12,26,27主要用法:当30日均线走平或上扬,5日均量大于10日均量,当日成交量大于5日均量,5日均线金叉或已金叉10日均线,macd指标中diff线在0轴上死叉dea线,DIFF线下穿0轴后,又再次上穿并在0轴或0轴上金叉dea线,应果断介入。但若此时K线离30日,30周,30小时均线较远,不能介入
20、======================================================================条件选股公式:(空中缆绳) 缺省周期:日线======================================================================DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA := EMA(DIFF,27);MACD := 2*(DIFF-DEA);b:=MIN(DIFF,DEA)/MAX(diff,dea)>0.95;MA(CLOSE,30)>REF(MA(CLOSE,30),1) and diff>0 and dea>0 AND MACD>REF(MACD,1) and b======================================================================将MACD指标的参数调为sh:12;long:26;M:27用法:30日均线上扬或走平,主力开始洗盘。这时macd指标中的DIFF线随股价的回调而与DEA线在0轴上粘合数值几乎相等,只要5日均线在30日均线上方金叉或已金叉10日均线,macd指标红柱加长,DIFF线脱离DEA线上扬,就是买点。
--------------------------------------------------------------------- 以上公式经过验证有效!