Check Deposit / Withdrawal information
I would like to using EA to check deposit/withdrawal information of the account, like the date time, amount of the deposit/withdrawal.
There's no way in the forum or documentation stated that it is able to do that.
- 'Balance' statement: OrderType()==6
- 'Credit' statement: OrderType()==7
p.s. This is undocumented for some reason, but it does appear in some official MQ code in the articles...
- 'Balance' statement: OrderType()==6
- 'Credit' statement: OrderType()==7
p.s. This is undocumented for some reason, but it does appear in some official MQ code in the articles...
what is the difference between 'balance' and 'credit' type?
what is the difference between 'balance' and 'credit' type?
'Credit' is bonus money some brokers give under certain conditions for promotional reasons. 'Balance' are statements of deposit/withdrawal, but are also used by some brokers for other reasons (FXCM for example have many 'sync' statements of type 'balance').
Thanks for the clarification!
I use this code to monitor account debit/credit value. It works great in a demo and live account, but does not work in Strategy Tester. Is this a bug?
//-------- Debit/Credit total ------------------- double Deposits() { double total=0; for (int i=0; i<OrdersHistoryTotal(); i++) { if (OrderSelect(i, SELECT_BY_POS, MODE_HISTORY)) { if(OrderType()>5) { total+=OrderProfit(); } } } return(total); }
I use this code to monitor account debit/credit value. It works great in a demo and live account, but does not work in Strategy Tester. Is this a bug?
- www.mql5.com
I want draw cash from mt4 but cannot can give some solusion
Contact your broker, MQL5.com is not a broker not offers real trading accounts.
I would like to using EA to check deposit/withdrawal information of the account, like the date time, amount of the deposit/withdrawal.
There's no way in the forum or documentation stated that it is able to do that.
Please help.
Thanks,
regards,
Yaohan