Skip to content

Commit 34d3e2e

Browse files
committed
sell_trail: rework.
1 parent 625d8fb commit 34d3e2e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

NostalgiaForInfinityX.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class NostalgiaForInfinityX(IStrategy):
113113
INTERFACE_VERSION = 2
114114

115115
def version(self) -> str:
116-
return "v11.0.344"
116+
return "v11.0.345"
117117

118118
# ROI table:
119119
minimal_roi = {
@@ -5789,7 +5789,7 @@ def sell_r(self, current_profit: float, max_profit: float, max_loss: float, last
57895789

57905790
def sell_trail(self, current_profit: float, max_profit: float, max_loss: float, last_candle, previous_candle_1, trade: 'Trade', current_time: 'datetime') -> tuple:
57915791
if 0.012 > current_profit >= 0.0:
5792-
if (max_profit > (current_profit + 0.045)) and (last_candle['rsi_14'] < 46.0):
5792+
if (max_profit > (current_profit + 0.045)) and (last_candle['rsi_14'] < 44.0):
57935793
return True, 'sell_profit_t_0_1'
57945794
elif (max_profit > (current_profit + 0.025)) and (last_candle['rsi_14'] < 32.0):
57955795
return True, 'sell_profit_t_0_2'

0 commit comments

Comments
 (0)