DislikedOla Não sei se alguém já conseguiu!!! Segue código double valor_depositado() { double retorno = 0; for (int i = OrdersHistoryTotal() - 1; i >= 0; i--) { if (OrderSelect(i, SELECT_BY_POS, MODE_HISTORY)) { if (OrderType() == 6) { Print("Deposito: ",OrderProfit()); } } } return (retorno); }Ignored
Modified it a little to get total deposit;
Inserted Code
double deposit_value () { double retorno = 0; for (int i = OrdersHistoryTotal() - 1; i >= 0; i--) { if (OrderSelect(i, SELECT_BY_POS, MODE_HISTORY)) { if (OrderType() == 6) { retorno += OrderProfit(); } } } // Print("Deposito: ",retorno); return retorno; }