Backtest visual mode, data loads is NOT consistent.

 

Hi all,

 I have a multi timeframe EA. I notice there is a prolem when it comes to load data in the visual mode compare to the real envonment.

Scenario 1 (see picture 1): when I run  the backtesting and choose the Daily as my main view and Weekly is loaded. Notice the same bar reading is different than the real environment, the entire weekly chart reading completely differs than the real envionment. I guess the first time it loads only 100 bars on the Daily, then the bars grouping algorithm somehow differs which leads to the serious problem with multi timeframe EA.


Sceanrio 2 ( see picture 2): this time I choose weekly as my main chart view, and again by default it loads first 100 bars (weeks) which is perfectly fine and same as the real environment. 


Question is how do I run the scenrio 1 and make it loads maybe the first 1000 bars by default so that my Weekly can be grouped correctly compare to the real environment ??


Thanks in advance for all the comments. 

Files:
picture1.png  475 kb
picture2.png  224 kb
 
tantran201094:

Hi all,


possible reasons.

1. ea coding is not loading all of the bars. Coding for backtesting/strategy tester is often very different.

2. check with your broker that they use mq data or their own live data. some shadey brokers use the same data that the mq demo uses which is worse that corrupted, but just plain stupid to be used.

 
tantran201094:

Hi all,

 I have a multi timeframe EA. I notice there is a prolem when it comes to load data in the visual mode compare to the real envonment.

Scenario 1 (see picture 1): when I run  the backtesting and choose the Daily as my main view and Weekly is loaded. Notice the same bar reading is different than the real environment, the entire weekly chart reading completely differs than the real envionment. I guess the first time it loads only 100 bars on the Daily, then the bars grouping algorithm somehow differs which leads to the serious problem with multi timeframe EA.


Sceanrio 2 ( see picture 2): this time I choose weekly as my main chart view, and again by default it loads first 100 bars (weeks) which is perfectly fine and same as the real environment. 


Question is how do I run the scenrio 1 and make it loads maybe the first 1000 bars by default so that my Weekly can be grouped correctly compare to the real environment ??


Thanks in advance for all the comments. 

hi

have you downloaded and imported any data ? 

havent seen this before

 
tantran201094:

 I have a multi timeframe EA. I notice there is a prolem when it comes to load data in the visual mode compare to the real envonment.

Scenario 1 (see picture 1): when I run  the backtesting and choose the Daily as my main view and Weekly is loaded. Notice the same bar reading is different than the real environment, the entire weekly chart reading completely differs than the real envionment. I guess the first time it loads only 100 bars on the Daily, then the bars grouping algorithm somehow differs which leads to the serious problem with multi timeframe EA.

Sceanrio 2 ( see picture 2): this time I choose weekly as my main chart view, and again by default it loads first 100 bars (weeks) which is perfectly fine and same as the real environment. 

Question is how do I run the scenrio 1 and make it loads maybe the first 1000 bars by default so that my Weekly can be grouped correctly compare to the real environment ??

Thanks in advance for all the comments. 

I'd suggest to check timezone daylight savings settings of your broker server. On weekly timeframe every bar starts on Sunday 00:00 which is not affected by DST change, but on D1 timeframe the opening of every week can map to Sunday's evening or Monday's morning, that is counted for different days. If it's the case, this is probably a bug/feature of the tester, which does not follow timezone and DST changes.

 
Lorentzos Roussos #:

hi

have you downloaded and imported any data ? 

havent seen this before

I use the broker data. no data imported 

 
Michael Charles Schefe #:

possible reasons.

1. ea coding is not loading all of the bars. Coding for backtesting/strategy tester is often very different.

2. check with your broker that they use mq data or their own live data. some shadey brokers use the same data that the mq demo uses which is worse that corrupted, but just plain stupid to be used.

how do I ensure to load all the bars ? I select the start date passes the very first date of the very first bar available .

Files:
startdate.png  23 kb
 

Updated:

I check the bars on the W timeframe and all of sudden, it starts failing at this specific bar (please see screenshot). I compare to daily bars, for some reason, the W candle in the Visual Mode it takes the close of the 8th on the Daily bar instead of the 7th. And from this point on everything is completely off, and all readings are wrong compare to the real environment. looks like a MT5 bug. Anyone has any idea ?

Files: