Download MetaTrader 5
To add comments, please log in or register
Post web links to other trader's signals and make profit
Amin Asgari Hezaveh
15441
Amin Asgari Hezaveh 2014.06.27 07:24 

Hi

i attached my ea to chart , but i have this error .




But this error was not previously.What is happening?

Drazen Penic
2406
Drazen Penic 2014.06.27 08:31  

Your broker does not allow 0.06 lots. 

Use MarketInfo() to get minimum lot size and lot step (or check your broker's web site). 

   Print("Minimum permitted amount of a lot=",MarketInfo(Symbol(),MODE_MINLOT));
   Print("Step for changing lots=",MarketInfo(Symbol(),MODE_LOTSTEP));
/
To add comments, please log in or register