"Invalid volumes in trade operations"

 

Hi

when i uploaded my EA to market place it gave me errors after checking error type "Invalid volumes in trade operations" although my ea working well in live market and backtest what is problem here?
please, Rewrite these codes again and make the necessary modifications, taking into account this problem "Invalid volumes in trade operations"


//+------------------------------------------------------------------+

//| Exported variables |

//+------------------------------------------------------------------+

input string Var5="_______________Lots Multiplier Settings";

input bool plus=true,mp=false;

input double Lots=0.01, LotsMP=1.3, LotsPlus=0.01, MaxLots=1000, Slippage=3, Gap=5;

//+------------------------------------------------------------------+

//| Local variables |

//+------------------------------------------------------------------+

datetime time; double point; int Q,digits,Lot_Decimal;

//+------------------------------------------------------------------+

//| Expert initialization function |

//+------------------------------------------------------------------+

int OnInit()

{

 PrintInfoToChart();

if(MarketInfo(Symbol(),MODE_MINLOT)<0.1)Lot_Decimal=2;else Lot_Decimal=1; if(_Digits==5||_Digits==3)Q=10;else Q=1; if(_Digits<4)point=0.01;else point=0.0001;

 return(INIT_SUCCEEDED); }
 

Articles

The checks a trading robot must pass before publication in the Market

MetaQuotes, 2016.08.01 09:30

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.