Skip to content

Commit 4096ed8

Browse files
committed
sell_stoploss: rework.
1 parent 2c50641 commit 4096ed8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

NostalgiaForInfinityX.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2243,6 +2243,7 @@ def sell_stoploss(self, current_profit: float, max_profit: float, max_loss: floa
22432243
and (last_candle['cmf'] < -0.0)
22442244
and (last_candle['cmf_15m'] < -0.0)
22452245
and (last_candle['cmf_1h'] < -0.0)
2246+
and (current_time - timedelta(minutes=2880) > trade.open_date_utc)
22462247
):
22472248
if (-0.12 <= current_profit < -0.08):
22482249
if (last_candle['close'] < last_candle['atr_high_thresh_1']) and (previous_candle_1['close'] > previous_candle_1['atr_high_thresh_1']):

0 commit comments

Comments
 (0)