Skip to content

Commit 9f69b4f

Browse files
authored
Merge pull request freqtrade#11172 from froggleston/frog-docs-adjust-1
Clarify trade.stake_amount as combined stake for all adjusted orders
2 parents 9beae3d + d23c312 commit 9f69b4f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/strategy-callbacks.md

+2
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,8 @@ Adjustment orders can be assigned with a tag by returning a 2 element Tuple, wit
767767

768768
Modifications to leverage are not possible, and the stake-amount returned is assumed to be before applying leverage.
769769

770+
The combined stake currently allocated to the position is held in `trade.stake_amount`. Therefore `trade.stake_amount` will always be updated on every additional entry and partial exit made through `adjust_trade_position()`.
771+
770772
!!! Danger "Loose Logic"
771773
On dry and live run, this function will be called every `throttle_process_secs` (default to 5s). If you have a loose logic, for example your logic for extra entry is only to check RSI of last candle is below 30, then when such condition fulfilled, your bot will do extra re-entry every 5 secs until either it run out of money, it hit the `max_position_adjustment` limit, or a new candle with RSI more than 30 arrived.
772774

0 commit comments

Comments
 (0)