Login Page - Create Account

Support Board


Date/Time: Sun, 19 May 2024 06:24:08 +0000



Post From: sc.GetChartBaseData backtest issue.

[2020-02-18 10:25:17]
GiovanniD - Posts: 41
Hi,
I need to backtest my indicator that works by processing data from a different time frame than the main graph.
Unfortunately, your Study/Price overlay isn't working, so I changed the indicator to work directly on data from another time frame compared to the time frame of the main chart.
However, I have the need to test the correct functioning of the indicator on the history.
Unfortunately
Sc. GetChartBaseData(InputDataChart.GetInt(), BaseData);
in backtest fills the BaseData vector with all the history at the start and not time to time, candle by candle, as it should happen in real.
This makes it impossible to test the indicator correctly because the size of the BaseData vector (and therefore the current candle number) is always the same, the maximum of the history.
How can I solve this problem?