Dohan:
Okay so I'm creating a martingale EA...
All I want to know is how to save the Account balance before I make the trade so that I can compare it with the account balance after the trade...- Guaranteed to blow your account eventually.
static double previousBalance; : int ticket = OrderSend(...) if (ticket < 0) Alert("OrderSend failed: ", GetLastError()); else previousBalance = AccountBalance();
Thanks!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Okay so I'm creating a martingale EA...
So I want to record the account balance, then make a trade, then if the new account balance is bigger than the previous account I want lot = 0.1; If the new balance is smaller than previous balance, then I want lot=lot*2; (I have static double lot)...
All I want to know is how to save the Account balance before I make the trade so that I can compare it with the account balance after the trade...
Thanks a lot
Dohan