mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Allow updating without changing identifier
This commit is contained in:
parent
b70f18f4c3
commit
6ecd92de4a
|
@ -294,6 +294,12 @@ class FreqaiDataDrawer:
|
|||
for return_str in rets:
|
||||
df[return_str].iloc[-1] = rets[return_str]
|
||||
|
||||
# this logic carries users between version without needing to
|
||||
# change their identifier
|
||||
if 'close_price' not in df.columns:
|
||||
df['close_price'] = 0
|
||||
df['date_pred'] = 0
|
||||
|
||||
df['close_price'].iloc[-1] = strat_df['close'].iloc[-1]
|
||||
df['date_pred'].iloc[-1] = strat_df['date'].iloc[-1]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user