Download MetaTrader 5
To add comments, please log in or register
Any questions regarding MQL5 Cloud Network? FAQ will help you!
Icham Aidibe
9885
Icham Aidibe 2015.08.05 13:22 

Hi there !

On my last post I was wondering how to work with OHLC, founding no solution, I now use for the EA ticks. When I optimize, results appears, but when replayed the results differs. What that could be due to please ?


thanks.

Tan Phan Ngoc
1333
Tan Phan Ngoc 2015.08.05 13:53  
Icham Aidibe:

Hi there !

On my last post I was wondering how to work with OHLC, founding no solution, I now use for the EA ticks. When I optimize, results appears, but when replayed the results differs. What that could be due to please ?


thanks.

Always different between test and real result.
Marco vd Heijden
Moderator
4051
Marco vd Heijden 2015.08.05 14:17  
updated history file.
Bartlomiej Gorski
5389
Bartlomiej Gorski 2015.08.05 15:01  

In every tick mode MT4 generates .fxt file (pseudo ticks) to make a test. I said pseudo ticks because those are not real ticks, that means that from time to time it generates new tick file (eg when you update testing period)

So after that even if you go back to prior date from - date to then you will have "new" ticks. If you are testing ea like grid, especialy where multiple positions are closed in the same time, one or few ticks makes

a big difference. The same issue you will find when trading breakouts with breakout buffor etc.

The solution that I use for this, is to use M1 chart, and read all values on closed bars on higher timeframes.

I described it here: http://sharpquant.com/general/ea-testing-why-open-prices/

I hope it helps :)

EA testing – why “open prices”?
EA testing – why “open prices”?
  • 2015.07.13
  • Kale
  • sharpquant.com
Metatrader platform provides us with few different testing models. There is a little difference between MT4 and MT5 testing models. If you are interested in detailed information about each model, including info about “how ticks are generated” I recommend you to visit this link: Personaly I’m using only 2 models, and sometimes I mix them...
Icham Aidibe
9885
Icham Aidibe 2015.08.05 15:17  
Bartlomiej Gorski:

In every tick mode MT4 generates .fxt file (pseudo ticks) to make a test. I said pseudo ticks because those are not real ticks, that means that from time to time it generates new tick file (eg when you update testing period)

So after that even if you go back to prior date from - date to then you will have "new" ticks. If you are testing ea like grid, especialy where multiple positions are closed in the same time, one or few ticks makes

a big difference. The same issue you will find when trading breakouts with breakout buffor etc.

The solution that I use for this, is to use M1 chart, and read all values on closed bars on higher timeframes.

I described it here: http://sharpquant.com/general/ea-testing-why-open-prices/

I hope it helps :)

Okay so trading ticks is better with M1. Thanks dude!
Icham Aidibe
9885
Icham Aidibe 2015.08.05 15:26  

You know there's ticks between the Open ---> Close. You won't occult it, the new opening candle price may be shifted from a session to another.
I have the same issue, I need real ticks to improve strategies but checking every change on my code by every tick made it long long long, & now expensive ! I hope a solution will be found to answer to that.

/
To add comments, please log in or register