Update account profit in one way

 

Hi all,

 Say that the value of AccountProfit() is 2 and on the next tick is 3, then a variable called AP is on is track minus 0.5 (just example)

when next  tick  comes AccountProfit() comes down to 2. How could I get a way to  fix the value of AP. What I mean is get the same behavior of  a Trailing Stop.

 

Thanks in advance for any clue here

Luis 

 
luisneves: fix the value of AP.
There is no way to fix AP while you have an order open.
Reason: