"indefinite" trailingstop

 
Good morning. Can anyone help?


I would like to include in my EA an "indefinite" trailingstop: while the price up a certain amount of points, the EA change the stop loss, indefinitely. What is the code,opetaror, or fuction? my intention is to not use "modify" every time.I guess it must be a way that the EA do the modification indefinitely, without having to modify orders all the time.


Hopefully someone can help me. Many greetings, and Many Success!

trader201

 
May be you mean trailingstop by step?
 
extern int trailing.pips = 0;
...
if (trailing.pips != 0 && Bid > SL+trailing.pips*pips2dbl) ordermodify(...
 

Hello WHRoeder. I´m sorry for write after this time. Thanks WHRoeder for your help.

trader201


WHRoeder:

Reason: