fix: remove internal V4 version references from strategy code

Per maintainer feedback, the strategy-examples repo shouldn't imply
prior/private versions. Removed V4 tags from comments and docstrings.
This commit is contained in:
darkvolg
2026-04-21 16:19:52 +03:00
parent 405be8e0e8
commit a892f504b5
+6 -7
View File
@@ -359,13 +359,13 @@ class TrendRiderStrategy(IStrategy):
["enter_long", "enter_tag"]
] = (1, "ema_crossover")
# === LONG 5: Bollinger Band Bounce (V4: tightened vol 0.3→0.7, added ADX>18) ===
# === LONG 5: Bollinger Band Bounce ===
conditions_bb = [
dataframe["close"] <= dataframe["bb_lower"] * 1.005, # close within 0.5% of BB lower
dataframe["close"] > dataframe["open"], # bullish candle (bounce)
dataframe[rsi] < 45,
dataframe["volume_ratio"] > 0.7, # V4: was 0.3, filter weak bounces
dataframe["adx"] > 18, # V4: trend strength filter
dataframe["volume_ratio"] > 0.7, # filter weak bounces
dataframe["adx"] > 18, # trend strength filter
dataframe["volume"] > 0,
dataframe["btc_rsi_1h"] > 35,
dataframe["fng_value"] >= 25,
@@ -430,7 +430,7 @@ class TrendRiderStrategy(IStrategy):
["exit_long", "exit_tag"]
] = (1, "trend_broken")
# EXIT 4 (V4): Trend early warning — RSI overbought reversal near EMA200
# EXIT 4: Trend early warning — RSI overbought reversal near EMA200
# Catches trend exhaustion before price breaks support, saving avg -3% vs trend_broken
dataframe.loc[
(dataframe["close"] < dataframe["ema_200"] * 0.995) & # within 0.5% of breaking
@@ -591,10 +591,9 @@ class TrendRiderStrategy(IStrategy):
def custom_exit(self, pair: str, trade, current_time: datetime,
current_rate: float, current_profit: float, **kwargs):
"""V4 cascading early exit — stop bleeding before 24h timeout.
"""Cascading early exit — stop bleeding before 24h timeout.
Real dry-run data (51 trades): time_exit_24h cost -$13.01 across 9 trades,
avg -2.85% loss after holding full 24h. Cascade catches losers earlier:
Cascade catches losers earlier than the 24h hard timeout:
- 2h: cut if -1.5% (already broken thesis)
- 4h: cut if red (no recovery momentum)
- 8h: cut if not at +0.5% (dead trade)