can i get the profit or loss trade when close order?

 

Hi,

i wanted to close a trade when it hits certain level of bid price. when execute the close order, can i get the value of profit or loss when i close the order? How?

i need help on this issue because i am trying to implement a bit of martingale strategies in my EA to cover my previous losing trade on next new trade.

Thanks.

 
joelloh:

Hi,

i wanted to close a trade when it hits certain level of bid price. when execute the close order, can i get the value of profit or loss when i close the order? How?

i need help on this issue because i am trying to implement a bit of martingale strategies in my EA to cover my previous losing trade on next new trade.

Thanks.


OrderProfit() Function

c on https://book.mql4.com/functions/trading