请高手把下列通达信公式改为选股公式,要求红色柱或红点刚出现并且在负2以上。

2024-12-18 12:58:32
推荐回答(3个)
回答1:

{OK红色柱或红点刚出现}
VAR2:=MA(CLOSE, 5);
VAR3:=MA(CLOSE, 10);
VAR4:=MA(CLOSE, 20);
VAR5:=MA(CLOSE, 30);
VAR6:=(VAR2+VAR3+VAR4+VAR5)/4;
VAR7:=(VAR6-REF(VAR6,15))/REF(VAR6, 15)*100;
VAR8:=(VAR6-REF(VAR6, 15))/REF(VAR6, 15)*100;
VAR9:=EMA(VAR7,8);
AA:=VAR7BB:=VAR7>REF(VAR7, 1);
REF(AA,1) AND BB ;

回答2:

VAR2:=MA(CLOSE, 5);
VAR3:=MA(CLOSE, 10);
VAR4:=MA(CLOSE, 20);
VAR5:=MA(CLOSE, 30);
VAR6:=(VAR2+VAR3+VAR4+VAR5)/4;
VAR7:=(VAR6-REF(VAR6,15))/REF(VAR6, 15)*100;
TJ:=VAR7>REF(VAR7, 1);
TJ AND REF(NOT(TJ),1);

回答3:

VAR2:=MA(CLOSE, 5);
VAR3:=MA(CLOSE, 10);
VAR4:=MA(CLOSE, 20);
VAR5:=MA(CLOSE, 30);
VAR6:=(VAR2+VAR3+VAR4+VAR5)/4;
VAR7:=(VAR6-REF(VAR6,15))/REF(VAR6, 15)*100;
VAR8:=(VAR6-REF(VAR6, 15))/REF(VAR6, 15)*100;
VAR9:=EMA(VAR7,8);
REF(VAR7,1)REF(VAR7, 1) AND VAR7>-2 AND VAR9>-2;