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:
double lot = NormalizeDouble(2/0.1568,2);
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.
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);