九毛八公式指标
试图找一macd指标,能统计某一时间段内0轴上交叉点的个数和轴下交叉点个数
公式模块:
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);