Na ja, das ist natürlich auch vom Broker abhängig (Stichwort LOTSTEP).
Versuchs mal damit:
Code:
double LotStep = MarketInfo(Symbol(), MODE_LOTSTEP);
LotSize = MathRound(LotSize / LotStep) * LotStep;
Das Ergebnis solltest du noch auf MINLOT und MAXLOT überprüfen.
Gruß
naranjoe