Deposit and Withdrawals

 

Hi all,

I’m trying to add something to my EA that will look at the account, and then understand the amounts that have been deposited into the account and withdrawn from the account.  

I’m trying to work out whether this comes from DEAL_TYPE_CREDIT, but then if it does, which value is it?   I’ve tried profit, price, fee?  I’ve tried this to pull the value using this but returns 0 on a live account. 

Any pointers more then welcome.  Thanks in advance. 

Payments and payment methods
Payments and payment methods
  • www.mql5.com
MQL5.community Services offer great opportunities for traders as well as for the developers of applications for the MetaTrader terminal. In this article, we explain how payments for MQL5 services are performed, how the earned money can be withdraw, and how the operation security is ensured.
 
How to deposit money 
 
Reason: