Re-add getting buy orders in docs

This commit is contained in:
Matthias 2022-01-24 07:11:22 +01:00
parent 57067ce88d
commit 45a2298929

View File

@ -654,6 +654,7 @@ class DigDeeperStrategy(IStrategy):
if last_candle['close'] < previous_candle['close']: if last_candle['close'] < previous_candle['close']:
return None return None
filled_buys = trade.select_filled_orders('buy')
count_of_buys = trade.nr_of_successful_buys count_of_buys = trade.nr_of_successful_buys
# Allow up to 3 additional increasingly larger buys (4 in total) # Allow up to 3 additional increasingly larger buys (4 in total)
# Initial buy is 1x # Initial buy is 1x