Skip to content

Commit

Permalink
Fix broken sample of @informative decorator
Browse files Browse the repository at this point in the history
closes #7095
  • Loading branch information
xmatthias committed Apr 18, 2024
1 parent bc85352 commit 298f9b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/strategy-customization.md
Expand Up @@ -551,8 +551,8 @@ for more information.

# Define BTC/STAKE informative pair. A custom formatter may be specified for formatting
# column names. A callable `fmt(**kwargs) -> str` may be specified, to implement custom
# formatting. Available in populate_indicators and other methods as 'rsi_upper'.
@informative('1h', 'BTC/{stake}', '{column}')
# formatting. Available in populate_indicators and other methods as 'rsi_upper_1h'.
@informative('1h', 'BTC/{stake}', '{column}_{timeframe}')
def populate_indicators_btc_1h_2(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
dataframe['rsi_upper'] = ta.RSI(dataframe, timeperiod=14)
return dataframe
Expand Down

0 comments on commit 298f9b2

Please sign in to comment.