Download MetaTrader 5

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

To add comments, please log in or register
kajironpu
107
kajironpu  

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?

Marco vd Heijden
Moderator
7247
Marco vd Heijden  

put

Comment(OrderProfit());

in the orderselect loop.

kajironpu
107
kajironpu  
Marco vd Heijden:

put

in the orderselect loop.

Wow! Thank you so much!  Now I could done perfectly.
To add comments, please log in or register