手机端
当前位置:爱约股 > 公式技巧 > mac交叉点统计

mac交叉点统计

爱约股解答:

N:=240;

DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);

DEA :=EMA(DIFF,9);

轴上金叉:=CROSS(DIFF,DEA) AND DEA>0;

轴上死叉:=CROSS(DEA,DIFF) AND DEA>0;

轴下金叉:=CROSS(DIFF,DEA) AND DEA<0;

轴下死叉:=CROSS(DEA,DIFF) AND DEA<0;

轴上交叉点数:COUNT(轴上金叉,240)+COUNT(轴上死叉,240);

轴下交叉点数:COUNT(轴下金叉,240)+COUNT(轴下死叉,240);

TAG:
分享至:

相关推荐