Skip to content

Commit

Permalink
X5: grinding: fine tune the entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
iterativv committed Oct 10, 2024
1 parent 39ddf55 commit 1a1826e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions NostalgiaForInfinityX5.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class NostalgiaForInfinityX5(IStrategy):
INTERFACE_VERSION = 3

def version(self) -> str:
return "v15.1.126"
return "v15.1.128"

stoploss = -0.99

Expand Down Expand Up @@ -31887,7 +31887,18 @@ def short_grind_adjust_trade_position(
or (slice_profit > 0.06)
)
# and ((num_open_grinds == 0) or (slice_profit > 0.03))
and (is_short_grind_entry)
and (
(is_short_grind_entry)
or (
(last_candle["RSI_14"] > 64.0)
and (last_candle["RSI_3"] < 90.0)
and (last_candle["RSI_3_15m"] < 85.0)
and (last_candle["RSI_3_1h"] < 80.0)
and (last_candle["RSI_3_4h"] < 80.0)
and (last_candle["AROOND_14"] < 25.0)
and (last_candle["close"] > (last_candle["EMA_20"] * 1.012))
)
)
):
buy_amount = (
slice_amount * grind_6_stakes[grind_6_sub_grind_count] / (trade.leverage if self.is_futures_mode else 1.0)
Expand Down

0 comments on commit 1a1826e

Please sign in to comment.