Breakeven Trailing Stop Algorithm Script

 
Hi

I need a script that was add a stop loss at open price +1, if market has moved by 5 pips in my favour. Then I would like to trail the order by 5 pips at a time.

Would appreciate any help.
 
Sameer Shariff: I need a script that was add a stop loss at open price +1, if market has moved by 5 pips in my favour. Then I would like to trail the order by 5 pips at a time.
  1. Why do you need script? You describe the build in trailing stop. (Right click on the order.)
  2. https://www.mql5.com/en/forum/188856#comment_4795367
 
whroeder1:
  1. Why do you need script? You describe the build in trailing stop. (Right click on the order.)
  2. https://www.mql5.com/en/forum/188856#comment_4795367

I would like to automate this in an EA I am writing. But I haven't had any success.
 
Sameer Shariff:
Hi

I need a script that was add a stop loss at open price +1, if market has moved by 5 pips in my favour. Then I would like to trail the order by 5 pips at a time.

Would appreciate any help.

trailing stop