CAN ANYONE HELP TO CORRECT ERROR ON MY EA??????
| ERR_INVALID_TRADE_VOLUME | 131 | Invalid trade volume. |
Your lotsize probably does not follow the rules for your dealer.
Your dealer has rules about lotsize. I don't think your code follows the rules.
see
| double MarketInfo( | string symbol, int type) |
| MODE_MINLOT | 23 | Minimum permitted amount of a lot. |
| MODE_LOTSTEP | 24 | Step for changing lots. |
| MODE_MAXLOT | 25 | Maximum permitted amount of a lot. |
should i copy this and put in my EA???
| MODE_MINLOT | 23 | Minimum permitted amount of a lot. |
| MODE_LOTSTEP | 24 | Step for changing lots. |
| MODE_MAXLOT | 25 | Maximum permitted amount of a lot. |
No, you need to collect the data and study it.
Example from IBFX dealer:
0.01 Minimum permitted amount of a lot.
0.01 Step for changing lots.
50 Maximum permitted amount of a lot.
---
If your lotsize does not follow the rules, your order will be rejected. I'm guessing this is the problem from glancing at your code.
Print out your lotsize, see what you are sending.
---
please how can i change the error code??????
jeffzie 3 2008 on EURUSD:60
11:52:06 2008.01.02 16:56 jeffzie 3 2008 EURUSD,H1: OrderSend error 13111:52:06 2008.01.02 16:56 jeffzie 3 2008 EURUSD,H1: OrderSend error 131
11:52:06 2008.01.02 16:56 jeffzie 3 2008 EURUSD,H1: OrderSend error 131
11:52:06 2008.01.02 16:56 jeffzie 3 2008 EURUSD,H1: OrderSend error 131
11:52:06 2008.01.02 16:56 jeffzie 3 2008 EURUSD,H1: OrderSend error 131
11:52:06 2008.01.02 16:56 jeffzie 3 2008 EURUSD,H1: OrderSend error 131
11:52:06 2008.01.02 16:56 jeffzie 3 2008 EURUSD,H1: OrderSend error 131
11:52:06 2008.01.02 16:56 jeffzie 3 2008 EURUSD,H1: OrderSend error 131
11:52:06 2008.01.02 16:56 jeffzie 3 2008 EURUSD,H1: OrderSend error 131
11:52:06 2008.01.02 16:56 jeffzie 3 2008 EURUSD,H1: OrderSend error 131
11:52:06 2008.01.02 16:56 jeffzie 3 2008 EURUSD,H1: OrderSend error 131
11:52:06 2008.01.02 16:56 jeffzie 3 2008 EURUSD,H1: OrderSend error 131
11:52:06 2008.01.02 16:56 jeffzie 3 2008 EURUSD,H1: OrderSend error 131
11:52:06 2008.01.02 16:56 jeffzie 3 2008 EURUSD,H1: OrderSend error 131
11:52:06 2008.01.02 16:56 jeffzie 3 2008 EURUSD,H1: OrderSend error 131
11:52:06 2008.01.02 16:56 jeffzie 3 2008 EURUSD,H1: OrderSend error 131
11:52:06 2008.01.02 16:56 jeffzie 3 2008 EURUSD,H1: OrderSend error 131
11:52:06 2008.01.02 16:56 jeffzie 3 2008 EURUSD,H1: OrderSend error 131
11:52:06 2008.01.02 16:56 jeffzie 3 2008 EURUSD,H1: OrderSend error 131
11:52:06 2008.01.02 16:56 jeffzie 3 2008 EURUSD,H1: OrderSend error 131
765 kb of log files (must be less than 64 000 kb)
0 min 18 seconds
Errors: 20