Error 131 on EA Robot

 

I'm an ex-option trader who has started playing around with forex and am trialing one of the latest EA Robots. After operating very effectively for the first day, every order the robot tries to place is rejected with the Error 131 - invalid trade volume lots 1.02. I have researched this on the forum and have attempted to adjust the trade volumes etc to no avail. I have contacted the manufacturers but they take 2-3 days to reply and have as yet been of little help. The biggest question is why did it trade properly for one day then go into defaulyt mode? Can anyone help???

I have copied the relevant logs section below...

05:58:05 Forex Robot No Loss v1.0 GBPUSD,M1: initialized
05:58:05 Forex Robot No Loss v1.0 USDCHF,M1: initialized
09:15:49 Forex Robot No Loss v1.0 USDJPY,M1: open #10809439 sell 1.00 USDJPY at 89.846 ok
09:15:49 Forex Robot No Loss v1.0 USDJPY,M1: modify #10809439 sell 1.00 USDJPY at 89.846 sl: 0.000 tp: 89.476 ok
09:18:37 Forex Robot No Loss v1.0 EURUSD,M1: open #10809654 buy 1.00 EURUSD at 1.48758 ok
09:18:37 Forex Robot No Loss v1.0 EURUSD,M1: modify #10809654 buy 1.00 EURUSD at 1.48758 sl: 0.00000 tp: 1.49878 ok
10:27:46 Forex Robot No Loss v1.0 AUDUSD,M5: open #10813275 buy 1.00 AUDUSD at 0.92148 ok
10:27:46 Forex Robot No Loss v1.0 AUDUSD,M5: modify #10813275 buy 1.00 AUDUSD at 0.92148 sl: 0.00000 tp: 0.92368 ok
10:28:20 Forex Robot No Loss v1.0 USDCHF,M1: open #10813352 sell 1.00 USDCHF at 1.01574 ok
10:28:20 Forex Robot No Loss v1.0 USDCHF,M1: modify #10813352 sell 1.00 USDCHF at 1.01574 sl: 0.00000 tp: 1.01354 ok
10:30:23 Forex Robot No Loss v1.0 GBPUSD,M1: open #10813493 buy 1.00 GBPUSD at 1.66426 ok
10:30:23 Forex Robot No Loss v1.0 GBPUSD,M1: modify #10813493 buy 1.00 GBPUSD at 1.66426 sl: 0.00000 tp: 1.66646 ok
11:32:51 Forex Robot No Loss v1.0 AUDUSD,M5: close #10813275 buy 1.00 AUDUSD at 0.92148 tp: 0.92368 at price 0.92284
11:35:07 Forex Robot No Loss v1.0 GBPUSD,M1: close #10813493 buy 1.00 GBPUSD at 1.66426 tp: 1.66646 at price 1.66585
12:04:53 Forex Robot No Loss v1.0 EURUSD,M1: modify #10809654 buy 1.00 EURUSD at 1.48758 sl: 1.48958 tp: 1.49878 ok
12:22:29 Forex Robot No Loss v1.0 USDCHF,M1: close #10813352 sell 1.00 USDCHF at 1.01574 tp: 1.01354 at price 1.01424
12:57:36 Forex Robot No Loss v1.0 GBPUSD,M1: open #10825134 buy 1.00 GBPUSD at 1.66656 ok
12:57:36 Forex Robot No Loss v1.0 GBPUSD,M1: modify #10825134 buy 1.00 GBPUSD at 1.66656 sl: 0.00000 tp: 1.66876 ok
12:59:42 Forex Robot No Loss v1.0 AUDUSD,M5: open #10825223 buy 1.00 AUDUSD at 0.92442 ok
12:59:42 Forex Robot No Loss v1.0 AUDUSD,M5: modify #10825223 buy 1.00 AUDUSD at 0.92442 sl: 0.00000 tp: 0.92662 ok
13:05:00 Forex Robot No Loss v1.0 EURUSD,M1: open #10825632 buy 1.00 EURUSD at 1.48929 ok
13:05:00 Forex Robot No Loss v1.0 EURUSD,M1: modify #10825632 buy 1.00 EURUSD at 1.48929 sl: 0.00000 tp: 1.49149 ok
13:05:01 Forex Robot No Loss v1.0 USDCHF,M1: open #10825696 sell 1.00 USDCHF at 1.01480 ok
13:05:21 Forex Robot No Loss v1.0 USDCHF,M1: modify #10825696 sell 1.00 USDCHF at 1.01480 sl: 0.00000 tp: 1.01260 ok
13:47:45 Forex Robot No Loss v1.0 GBPUSD,M1: close #10825134 buy 1.00 GBPUSD at 1.66656 tp: 1.66876 at price 1.66849
13:47:45 Forex Robot No Loss v1.0 EURUSD,M1: close #10825632 buy 1.00 EURUSD at 1.48929 tp: 1.49149 at price 1.49079
15:15:24 Forex Robot No Loss v1.0 AUDUSD,M5: close #10825223 buy 1.00 AUDUSD at 0.92442 tp: 0.92662 at price 0.92629
15:15:24 Forex Robot No Loss v1.0 USDCHF,M1: close #10825696 sell 1.00 USDCHF at 1.01480 tp: 1.01260 at price 1.01306
15:50:34 stdlib AUDUSD,M5: loaded successfully
15:50:34 Forex Robot No Loss v1.0 AUDUSD,M5: OrderSend failed with error(131) invalid trade volume Lots:1.01
15:50:34 Forex Robot No Loss v1.0 AUDUSD,M5: OrderSend failed with error(131) invalid trade volume Lots:1.01
15:51:32 Forex Robot No Loss v1.0 AUDUSD,M5: OrderSend failed with error(131) invalid trade volume Lots:1.01
15:51:32 Forex Robot No Loss v1.0 AUDUSD,M5: OrderSend failed with error(131) invalid trade volume Lots:1.01
15:51:33 Forex Robot No Loss v1.0 AUDUSD,M5: OrderSend failed with error(131) invalid trade volume Lots:1.01
15:51:38 Forex Robot No Loss v1.0 AUDUSD,M5: OrderSend failed with error(131) invalid trade volume Lots:1.01
15:51:39 Forex Robot No Loss v1.0 AUDUSD,M5: OrderSend failed with error(131) invalid trade volume Lots:1.01
15:51:48 Forex Robot No Loss v1.0 AUDUSD,M5: OrderSend failed with error(131) invalid trade volume Lots:1.01
15:52:52 Forex Robot No Loss v1.0 AUDUSD,M5: OrderSend failed with error(131) invalid trade volume Lots:1.01
15:52:52 Forex Robot No Loss v1.0 AUDUSD,M5: OrderSend failed with error(131) invalid trade volume Lots:1.01
15:52:52 Forex Robot No Loss v1.0 AUDUSD,M5: OrderSend failed with error(131) invalid trade volume Lots:1.01

 

Brokers have 3 values for lot size.

MarketInfo( Symbol(), MODE_LOTSTEP ) // IBFX mini 0.01
MarketInfo( Symbol(), MODE_MAXLOT ) // IBFX mini 50
MarketInfo( Symbol(), MODE_MINLOT ) // IBFX mini 0.1

Your running on a non-mini count so lotstep is most likely 0.1 therefor 1.00 is ok and 1.10 is ok but 1.01 is not.

Reason: