Skip to content

Commit 635fa77

Browse files
committed
sell_stoploss: rework.
1 parent 376fbe4 commit 635fa77

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

NostalgiaForInfinityX.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2022,22 +2022,6 @@ def sell_stoploss(self, current_profit: float, max_profit: float, max_loss: floa
20222022
if (last_candle['close'] < last_candle['atr_high_thresh_4']) and (previous_candle_1['close'] > previous_candle_1['atr_high_thresh_4']):
20232023
return True, 'sell_stoploss_atr_4'
20242024

2025-
# Under & near EMA200, local uptrend move
2026-
if (
2027-
(current_profit < -0.0)
2028-
and (last_candle['close'] < last_candle['ema_200'])
2029-
and (last_candle['cmf'] < -0.0)
2030-
and (last_candle['cmf_15m'] < -0.0)
2031-
and (last_candle['cmf_1h'] < -0.0)
2032-
and (((last_candle['ema_200'] - last_candle['close']) / last_candle['close']) < 0.004)
2033-
and last_candle['rsi_14'] > previous_candle_1['rsi_14']
2034-
and (last_candle['rsi_14'] > (last_candle['rsi_14_1h'] + 12.0))
2035-
and (last_candle['sma_200_dec_20'])
2036-
and (last_candle['sma_200_dec_24'])
2037-
and (current_time - timedelta(minutes=720) > trade.open_date_utc)
2038-
):
2039-
return True, 'sell_stoploss_u_e_1'
2040-
20412025
return False, None
20422026

20432027
def sell_over_main(self, current_profit: float, last_candle) -> tuple:

0 commit comments

Comments
 (0)