Find your favorite Trailing Stop script. Edit the part which says (> stoploss*point) to (>stoploss+(10*point)). Good_luck.
ubzen:
Find your favorite Trailing Stop script. Edit the part which says (> stoploss*point) to (>stoploss+(10*point)). Good_luck.
if(AllowJumpTrailingStop==false) if((OrderStopLoss()<Bid-TrailingStop*Point || OrderStopLoss()==0) && Bid-OrderOpenPrice()>=TrailingStop*Point) OrderModify(OrderTicket(),OrderOpenPrice(),Bid-TrailingStop*Point,OrderTakeProfit(),0,Yellow); if(AllowJumpTrailingStop) if((OrderStopLoss()<Bid-JumpTrailingStop*Point || OrderStopLoss()==0) && Bid-OrderOpenPrice()>=OrderStopLoss()+JumpTrailingStop*Point) OrderModify(OrderTicket(),OrderOpenPrice(),Bid-JumpTrailingStop*Point,OrderTakeProfit(),0,Yellow);
Maybe i misunderstood something but it jumped only one time.
Although looks to me good.
AllowJumpTrailingStop = 10;
Make sure you program the EA to work with both buy positions and sell positions. As I see it, your code is only for buys, and maybe you are seeing the problem for sell trades.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Can somebody please share with function that
moves trailing stop by jumps.
For example, moves stop loss every 10 pips.
Many thanks.