九毛八公式指标
公式模块:
DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIFF,9);
macd:=(DIFF-DEA)*2;
JCCOUNT:=COUNT(crOSS(DIFF,DEA),BArslAST(DEA>=0));
二次金叉:CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
以上是二次金叉公式,求助老师编一个三次金叉背离选股。
DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIFF,9);
MacD:=(DIFF-DEA)*2;
AA:=BARSLAST(REF(CROSS(DIFF,DEA),1));
BB:=REF(C,AA+1)>C AND REF(DIFF,AA+1)<DIFF AND CROSS(DIFF,DEA);
底背离:=FILTER(BB>0,5);
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
三次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=3,21)=1;
底背离 AND 三次金叉;