start tracking the current candle in FreqAI, add robustness to corr_df caching and inference timer, add test for cache corr_df

This commit is contained in:
robcaulk
2022-11-02 19:32:22 +01:00
parent 2ed04916ae
commit 255eb71270
3 changed files with 21 additions and 4 deletions

View File

@@ -192,6 +192,7 @@ def test_start_backtesting(mocker, freqai_conf, model, num_files, strat, caplog)
corr_df, base_df = freqai.dd.get_base_and_corr_dataframes(sub_timerange, "LTC/BTC", freqai.dk)
df = freqai.dk.use_strategy_to_populate_indicators(strategy, corr_df, base_df, "LTC/BTC")
df = freqai.cache_corr_pairlist_dfs(df, freqai.dk)
for i in range(5):
df[f'%-constant_{i}'] = i
# df.loc[:, f'%-constant_{i}'] = i