My backTest chart is missing a day

Created at 18 May 2024, 20:40
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
CL

Clark22

Joined 17.05.2024

My backTest chart is missing a day
18 May 2024, 20:40


Hi,

I'm having the strangest situation. 

I've been testing a cBot that I'm writing. 

My backtests have been against GBPNZD as I'm testing against an event at 13/05/2024 03:00 UTC

My test date range is 13/05/2024 - 14/05/2024. Everything runs as expected and I'm very happy.

I then make modifications and when I go to backtest I chose NZDUSD by mistake.

This is where it gets weird. My cBot is sleeping until 13/05/2024 02:59 UTC (1 minute before the event) but, my cBot didn't wake up for the event because 13/05/2024 doesn't exist on the chart!!! 

The chart shows the 12th and 14th, with the backtest starting at 14/05/2024 00:00

I've stumbled upon this serendipitously, but what is going on here???


@Clark22
Replies

PanagiotisCharalampous
20 May 2024, 06:17

Hi there,

It seems that historical data is missing from your broker. Talk to your broker about this.

Best regards,

Panagiotis


@PanagiotisCharalampous

Clark22
20 May 2024, 07:05

RE: My backTest chart is missing a day

PanagiotisCharalampous said: 

Hi there,

It seems that historical data is missing from your broker. Talk to your broker about this.

Best regards,

Panagiotis

Hi,

Thanks for your reply. 

The data is only missing in the backtest, not in the normal chart view, so I don't think that's the case.


@Clark22

Clark22
20 May 2024, 07:17 ( Updated at: 20 May 2024, 07:43 )

RE: RE: My backTest chart is missing a day

Clark22 said: 

PanagiotisCharalampous said: 

Hi there,

It seems that historical data is missing from your broker. Talk to your broker about this.

Best regards,

Panagiotis

 

This screenshot is from the same chart that the bot is attached to:

 


@Clark22

Clark22
20 May 2024, 07:36 ( Updated at: 20 May 2024, 07:43 )

RE: My backTest chart is missing a day

PanagiotisCharalampous said: 

Hi there,

It seems that historical data is missing from your broker. Talk to your broker about this.

Best regards,

Panagiotis

Further testing shows:


WHEN I set the start date for the backtest 1 day earlier (12/05/2024) 

THEN it runs through 12th in visual mode, reaches the 13th and the chart stops displaying market data, 

BUT the data is there this time and being backtested, the bot wakes up and opens positions.

 

There's a problem with the date range selection in this backtest example and with chart display. That's 2 related problems.

In the first scenario 13th - 14th - no data for 13th.

In the second scenario 12th -14th - backtest data is present but not visualized.

 

Scenario 2:


@Clark22

PanagiotisCharalampous
20 May 2024, 08:08

Hi there,

Can you please let us know your broker? Also try cleaning your backtesting cache in C:\Users\user\AppData\Roaming\Broker cTrader\BacktestingCache

Best regards,

Panagiotis


@PanagiotisCharalampous

Clark22
20 May 2024, 08:36

RE: My backTest chart is missing a day

PanagiotisCharalampous said: 

Hi there,

Can you please let us know your broker? Also try cleaning your backtesting cache in C:\Users\user\AppData\Roaming\Broker cTrader\BacktestingCache

Best regards,

Panagiotis

 

Hi,

Pepperstone demo SB account for this case.

I'll clear the cache, but it's a brand new installation so not expecting any change.

 

Cheers 

 


@Clark22

Clark22
20 May 2024, 10:29

RE: My backTest chart is missing a day

PanagiotisCharalampous said: 

Hi there,

Can you please let us know your broker? Also try cleaning your backtesting cache in C:\Users\user\AppData\Roaming\Broker cTrader\BacktestingCache

Best regards,

Panagiotis

Hi Panagiotis,

 

I cleared the cache and there is no change. I didn't expect there to be anyway. The behaviour looks like a defect.

 

Cheers,

Clark22 


@Clark22

Clark22
21 May 2024, 10:36

RE: My backTest chart is missing a day

PanagiotisCharalampous said: 

Hi there,

Can you please let us know your broker? Also try cleaning your backtesting cache in C:\Users\user\AppData\Roaming\Broker cTrader\BacktestingCache

Best regards,

Panagiotis

Hi Panagiotis,

Did you succeed in reproducing the problem?

 

Cheers,

Clark


@Clark22

PanagiotisCharalampous
21 May 2024, 10:54

RE: RE: My backTest chart is missing a day

Clark22 said: 

PanagiotisCharalampous said: 

Hi there,

Can you please let us know your broker? Also try cleaning your backtesting cache in C:\Users\user\AppData\Roaming\Broker cTrader\BacktestingCache

Best regards,

Panagiotis

Hi Panagiotis,

Did you succeed in reproducing the problem?

 

Cheers,

Clark

Unfortunately no. We do not have access to the specific symbol. Please contact your broker for further investigation


@PanagiotisCharalampous