From 6aa8b539dc9cc5bacfcbcc563b89581dfdb8d000 Mon Sep 17 00:00:00 2001 From: MoonGem <34537029+MoonGem@users.noreply.github.com> Date: Fri, 23 Mar 2018 16:39:58 -0500 Subject: [PATCH] Updated 3/23/18 4:38PMC Added "update into backup" Mainly PR'd to keep notes, maybe this could be used to advance documentation. --- user_data/strategies/test_strategy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user_data/strategies/test_strategy.py b/user_data/strategies/test_strategy.py index 0c7c6d719..6f26c7b48 100644 --- a/user_data/strategies/test_strategy.py +++ b/user_data/strategies/test_strategy.py @@ -22,7 +22,7 @@ import numpy # noqa # 'sar_reversal': (qtpylib.crossed_above( # dataframe['close'], dataframe['sar'] # -# Drop the trigger into 'def populate_buy_trend(self, dataframe: DataFrame) -> DataFrame:' as: +# Drop the trigger into 'def populate_buy_trend(self, dataframe: DataFrame) -> DataFrame:' into your default_strategy backup as: # dataframe['close'], dataframe['sar'] & # Then for your other values such as: 'Mfi-Value: 15.00' # The if statement looks like: conditions.append(dataframe['mfi'] < params['mfi']['value'] @@ -40,7 +40,7 @@ import numpy # noqa # 'sell'] = 1 # - +# Once done, move your backup strategy back over this one and backtest. class_name = 'DefaultStrategy'