Maximum available lots per trade
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);
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