请高手把这个公式改为通达信条件预警公式,股价突破中:MA100,后回踩中:MA100

2024-12-13 20:47:27
推荐回答(2个)
回答1:

MA100:=MA(C,100);
上:=MA100*(1+20/100);
中:=MA100;
下:=MA100*(1-18/100);

X:=LONGCROSS(C,MA100,2);

REF(X,3)=1 AND (L/MA100 <=1.03 AND L/MA100>=0.97);

回答2:

问题不清楚,突破了多长时间?
如果是昨天突破今日回到MA100以下则:
MA100:=MA(C,100);
a:=cross(ref(c,3),ref(ma100,3));
a1:=all(ref(c,1)>ref(ma100,1),2);
b:a and a1 and c<=ma100;