Keith Watford:
extern double LotSize = ((((AccountBalance/Ask)*Leverage) - 1)*0.0001);extern is an input so it cannot be the result of a calculation. Remove extern and just make it a double.
Thanks Keith, I really appreciate it!
extern double LotSize = ((((AccountBalance/Ask)*Leverage) - 1)*0.0001);

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
Hi Guys,
I'm trying to write a code so that each trade is executed with the maximum available lots according to my account balance, but I am receiving a '*' constant expected error the whole time. Could anyone giving me some advise on how to fix this?
I have LotSize in my OrderSend code
double Leverage = AccountInfoInteger(ACCOUNT_LEVERAGE);
extern double LotSize = ((((AccountBalance/Ask)*Leverage) - 1)*0.0001);
Thanks in advance!
Anton