OPEN-SOURCE SCRIPT

AI Signal Confluence [forexobroker]

2 761
🔶 OVERVIEW

AI Signal Confluence is a multi-indicator voting system that scores market conditions across seven independent technical dimensions — trend, momentum, volume, volatility, MACD, SuperTrend, and market structure — and combines them into a single weighted confidence score from 0 to 100. Signals fire only when the composite score crosses a configurable threshold, ensuring that multiple analytical perspectives agree before any trade is suggested.

The problem this solves is analysis paralysis. Traders who use multiple indicators often receive conflicting signals and struggle to synthesize them into a clear decision. This indicator does the synthesis automatically: each component votes bullish or bearish with a 0-100 score, the votes are weighted by user-defined importance, and the result is a single confidence percentage that answers the question "how aligned is everything right now?"

This tool is ideal for traders who value confluence-based decision-making and want a systematic, rules-based framework rather than discretionary chart reading.

🔶 CONCEPTS

Confluence in trading means multiple independent signals pointing in the same direction at the same time. A single indicator can be wrong, but when trend direction, momentum, volume, volatility expansion, MACD histogram, SuperTrend direction, and market structure all agree, the probability of a successful trade increases meaningfully.

The weighted scoring approach recognizes that not all indicators are equally important in every market context. Trend-following traders might weight SuperTrend and EMA alignment heavily, while mean-reversion traders might emphasize RSI and Bollinger Band width. By allowing users to adjust the weights, the same indicator framework adapts to different trading styles and market conditions.

🔶 HOW IT WORKS

• Seven sub-indicators are calculated independently: EMA alignment (trend), RSI positioning (momentum), relative volume ratio, Bollinger Band width expansion (volatility), MACD histogram direction and magnitude, SuperTrend direction, and price position relative to recent pivot structure

• Each sub-indicator produces a bullish score from 0 to 100, and the bearish score is derived as the complement

• Scores are combined using user-defined percentage weights, producing a composite bull confidence and bear confidence

• A buy signal fires when the bull confidence crosses above the threshold (default 70%) on a confirmed bar with the cooldown satisfied; sell signals use the bear confidence crossing its threshold

• The dashboard displays each component's individual vote, score, and the aggregate confidence with a visual bar gauge

🔶 HOW TO USE

Add the indicator to any chart — the dashboard immediately shows how all seven components are voting and the composite confidence level
Monitor the confidence gauge at the bottom of the dashboard — when it fills toward 80-90%, a signal is likely imminent in that direction
When a signal fires with the confidence percentage displayed, evaluate whether the broader context supports the trade — check the individual component scores in the dashboard for any outliers
Adjust component weights in the Advanced settings to match your trading style — give more weight to the indicators you trust most

🔶 FEATURES

• Non-repainting signals (uses barstate.isconfirmed)
• Works on all timeframes and instruments
• 9 alert conditions with webhook JSON support
• Professional dashboard display with component-by-component voting visualization
• Fully customizable weight system for each of the seven indicators
• Gradient bar coloring and background that reflects real-time confidence level

🔶 SETTINGS GUIDE

• Confidence Threshold — Minimum composite score to trigger a signal (default: 70%)
• Signal Cooldown — Minimum bars between consecutive signals (default: 15)
• EMA Fast / Mid / Slow — EMA periods for trend alignment scoring (default: 9 / 21 / 50)
• RSI Length — RSI calculation period for momentum scoring (default: 14) • BB Length / Multiplier — Bollinger Band parameters for volatility scoring (default: 20 / 2.0)
• MACD Fast / Slow / Signal — MACD parameters for histogram scoring (default: 12 / 26 / 9)
• SuperTrend Length / Factor — SuperTrend parameters for direction scoring (default: 10 / 3.0)
• Pivot Lookback — Bars for structure scoring via pivot highs and lows (default: 5)
• Trend / Momentum / Volume / Volatility / MACD / SuperTrend / Structure Weight — Percentage weight for each component in the composite score

🔶 ALERTS

• AISC Buy Signal — Fires on confirmed bullish confluence signal
• AISC Sell Signal — Fires on confirmed bearish confluence signal • Any AISC Signal — Fires on any confirmed signal
• High Confidence (>80%) — Fires when either bull or bear confidence exceeds 80%
• Extreme Confidence (>90%) — Fires when confidence exceeds 90%
• Trend Fully Aligned — Fires when the trend component reaches a perfect score
• Volume Spike (>2x) — Fires when relative volume exceeds 2x the average
• All Indicators Agree — Fires when confidence exceeds 90% with perfect trend alignment
• Webhook JSON — JSON-formatted alert for automated bot integration

🔶 LIMITATIONS & DISCLAIMER

• This is a technical analysis tool, not financial advice
• Past patterns do not guarantee future results
• Best used alongside price action context and proper risk management
• The composite score can lag during sharp reversals because the underlying indicators are inherently reactive
• The term "AI" refers to the systematic weighted voting framework, not machine learning — no neural network or external data is used

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.