MACD底部(0轴以下)N金叉选股(公式,源码,图解)介绍
MACD底部(0轴以下)N金叉选股(公式,源码,图解)
小新许久未发帖了,大盘跌得很惨,想必我们很多小散也给套了。最近小新研究了一些抄底心得,略有所获,现将其中一选股公式向大家汇报,共同参详参详。小新觉得抄底要抄那些股价一路向下跌而底部却慢慢向上高筑的股票,如下2张图:
选股源码:
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
N次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=N,22)=1;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(DIFF,A1+1)<DIFF AND REF(DEA,A1+1)<DEA AND REF(L,A1+1)>L AND CROSS(DIFF,DEA);
XG:N次金叉 AND 底背离;
{N取值范围1~8};
激进的同学可将参数调整,如:8,9,13
gd15550