From 039363d5b5f0a5544a0ceb9989662988cf36c826 Mon Sep 17 00:00:00 2001 From: mindesbunister Date: Tue, 18 Nov 2025 11:14:32 +0100 Subject: [PATCH] fix: Update v8 indicator version tracking and comments - Changed indicatorVer from 'v6' to 'v8' for database tracking - Updated comments to reflect sticky trend logic - Ready for TradingView alert setup --- .../trading/moneyline_v8_sticky_trend.pinescript | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/workflows/trading/moneyline_v8_sticky_trend.pinescript b/workflows/trading/moneyline_v8_sticky_trend.pinescript index 35c7a1e..20c6bfb 100644 --- a/workflows/trading/moneyline_v8_sticky_trend.pinescript +++ b/workflows/trading/moneyline_v8_sticky_trend.pinescript @@ -217,12 +217,12 @@ volumeOk = not useVolumeFilter or (volumeRatio >= volMin and volumeRatio <= volM rsiLongOk = not useRsiFilter or (rsi14 >= rsiLongMin and rsi14 <= rsiLongMax) rsiShortOk = not useRsiFilter or (rsi14 >= rsiShortMin and rsi14 <= rsiShortMax) -// V7: PURE LINE FLIP SIGNALS - Maximum accuracy mode -// Signal fires on EVERY line color change (red↔green) -// Risk management: ATR-based TP/SL + trailing stops (bot-side) -// Filters removed: Line flip IS the signal -finalLongSignal = buyReady // 🟒 Signal on every red β†’ green flip -finalShortSignal = sellReady // πŸ”΄ Signal on every green β†’ red flip +// V8: STICKY TREND SIGNALS - High accuracy with flip-flop protection +// Signal fires on line color changes ONLY when price breaches threshold +// Protection: 0.5% flip threshold + 0.20 ATR buffer + ADX 18+ + stickier multipliers +// Result: Clean trend signals without noise +finalLongSignal = buyReady // 🟒 Signal on red β†’ green flip (with threshold) +finalShortSignal = sellReady // πŸ”΄ Signal on green β†’ red flip (with threshold) plotshape(finalLongSignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.circle, size=size.small) plotshape(finalShortSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.circle, size=size.small) @@ -233,7 +233,7 @@ baseCurrency := str.replace(baseCurrency, "USDT", "") baseCurrency := str.replace(baseCurrency, "PERP", "") // Indicator version for tracking in database -indicatorVer = "v6" +indicatorVer = "v8" // Build enhanced alert messages with context (timeframe.period is dynamic) longAlertMsg = baseCurrency + " buy " + timeframe.period + " | ATR:" + str.tostring(atrPercent, "#.##") + " | ADX:" + str.tostring(adxVal, "#.#") + " | RSI:" + str.tostring(rsi14, "#.#") + " | VOL:" + str.tostring(volumeRatio, "#.##") + " | POS:" + str.tostring(pricePosition, "#.#") + " | IND:" + indicatorVer