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

Hi,

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.
"CloseTrades_After_Account_Loss_TooMuch.mq4"
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:

Thanks,
Paul

Resolved Thanks.