A Simple Back-testing Problem

 

Hi all,

I'm relatively new to this user interface, and I'm having a problem not described in the help section. Whenever I attempt to back-test one of the given EAs, I always end up with these two error message in the Journal: "OrderSend error 131" as well as "Error opening BUY order : 131". I'm using a demo account.

 

int OrderSend( string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE)

Your lot size -- the volume parameter -- is being rejected.

MarketInfo(Symbol(), MODE_MINLOT) -- smallest size for a trade

MarketInfo(Symbol(), MODE_MAXLOT) -- largest size for a trade

MarketInfo(Symbol(), MODE_LOTSTEP) -- increments of lot size

 
Many Thanks. Apparently, a mini-lot is now considered 1 rather than 0.1, despite a variable "Lots" being considered a double. Thanks again.
 
MarketInfo(Symbol(), MODE_LOTSIZE) gives a clue to that.
Reason: