add metadata param to docstrings
This commit is contained in:
parent
e569f6f6df
commit
0dd2472385
@ -34,6 +34,7 @@ It is advisable to start from the template `feature_engineering_*` functions in
|
|||||||
|
|
||||||
:param df: strategy dataframe which will receive the features
|
:param df: strategy dataframe which will receive the features
|
||||||
:param period: period of the indicator - usage example:
|
:param period: period of the indicator - usage example:
|
||||||
|
:param metadata: metadata of current pair
|
||||||
dataframe["%-ema-period"] = ta.EMA(dataframe, timeperiod=period)
|
dataframe["%-ema-period"] = ta.EMA(dataframe, timeperiod=period)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@ -86,6 +87,7 @@ It is advisable to start from the template `feature_engineering_*` functions in
|
|||||||
All features must be prepended with `%` to be recognized by FreqAI internals.
|
All features must be prepended with `%` to be recognized by FreqAI internals.
|
||||||
|
|
||||||
:param df: strategy dataframe which will receive the features
|
:param df: strategy dataframe which will receive the features
|
||||||
|
:param metadata: metadata of current pair
|
||||||
dataframe["%-pct-change"] = dataframe["close"].pct_change()
|
dataframe["%-pct-change"] = dataframe["close"].pct_change()
|
||||||
dataframe["%-ema-200"] = ta.EMA(dataframe, timeperiod=200)
|
dataframe["%-ema-200"] = ta.EMA(dataframe, timeperiod=200)
|
||||||
"""
|
"""
|
||||||
@ -113,6 +115,7 @@ It is advisable to start from the template `feature_engineering_*` functions in
|
|||||||
All features must be prepended with `%` to be recognized by FreqAI internals.
|
All features must be prepended with `%` to be recognized by FreqAI internals.
|
||||||
|
|
||||||
:param df: strategy dataframe which will receive the features
|
:param df: strategy dataframe which will receive the features
|
||||||
|
:param metadata: metadata of current pair
|
||||||
usage example: dataframe["%-day_of_week"] = (dataframe["date"].dt.dayofweek + 1) / 7
|
usage example: dataframe["%-day_of_week"] = (dataframe["date"].dt.dayofweek + 1) / 7
|
||||||
"""
|
"""
|
||||||
dataframe["%-day_of_week"] = (dataframe["date"].dt.dayofweek + 1) / 7
|
dataframe["%-day_of_week"] = (dataframe["date"].dt.dayofweek + 1) / 7
|
||||||
@ -130,6 +133,7 @@ It is advisable to start from the template `feature_engineering_*` functions in
|
|||||||
`metadata["pair"]`
|
`metadata["pair"]`
|
||||||
|
|
||||||
:param df: strategy dataframe which will receive the targets
|
:param df: strategy dataframe which will receive the targets
|
||||||
|
:param metadata: metadata of current pair
|
||||||
usage example: dataframe["&-target"] = dataframe["close"].shift(-1) / dataframe["close"]
|
usage example: dataframe["&-target"] = dataframe["close"].shift(-1) / dataframe["close"]
|
||||||
"""
|
"""
|
||||||
dataframe["&-s_close"] = (
|
dataframe["&-s_close"] = (
|
||||||
|
@ -636,6 +636,7 @@ class IStrategy(ABC, HyperStrategyMixin):
|
|||||||
|
|
||||||
:param df: strategy dataframe which will receive the features
|
:param df: strategy dataframe which will receive the features
|
||||||
:param period: period of the indicator - usage example:
|
:param period: period of the indicator - usage example:
|
||||||
|
:param metadata: metadata of current pair
|
||||||
dataframe["%-ema-period"] = ta.EMA(dataframe, timeperiod=period)
|
dataframe["%-ema-period"] = ta.EMA(dataframe, timeperiod=period)
|
||||||
"""
|
"""
|
||||||
return dataframe
|
return dataframe
|
||||||
@ -663,6 +664,7 @@ class IStrategy(ABC, HyperStrategyMixin):
|
|||||||
https://www.freqtrade.io/en/latest/freqai-feature-engineering/#defining-the-features
|
https://www.freqtrade.io/en/latest/freqai-feature-engineering/#defining-the-features
|
||||||
|
|
||||||
:param df: strategy dataframe which will receive the features
|
:param df: strategy dataframe which will receive the features
|
||||||
|
:param metadata: metadata of current pair
|
||||||
dataframe["%-pct-change"] = dataframe["close"].pct_change()
|
dataframe["%-pct-change"] = dataframe["close"].pct_change()
|
||||||
dataframe["%-ema-200"] = ta.EMA(dataframe, timeperiod=200)
|
dataframe["%-ema-200"] = ta.EMA(dataframe, timeperiod=200)
|
||||||
"""
|
"""
|
||||||
@ -687,6 +689,7 @@ class IStrategy(ABC, HyperStrategyMixin):
|
|||||||
https://www.freqtrade.io/en/latest/freqai-feature-engineering
|
https://www.freqtrade.io/en/latest/freqai-feature-engineering
|
||||||
|
|
||||||
:param df: strategy dataframe which will receive the features
|
:param df: strategy dataframe which will receive the features
|
||||||
|
:param metadata: metadata of current pair
|
||||||
usage example: dataframe["%-day_of_week"] = (dataframe["date"].dt.dayofweek + 1) / 7
|
usage example: dataframe["%-day_of_week"] = (dataframe["date"].dt.dayofweek + 1) / 7
|
||||||
"""
|
"""
|
||||||
return dataframe
|
return dataframe
|
||||||
@ -702,6 +705,7 @@ class IStrategy(ABC, HyperStrategyMixin):
|
|||||||
https://www.freqtrade.io/en/latest/freqai-feature-engineering
|
https://www.freqtrade.io/en/latest/freqai-feature-engineering
|
||||||
|
|
||||||
:param df: strategy dataframe which will receive the targets
|
:param df: strategy dataframe which will receive the targets
|
||||||
|
:param metadata: metadata of current pair
|
||||||
usage example: dataframe["&-target"] = dataframe["close"].shift(-1) / dataframe["close"]
|
usage example: dataframe["&-target"] = dataframe["close"].shift(-1) / dataframe["close"]
|
||||||
"""
|
"""
|
||||||
return dataframe
|
return dataframe
|
||||||
|
Loading…
Reference in New Issue
Block a user