Quote:
|
Originally Posted by DooMGuarD
hi all
How i obtain the initial deposit in account for statistical questions?
regards
|
Code:
#define OP_BALANCE 6
int cnt = OrdersHistoryTotal();
for (int i=0; i<cnt; i++)
{
if (!OrderSelect(i, SELECT_BY_POS, MODE_HISTORY)) continue;
if (OrderType() == OP_BALANCE)
{
Alert(OrderProfit());
break;
}
}
And do not forget to set Show All History option.
