Download MetaTrader 5

Backtsting problem

To add comments, please log in or register
Publish your application in Cobe Base. Millions of traders will see it!
josejjm
70
josejjm 2012.11.10 02:08 

I was testing some EAs-demo, but when I do I have this error backtesting...

2012.11.09 21:55:10    Core 1    2012.11.07 20:00:00   failed market sell 0.10 EURUSD sl: 1.28917 [Unsupported filling mode]

2012.11.09 21:55:10    Core 1    2012.11.07 20:00:00   Invalid order filling type


like in many cases does not open trades, could someone help me with that?

Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Order Properties
Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Order Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Trade Constants / Order Properties - Documentation on MQL5
graziani
1955
graziani 2012.11.10 07:39  

Switch broker.
Your broker doesn't support the kind of trading you would like to make.

 

phi nuts
2184
phi nuts 2012.11.10 08:25  
josejjm:

I was testing some EAs-demo, but when I do I have this error backtesting...

2012.11.09 21:55:10    Core 1    2012.11.07 20:00:00   failed market sell 0.10 EURUSD sl: 1.28917 [Unsupported filling mode]

2012.11.09 21:55:10    Core 1    2012.11.07 20:00:00   Invalid order filling type <<== this is a link, click it 


like in many cases does not open trades, could someone help me with that?

Change your filling type into one of these https://www.mql5.com/en/docs/constants/tradingconstants/orderproperties#enum_order_type_filling
Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Order Properties
Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Order Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Trade Constants / Order Properties - Documentation on MQL5
graziani
1955
graziani 2012.11.10 08:42  

There are 3 basic filling types:  ORDER_FILLING_FOK ,   ORDER_FILLING_IOC and ORDER_FILLING_RETURN.

I have installed MIG bank demo, and i was receiving this error no matter which filling type was used.

And somebody else was also complaining about that, although on different broker.  

josejjm
70
josejjm 2012.11.10 09:43  

I use the MetaQuotes broker, to others is recommended by the developer of the EA.
graziani
1955
graziani 2012.11.10 10:34  

You mean, you added metaquotes server to server list and opened MetaQuotes-Demo account?

I checked again, so the Mig-Bank-Demo generated:

CR 0 Core 1 10:19:12 EURUSD,H1 (MIGBank-Demo): 1 minutes OHLC ticks generating
FI 0 Core 1 10:19:12 EURUSD,H1: testing of Experts\fast-start-example.ex5 from 2012.01.01 00:00 to 2012.11.09 00:00 started
EH 2 Core 1 10:19:12 2012.01.02 04:04:00   failed market sell 0.10 EURUSD [Unsupported filling mode]
HI 0 Core 1 10:19:12 2012.01.02 04:04:00   CTrade::OrderSend: market sell 0.10 EURUSD [invalid fill]
.....

and then switched to metaquotesdemo

NS 0 Core 1 10:23:20 EURUSD,H1 (MetaQuotes-Demo): 1 minutes OHLC ticks generating
FK 0 Core 1 10:23:20 EURUSD,H1: testing of Experts\fast-start-example.ex5 from 2012.01.01 00:00 to 2012.11.09 00:00 started
QJ 0 Core 1 10:23:20 2012.01.02 03:00:00   instant sell 0.10 EURUSD at 1.29387 (1.29387 / 1.29431 / 1.29387)
LI 0 Core 1 10:23:20 2012.01.02 03:00:00   deal #2 sell 0.10 EURUSD at 1.29387 done (based on order #2)

so you have other problem, or you are doing something else wrong. 

Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Deal Properties
Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Deal Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Trade Constants / Deal Properties - Documentation on MQL5
josejjm
70
josejjm 2012.11.10 21:20  

Yes, I have an account in migbank-demo-demo MetaQuotes not, but the broker is to MetaQuotes, as I can switch to MetaQuotes-demo?
phi nuts
2184
phi nuts 2012.11.11 00:28  
josejjm:

Yes, I have an account in migbank-demo-demo MetaQuotes not, but the broker is to MetaQuotes, as I can switch to MetaQuotes-demo?

If you have Migbank demo then the server is Migbank demo. To add MetaQuotes server (or any other broker server) do this : on MT5 click "File" and select "Open an Account". A window will pop out like this below. Click "add new server like access.metatrader5.com:443" and type MetaQuotes (or any other broker name), and you will have access to different server from different broker, like next picture.

 

To add comments, please log in or register