You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey guys,
I have checked modification in code for resample_to_interval. I modified my code according to commits here: freqtrade/freqtrade-strategies#63 and here: #59.
When I backtested strategy and print out my resample_indicators (plus_di, minus_di and roc in my case) and then compare printed message with binance chart I get results shifted by one candle.
Let me explain in more details on print screens.
Btw I am resampling 1h to 1d candles by using dataframe_long = resample_to_interval(dataframe, 1440) – I hope I got this right.
Here is a printed table from backtesting:
And here is print screened chart of the same coin on 1d timeframe from binance:
As you can see printed indicators tells me that there was res_plus_di, res_minus_di and res_roc at 17.7, 25.9 and -3% in 1/10/2020, respectively. When you check the chart you can see these values at the candle from 1/09/2020. So shifted by one into the past.
I do not know if this is a purpose, mistake or I did code something wrong.
Please could you advise how to shift these values to their proper candle?
The text was updated successfully, but these errors were encountered:
Hey guys,
I have checked modification in code for
resample_to_interval
. I modified my code according to commits here: freqtrade/freqtrade-strategies#63 and here: #59.When I backtested strategy and print out my resample_indicators (plus_di, minus_di and roc in my case) and then compare printed message with binance chart I get results shifted by one candle.
Let me explain in more details on print screens.
Btw I am resampling 1h to 1d candles by using
dataframe_long = resample_to_interval(dataframe, 1440)
– I hope I got this right.Here is a printed table from backtesting:
![resampled](https://user-images.githubusercontent.com/58388876/72683037-10f21600-3ad4-11ea-93a0-09ad1e95bcfd.png)
And here is print screened chart of the same coin on 1d timeframe from binance:
![LTC_BTC](https://user-images.githubusercontent.com/58388876/72683013-dee0b400-3ad3-11ea-9e84-cff3d518e5c0.png)
As you can see printed indicators tells me that there was res_plus_di, res_minus_di and res_roc at 17.7, 25.9 and -3% in 1/10/2020, respectively. When you check the chart you can see these values at the candle from 1/09/2020. So shifted by one into the past.
I do not know if this is a purpose, mistake or I did code something wrong.
Please could you advise how to shift these values to their proper candle?
The text was updated successfully, but these errors were encountered: