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