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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user