Could anyone please show how to solve in experts file 'invalid lots amount for order send function'? Please advise.
Use MarketInfo() for detecting Max lots and Min lots ...
Check if calculated lot is in the limit ... Max Lot <= Lot >= Min Lot
NewLot = NormalizeDouble(lot, LotDigits);
Where, LotDigits is the number of digits after the decimal point. Normally, 2.
Look at this comment: https://www.mql5.com/en/forum/146370