Monitor trade P/L in realtime (not Close price)


I’ve recently started learning MQL4 and I’m wondering if I can get any pointers on tracking the P/L on an open trade.

I’ve used the EA below, but it only closes on Close value of last bar.
How to close all opened positions at the same time in MT4 ? @ Forex Factory

My EA code mainly resides in: int start() and I assumed I needed ontick(), but I cant seem to get that to work :frowning:

Any pointers to reference material would be appreciated, bearing in mind I’m reasonably new at this :slight_smile:


Resolved Thanks.