Download MetaTrader 5

A function like OrderProfit but for all orders?

To add comments, please log in or register
pieroim
37
pieroim  

I, is there a function to have the total profit of all the opened order?

Like OrderProfit...Thank's

Piero

JC
1577
JC  
pieroim:

I, is there a function to have the total profit of all the opened order?

Er, AccountProfit(), or AccountEquity() minus AccountBalance()?

If you want to exclude swap and commission, then you need to loop through the orders and add up the OrderProfit()

pieroim
37
pieroim  

Ok, thanks.. 

To add comments, please log in or register