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);
问题不清楚,突破了多长时间?
如果是昨天突破今日回到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;