Libraries: Function library for maintaining positions with a simple trailing stop

 

Function library for maintaining positions with a simple trailing stop:

With the help of this library it is possible to implement the ability to maintain positions with a simple trailing stop in any Expert Advisor.

This library is universal and is designed to be able to connect to virtually any EA using the #include compiler directive and granting the EA the ability to maintain positions with a simple trailing stop.

Author: Igor Kim

 
Tks for the posting of this library... I appreciate it and using it with good results...
Two issues about it:
a) just for the SELL part, you have (on the if) the question about if the SL == 0, BUT not for the BUY branch of the function... as far as I see, this is a mistake... the function should be equal (considering signs) for both operations...
b) Why is the function of the STEP? i just dont grasp what utility it reprorts...
 
Tks for the posting of this library... I appreciate it and using it with good results...
Two issues about it:
a) just for the SELL part, you have (on the if) the question about if the SL == 0, BUT not for the BUY branch of the function... as far as I see, this is a mistake... the function should be equal (considering signs) for both operations...
b) Why is the function of the STEP? i just dont grasp what utility it reprorts...
 

I am getting GetNameOP "function not defined" How can i fix this? I've already defined on the other file but then I get two errors, one where it says it is already defined and the other says that it is not defined