Elffuss BraidHub

kikocis/freqtrade public

Merge pull request #4743 from JoeSchr/patch-1

remove `copy()` from `custom_info` example
Changesetd3e2efacbd9a1849de49e7e1ffcafcd9f8a4cf12cd0cdafd0b0110c806bb4beb
AuthorMatthias <xmatthias@outlook.com> · 2021-04-15 15:34 +02:00
CommitterGitHub <noreply@github.com> · 2021-04-15 15:34 +02:00
Parents367c2ff7a7f3, e223b474eddc

Browse the files at this changeset

1 file changed

modified docs/strategy-advanced.md +1 −1
@@ -57,7 +57,7 @@
5757 dataframe['atr'] = ta.ATR(dataframe)
5858 if self.dp.runmode.value in ('backtest', 'hyperopt'):
5959 # add indicator mapped to correct DatetimeIndex to custom_info
60- self.custom_info[metadata['pair']] = dataframe[['date', 'atr']].copy().set_index('date')
60+ self.custom_info[metadata['pair']] = dataframe[['date', 'atr']].set_index('date')
6161 return dataframe
6262 ```
6363