Update strategy-callbacks.md

This commit is contained in:
Stefano Ariestasia 2022-01-19 22:16:42 +09:00
parent ac93eea585
commit 7c010b3058

View File

@ -652,9 +652,6 @@ class DigDeeperStrategy(IStrategy):
if last_candle['close'] < previous_candle['close']:
return None
filled_buys = trade.select_filled_orders('buy')
count_of_buys = len(filled_buys)
# Allow up to 3 additional increasingly larger buys (4 in total)
# Initial buy is 1x
# If that falls to -5% profit, we buy 1.25x more, average profit should increase to roughly -2.2%
@ -663,7 +660,6 @@ class DigDeeperStrategy(IStrategy):
# Total stake for this trade would be 1 + 1.25 + 1.5 + 1.75 = 5.5x of the initial allowed stake.
# That is why max_dca_multiplier is 5.5
# Hope you have a deep wallet!
if 0 < count_of_buys <= self.max_buy_position_adjustment:
try:
# This returns first order stake size
stake_amount = filled_buys[0].cost