From 120fe2f069465fc971b2c2772fa9b3aea83ebc39 Mon Sep 17 00:00:00 2001 From: Robert Caulk Date: Sat, 1 Apr 2023 11:50:06 +0200 Subject: [PATCH] ensure python code block renders --- docs/freqai-feature-engineering.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/freqai-feature-engineering.md b/docs/freqai-feature-engineering.md index f379e98c7..1ca25d15c 100644 --- a/docs/freqai-feature-engineering.md +++ b/docs/freqai-feature-engineering.md @@ -186,7 +186,7 @@ In total, the number of features the user of the presented example strat has cre All `feature_engineering_*` and `set_freqai_targets()` functions are passed a `metadata` dictionary which contains information about the `pair`, `tf` (timeframe), and `period` that FreqAI is automating for feature building. As such, a user can use `metadata` inside `feature_engineering_*` functions as criteria for blocking/reserving features for certain timeframes, periods, pairs etc. - ```py + ```python def feature_engineering_expand_all(self, dataframe, period, metadata, **kwargs): if metadata["tf"] == "1h": dataframe["%-roc-period"] = ta.ROC(dataframe, timeperiod=period)