Invalid volume error when publishing my EA

 
When I try to publish my EA I get invalid volume error even when the lot size is 0.01. please I need solution, thanks
 
Michael Udoh Bassey:
When I try to publish my EA I get invalid volume error even when the lot size is 0.01. please I need solution, thanks
You have to study your case, but look at the link, you will find a lot of code there that checks the size of the lots before placing the order.


https://www.mql5.com/en/articles/2555

The checks a trading robot must pass before publication in the Market
The checks a trading robot must pass before publication in the Market
  • www.mql5.com
Before any product is published in the Market, it must undergo compulsory preliminary checks in order to ensure a uniform quality standard. This article considers the most frequent errors made by developers in their technical indicators and trading robots. An also shows how to self-test a product before sending it to the Market.
Reason: