A function like OrderProfit but for all orders?

 

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

Like OrderProfit...Thank's

Piero

 
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()

 

Ok, thanks.. 

Reason: