Ordersend error while testing EA - page 2

 
added this code but still error exist don't know what is still wrong : (
 
kcfve123:
added this code but still error exist don't know what is still wrong : (
It's time for you to start learning . . . or get some to code for you: fix my MT4 EA for me
 
Yes Raptor need to plan this.
 
// BLots = MathFloor(MathMax(0, BLots) / lotStep) * lotStep;
// SLots = MathFloor(MathMax(0, SLots) / lotStep) * lotStep

BLots = MathMax( minLot, MathFloor(BLots / lotStep) * lotStep );
SLots = MathMax( minLot, MathFloor(SLots / lotStep) * lotStep );
Reason: