Download MetaTrader 5

My EA Error

To add comments, please log in or register
Amin Asgari Hezaveh
24016
Amin Asgari Hezaveh  

Hi

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




But this error was not previously.What is happening?

Drazen Penic
2684
Drazen Penic  

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