luisneves: fix the value of AP.
There is no way to fix AP while you have an order open.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
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