Download MetaTrader 5

My EA Error

To add comments, please log in or register
Interested in MetaTrader 5 features? Learn more about them!
Amin Asgari Hezaveh
19728
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
2543
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