Replace
Print("Lots: ", Lots);
to
Print("Lots: ", lot);
and show us what is in logs.
OK, again, raplace
Print("Lots: ", lot);
to
Print("Lots: ", lot," minlot - ",MarketInfo(Symbol(),MODE_MINLOT));
and show me what is in logs.
Hello
I am getting invalid lots amount for OrderSend function.
on a Demo account but not on a back test.
Could someone please have a look at the code and point me in the right direction as to where I might have gone wrong.
And I am using what is below to calculate lot size
Alpari are a 5 digit broker.
LotsRisk=NormalizeDouble(AccountFreeMargin()*ExtMaximumRisk*AccountLeverage()/contract/SL,2);
to:
LotsRisk=NormalizeDouble(AccountFreeMargin()*ExtMaximumRisk*AccountLeverage()/contract/StopLoss,2);
or:
LotsRisk=AccountFreeMargin()*ExtMaximumRisk*AccountLeverage()/contract/StopLoss;
OK, again, raplace
Print("Lots: ", lot);
to
Print("Lots: ", lot," minlot - ",MarketInfo(Symbol(),MODE_MINLOT));
and show me what is in logs.
gidday Roger
2009.11.01 23:06:05 EPA EURCHF,H4: Lots: 0 minlot - 0.01
2009.11.01 23:06:05 EPA EURCHF,H4: invalid lots amount for OrderSend function
2009.11.01 23:06:05 EPA EURCHF,H4: Lots: 0 minlot - 0.01
2009.11.01 23:06:05 EPA EURCHF,H4: invalid lots amount for OrderSend function
2009.11.01 23:06:05 EPA EURCHF,H4: Lots: 0 minlot - 0.01
2009.11.01 23:06:05 EPA EURCHF,H4: MA=1.5094 BuyStop=1.5091
if(LotsRisk<lot_min) LotsRisk=lot_min;
if(LotsRisk>lot_max) LotsRisk=lot_max;
this string:
Thanks for your help guys I have managed to sort the problem out.
Cheers
Kiwi
Thanks for your help guys I have managed to sort the problem out.
Cheers
Kiwi
pls how did you solve this problem i am having this issue as well
I doubt that he will answer after 12 years.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello
I am getting invalid lots amount for OrderSend function.
on a Demo account but not on a back test.
Could someone please have a look at the code and point me in the right direction as to where I might have gone wrong.
And I am using what is below to calculate lot size
Alpari are a 5 digit broker.