请老师编写同花顺选股指标,要求5日线,10日线都拐头向上,5日线在10日线之上,股价在5日线之上

2024-12-12 01:30:15
推荐回答(3个)
回答1:

MA5:=MA(C,5);
MA10:=MA(C,10);
XG:MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND MA5>MA10 AND C>MA5;

(已在同花顺测试)

回答2:

MA5:=MA(C,5);
MA10:=MA(C,10);
X1:=CROSS(MA5,MA(MA5,2));
X2:=CROSS(MA10,MA(MA10,2));
X3:=MA5>MA10;
X4:=C>MA5;
ZRXG:X1*X2*X3*X4;

回答3:

XG:MA(C,5)>REF(MA(C,5),1) AND MA(C,10)>REF(MA(C,10),1) AND MA(C,5)>MA(C,10) AND C>MA(C,5);