MQL4 How to show each chart profit? AccountProfit() ?

 

Hi,

I want to know current profit for each chart. I set 2 EA in each chart.

USDJPY EA1 and current profit $12

GBPUSD EA2 and current profit -8$

========================================

In this case, Account profit() =$12+(-$8) =$4. (total)

but I want to know each chart profit separately not total.

How can I know that by MQL4?

 

put

Comment(OrderProfit());

in the orderselect loop.

 
Marco vd Heijden:

put

in the orderselect loop.

Wow! Thank you so much!  Now I could done perfectly.
Reason: