How to calculate was last trade profitable or not ?
https://docs.mql4.com/trading/OrderSelect from the MODE_HISTORY pool then https://docs.mql4.com/trading/OrderProfit
/en/forum/131383 An example
Thanks very much for links :)
Edward
Hello Everyone,
I want to calculate if last trade profitable or not. I want to vary Order Size, depending on last operation.
For example, if last trade was loss, I want have only half of default lot.
If last trade was profitable, I want to trade default lot.
What commands show if last trade was profitable or not ?
I tried to use someting like this:
After trade I make other statement
However this algorith does not work.
Have any other ideas ?
Edward