Profits for the previous day ?

 
Hello,

Is it possible to calculate profits for the previous day ?

Thank you.
 
nazoreen:
Hello,

Is it possible to calculate profits for the previous day ?

Thank you.
Yes, it is. Use

OrderSelect( int index, int select, int pool=MODE_TRADES)
and set the pool value to MODE_HISTORY to browse through the history. Go through all the trades from yesterday and use

OrderProfit( )

for each trade to calculate the result of yesterday's trading.

Jan
 
Thank you very much !
Reason: