网友求助:
源码:
Jm:=CROSS("Macd.DIFF","Macd.DEA");
JmCOUNT:=COUNT(Jm,BARSLAST("Macd.DEA">=0));
Jmtj:40*("Macd.DEA"<0 and Count(JmCount=2,21)=1);
Drawtext (Jmtj,40,'Macd在0轴线以下二次金叉');
条件选股:60*(Jmtj and Slope(Ma(C,5),2)>0),colorgreen;
Drawtext (条件选股,50,'5日3%成功率:44.71%');
解答如下:
Jm:=CROSS(MACD.DIFF,MACD.DEA);
JmCOUNT:=COUNT(Jm,BARSLAST(MACD.DEA>=0));
Jmtj:40*(MACD.DEA<0 AND COUNT(JmCount=2,21)=1);
DRAWTEXT (Jmtj,40,'Macd在0轴线以下二次金叉');
条件选股:60*(Jmtj AND SLOPE(MA(C,5),2)>0),colorgreen;
DRAWTEXT (条件选股,50,'5日3%成功率:44.71%');