Calculating Lots Problem
Saidar:
Hello all,
I have been experiencing a problem since the release of metatrader 5. I cannot do any calculations, and send that double as the lot size. It never works. For example:
This is just an example. If I run the expert in the strategy tester I get the "invalid volume" every time.
Any idea what may cause this?
I'm using the CTrade library to execute my trades.
Regards
MetaQuotes Demo-Sever: MinLot=0.1, LotStep = 0.1 -> LotSize = x.xx - incorrect.
2/0.1568= 12.75.... Your balance must be more $20K
double lot = NormalizeDouble(2/0.1568, 1);

You are missing trading opportunities:
- Free trading apps
- Free Forex VPS for 24 hours
- 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
Hello all,
I have been experiencing a problem since the release of metatrader 5. I cannot do any calculations, and send that double as the lot size. It never works. For example:
This is just an example. If I run the expert in the strategy tester I get the "invalid volume" every time.
Any idea what may cause this?
I'm using the CTrade library to execute my trades.
Regards