Hi,
I want to get the history of the stop loss for a position.
Example, I buy EURUSD with a stop loss at 1.1000. Then after one hour I move it to 1.1050, and I move it again at 1.1100.
How can I get the list 1.1000, 1.1050, 1.1100?
I read the documentation but didn't find anything.
Thanks
No way. Modification of a position is not a trading operation. Non-trading operations are not saved in history.
When you modify SL (manually or auto), you can get it in an EA with mql4 trade instruction OrderStopLoss()
1)Create one dynamic array A[] as global variable in your EA
2)OnTick read SL value of an active trade
3)At evey change in SL save it in A[]
So you got an history of SL values in A[] that you can use for your purpose
Thank you Paul Sevan,
but I looked for a way to get the whole history, even when the EA isn't running

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I want to get the history of the stop loss for a position.
Example, I buy EURUSD with a stop loss at 1.1000. Then after one hour I move it to 1.1050, and I move it again at 1.1100.
How can I get the list 1.1000, 1.1050, 1.1100?
I read the documentation but didn't find anything.
Thanks