回踩预警 预警公式
配合强势回调指标使用,这是一个预警公式,需要先选出个股再预警
MA5:=MA(C,5);
中 := MA(CLOSE,20);
上:= 中 + 2*STD(CLOSE,20);
下:= 中 - 2*STD(CLOSE,20);
攻击角度:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;
买点:=IF(C>MA5 AND 攻击角度>60 AND 上>REF(上,1),1,0);
回踩0:=IF(O<REF(C,1)*0.96 AND REF(买点,1)=1,0,0);///www.88gs.com
回踩1:=IF(O<REF(C,1)*0.975 AND O>REF(C,1)*0.96 AND REF(买点,1)=1,O*(1-0.020),0);
回踩2:=IF(O<=REF(C,1)*0.985 AND O>=REF(C,1)*0.975 AND REF(买点,1)=1,O*(1-0.015),0);
回踩3:=IF(O>=REF(C,1)*0.985 AND O<=REF(C,1)*1.015 AND REF(买点,1)=1,O*(1-0.020),0);
回踩4:=IF(O>=REF(C,1)*1.015 AND O<=REF(C,1)*1.025 AND REF(买点,1)=1,O*(1-0.015),0);
回踩5:=IF(O>REF(C,1)*1.025 AND O<REF(C,1)*1.04 AND REF(买点,1)=1,O*(1-0.020),0);
回踩6:=IF(O>REF(C,1)*1.04 AND O<REF(C,1)*1.07 AND REF(买点,1)=1,O*(1-0.030),0);
回踩7:=IF(O>REF(C,1)*1.07 AND REF(买点,1)=1,O*(1-0.040),0);
回踩进场:回踩0+回踩1+回踩2+回踩3+回踩4+回踩5+回踩6+回踩7;
L<=回踩进场