READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

Backtesting a time based strategy

3 replies

Roman Mueller

Subscriber, bbp_participant, 19 replies.

Visit profile

4 years ago #279455

Hello,

what do i have to consider when i want to backtest a time based strategy which requires high accuracy to have my orders executed at a specific time?

I want to backtest a strategy that opens a buy/sell order every time price breaks the high/low range for the first hour after the London market session open (no matter if during winter/summer).

The historical tick data downloaded with the help of QuantDataManager says to be in the format of GMT+0 (No DST).

Monday through Friday, the first hour of the London Open would be 07:00-08:00 AM GMT+0.

So does that mean i can have my EA set to use 07:00-08:00 and it would automatically match the first hour of the London market for a backtest including a full year or longer, or would i have to run a different test for winter/summer times?

0

Roman Mueller

Subscriber, bbp_participant, 19 replies.

Visit profile

4 years ago #279456

I am kind a confused 🙂

15/02/2022 – GBP/USD M15 “dukascopy-demo-1”

The M15 candle marked by the red vertical line is the first 15 minutes of the London Open (08:00-08:15 London Time). The broker’s server here is GMT+3 during summer time and GMT+2 during winter time.

15/02/2022 – GBP/USD M15 “Imported Tick Data”

Here’s a chart after running a visual backtest through the MT4 strategy tester for the same day, using 07:00-07:15 (GMT+0) as my input for the EA to mark the London Open. It is marked by the first red vertical line.

Now here the London Open is a complete different candle, obviously 1 hour too early. So I’m assuming I can’t do my backtest for a whole year using the same time setting?

0

Tomas Vanek

Administrator, bbp_moderator, sq-ultimate, 20 replies.

Visit profile

4 years ago #279502

Hi, the DST is changing automatically in the backtest but you need to find out the correct setting for your broker.

Tomas Vanek, founder of SimpleDUB and QuantMonitor.net, is a visionary in automated trading and AI-powered content technology. As the creator of SimpleDUB, a professional platform for multilingual video translation and dubbing, and QuantMonitor.net, focused on advanced algo trading tools, he is driven by a passion for efficiency, automation, and scalable systems. Through QuantMonitor, he delivers robust algorithmic trading solutions that simplify strategy building and portfolio management for traders of all levels using advanced templates and intelligent tools.

0

Roman Mueller

Subscriber, bbp_participant, 19 replies.

Visit profile

4 years ago #279523

Hey. Thank you for your answer.

Well, the expert advisor i am using has no option to adjust automatically for DST if that is what you mean. It will always use the same time inputs.

Right now when running the backtest for a period going back longer than 1 year i don’t seem to get accurate results. Before March 27th (where EU changed clocks to summer time) it then no longer matches with the first 15 minutes of the london open using 07:00-07:15 as my EA input.

I am running the backtest against the data from Dukascopy exported with QuantDataManager. It says GMT+0 (NO DST).

kind regards,

Roman

0

Viewing 3 replies - 1 through 3 (of 3 total)