N1:=5;
N2:=10;
N3:=20;
N4:=60;
A:=0;
B:=0.2;
XG:(MA(C,N1)>REF(MA(C,N1),1))*(MA(C,N2)>REF(MA(C,N2),1))*(MA(C,N3)>REF(MA(C,N3),1))*(MA(C,N4)>REF(MA(C,N4),1))*(MA(C,N1)>MA(C,N2))*(MA(C,N2)>MA(C,N3))*(MA(C,N3)>MA(C,N4))*CROSS(MACD.DIF,MACD.DEA)*(MAX(MACD.DIF,MACD.DEA)A);
参数N1到N4是均线参数,具体数值你自己设置4条均线,参数从小到大排列,参数A是金叉大于值的下线,参数B是金叉小于值的上线,例如金叉大于0小于0.2,那参数A:=0;参数B:=0.2;需要什么数值自己改范围
JZX1:=MA(C,5)>MA(C,10);
JZX2:=MA(C,10)>MA(C,20);
JZX3:=MA(C,20)>MA(C,30);
JZX4:=MA(C,30)>MA(C,60);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=(DIFF-DEA)*2;
JZX:=CROSS(DIFF,DEA);
XG:JZX1 AND JZX2 AND JZX3 AND JZX4 AND JZX AND BETWEEN(DIFF,-0.2,0.2);
均线你没说是那几条,不过没问题,你改一下数字就可以。BETWEEN(DIFF,-0.2,0.2)这一句你可以调整数字正负0.2来调整快线距离0轴的的值,来满足你认为的到0轴附近。
均线多头排列连个数值都没有写什么啊。
写公式没问题,但你这均线多头向上哪几根均线啊也没说啊,没有具体条件怎么编写啊