From db3483c827f5e176f7e2b3e972541c4b60cbf2d4 Mon Sep 17 00:00:00 2001 From: Reigo Reinmets Date: Wed, 12 Jan 2022 05:02:42 +0200 Subject: [PATCH] Our example should also set position_adjustment_enable --- docs/strategy-callbacks.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/strategy-callbacks.md b/docs/strategy-callbacks.md index bad96d990..f313b6ae2 100644 --- a/docs/strategy-callbacks.md +++ b/docs/strategy-callbacks.md @@ -597,15 +597,18 @@ from freqtrade.persistence import Trade class DigDeeperStrategy(IStrategy): + position_adjustment_enable = True + # Attempts to handle large drops with DCA. High stoploss is required. stoploss = -0.30 + # ... populate_* methods + + # Example specific variables max_dca_orders = 3 # This number is explained a bit further down max_dca_multiplier = 5.5 - # ... populate_* methods - # This is called when placing the initial order (opening trade) def custom_stake_amount(self, pair: str, current_time: datetime, current_rate: float, proposed_stake: float, min_stake: float, max_stake: float,