From 4862cdb296f0199d26497d594155b9e9b545c5a1 Mon Sep 17 00:00:00 2001 From: Reigo Reinmets Date: Tue, 21 Dec 2021 00:11:01 +0200 Subject: [PATCH] Improve documentation. --- docs/strategy-advanced.md | 7 ++++--- docs/strategy-callbacks.md | 5 ++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/strategy-advanced.md b/docs/strategy-advanced.md index 6d55084b7..99b4a5a70 100644 --- a/docs/strategy-advanced.md +++ b/docs/strategy-advanced.md @@ -233,13 +233,14 @@ merged_frame = pd.concat(frames, axis=1) ## Adjust trade position `adjust_trade_position()` can be used to perform additional orders to manage risk with DCA (Dollar Cost Averaging) for example. +The strategy is expected to return a stake_amount if and when an additional buy order should be made (position is increased). +If there is not enough funds in the wallet then nothing will happen. +Additional orders also mean additional fees and those orders don't count towards `max_open_trades`. +Unlimited stake amount with trade position increasing is highly not recommended as your DCA orders would compete with your normal trade open orders. !!! Note The `position_adjustment_enable` configuration parameter must be enabled to use adjust_trade_position callback in strategy. -!!! Warning - Additional orders also mean additional fees. - !!! Warning Stoploss is still calculated from the initial opening price, not averaged price. diff --git a/docs/strategy-callbacks.md b/docs/strategy-callbacks.md index 0026b9561..0a6f5896b 100644 --- a/docs/strategy-callbacks.md +++ b/docs/strategy-callbacks.md @@ -575,6 +575,8 @@ class AwesomeStrategy(IStrategy): `adjust_trade_position()` can be used to perform additional orders to manage risk with DCA (Dollar Cost Averaging). The strategy is expected to return a stake_amount if and when an additional buy order should be made (position is increased). If there is not enough funds in the wallet then nothing will happen. +Additional orders also mean additional fees and those orders don't count towards `max_open_trades`. +Unlimited stake amount with trade position increasing is highly not recommended as your DCA orders would compete with your normal trade open orders. !!! Note Current implementation does not support decreasing position size with partial sales! @@ -582,9 +584,6 @@ If there is not enough funds in the wallet then nothing will happen. !!! Tip The `position_adjustment_enable` configuration parameter must be enabled to use adjust_trade_position callback in strategy. -!!! Warning - Additional orders also mean additional fees. - !!! Warning Stoploss is still calculated from the initial opening price, not averaged price. So if you do 3 additional buys at -7% and have a stoploss at -10% then you will most likely trigger stoploss while the UI will be showing you an average profit of -3%.