OPEN-SOURCE SCRIPT
Обновлено

Confluence Suite

47 512
Confluence Suite is an all-in-one overlay toolkit built around an adaptive supertrend engine, a neural network signal classifier, and a suite of indicator overlays. Every component is designed to work together or independently, giving traders a flexible system that adapts to any style — trend following, swing trading, scalping, or contrarian approaches.

The core idea is simple: signals fire when the underlying trend engine flips direction, and the neural network then evaluates six market conditions to grade how strong that setup is. Overlay indicators and dashboard metrics give you the context to decide how much weight to put on any given signal.

---

🔶 **SIGNALS**

Signals appear directly on the price chart as labelled markers above or below candles. A buy signal appears below the bar, a sell signal above it. When the AI Signal Classifier is enabled, each signal carries a plain-English quality label — **Strong Buy**, **Good Buy**, **Moderate Buy**, or **Weak Buy** (and equivalently for sells). When the classifier is off, signals show a simple ▲ or ▲+ (▼ or ▼+) depending on whether the 50 EMA is above or below the 200 EMA.

Exit markers appear as a small ✖ on the chart. These fire when a fast EMA crosses the slow EMA in the opposite direction of your open position and RSI confirms the move — a lightweight signal to consider taking profit or tightening your stop. They are not hard exit instructions.

**How signals are generated**

The signal engine is an adaptive supertrend. It continuously runs multiple ATR-based supertrend calculations across a range of sensitivity factors, clusters their performance using a k-means algorithm, and selects whichever factor cluster has performed best recently relative to the current volatility regime. This means the engine self-tunes — it naturally becomes more reactive in fast markets and more patient in slow ones. A buy signal fires when this adaptive supertrend flips from bearish to bullish; a sell signal fires when it flips the other way.

---

🔶 **AI SIGNAL CLASSIFIER**

When enabled, each signal is scored by a six-factor neural network. The six inputs are:

- **AMF Momentum** — measures whether a DEMA-based oscillator is rising and crossing its signal line in the direction of the trade
- **ALMA Alignment** — checks whether fast and slow Arnaud Legoux Moving Averages are aligned with the trade direction and have meaningful separation
- **Support / Resistance Context** — evaluates whether price has recently broken a pivot level, is sitting near support (for buys) or resistance (for sells), or is in a neutral zone
- **Swing Structure** — compares the current 20-bar high/low range to the previous 20-bar range to assess whether the market is making higher highs and higher lows (bullish structure) or lower highs and lower lows (bearish structure)
- **Market Regime** — uses a 30-period ADX calculation to determine whether the market is in a strong directional trend and, if so, whether that trend is in the direction of the signal
- **Volume Sentiment** — uses the candle's close position within its high/low range as a proxy for buying or selling pressure, then computes the ratio of bullish to bearish volume over recent bars

Each factor produces a score between -1 and +1. These flow through a three-layer neural network with tanh activation and a sigmoid output, producing a final confidence value between 0 and 1.

**Signal labels by score:**

Strong Buy / Sell (≥76%) — Most factors align, high confidence setup.
Good Buy / Sell (65–75%) — Majority of factors agree.
Moderate Buy / Sell (37–64%) — Mixed conditions, use additional confluence.
Weak Buy / Sell (<37%) — Few factors supporting the move.

Label colours follow a cyan → teal → dark teal → orange → red gradient from Strong to Weak, giving an immediate visual cue.

When the classifier is off, signal quality is not evaluated and labels revert to directional arrows only.

---

🔶 **SIGNAL SENSITIVITY & TUNING**

**Signal Sensitivity** (default: 5, range: 1–26) controls the range of ATR multipliers the adaptive engine considers. Lower values bias the engine toward short-term, more frequent signals. Higher values produce longer-term, less frequent signals with more lag but less noise. This is the primary control for matching the indicator to your timeframe.

**Signal Tuner** (default: 10, range: 1–25) sets the ATR lookback period used in the supertrend calculation. Higher values smooth the ATR, making signals more refined but introducing slightly more lag. Think of this as a fine-tuning control once you have Sensitivity set where you want it.

**Autopilot Sensitivity** removes the need to manually set Sensitivity at all. When set to Short-Term, Mid-Term, or Long-Term, it overrides the Sensitivity and Tuner inputs with optimised values for that trading horizon. Useful if you trade the same setup on different timeframes without wanting to re-tune manually.

The dashboard shows whether Autopilot is active and, when it is, which mode is running. When Autopilot is off and the AI Signal Classifier is enabled, the dashboard Optimal Sensitivity row shows "On" in green, confirming the classifier is active.

---

🔶 **PRESETS & FILTERS**

Presets automatically configure multiple settings at once, giving you a starting point for a specific trading style.

**Trend Trader [Preset]** — Enables Smart Trail, Trend Catcher, Neo Cloud, and Trend Tracer together. Best suited to traders who want maximum visual confluence for trend-following setups.

**Scalper [Preset]** — Sets Sensitivity to 4 (short-term), enables Smart Trail and Trend Tracer, and switches candle colouring to Confirmation Gradient. Designed for fast timeframes where more signals and tighter visual feedback are preferred.

**Swing Trader [Preset]** — Sets Sensitivity to 18 (long-term), enables Neo Cloud, and uses simple confirmation colouring. Reduces signal frequency significantly, appropriate for daily or weekly charts.

**Contrarian Trader [Preset]** — Enables Reversal Zones and Smart Trail with contrarian gradient candle colouring. Useful when price is ranging and you are fading moves into the zone extremes rather than following breakouts.

Filters allow you to require a specific overlay condition to be true before a signal is shown. Rather than changing what the signal engine detects, they simply suppress signals that don't have the filter's confirmation. Each filter involves a trade-off: you get cleaner, more confluent signals, but you will miss some entries that would have worked without the filter.

**Smart Trail [Filter]** — Only shows buy signals when the Smart Trail is in a bullish state (blue, below price) and sell signals when bearish (red, above price).

**Trend Tracer [Filter]** — Only shows signals aligned with the current Trend Tracer direction.

**Trend Strength [Filter]** — Suppresses signals when the Trend Strength metric is below 30% in absolute terms, filtering out signals during low-momentum, ranging conditions.

**Trend Catcher [Filter]** — Only shows signals aligned with the current Trend Catcher direction.

**Neo Cloud [Filter]** — Uses the Neo Cloud Senkou values as a trend bias filter, only passing signals in the direction the cloud suggests.

---

🔶 **CANDLE COLOURING**

Candle colouring gives a continuous visual read on the trend state between signals, helping you see how a trend is developing or fading without relying on signals alone.

**Confirmation Simple** — Candles are green during uptrends and red during downtrends, switching when the adaptive supertrend changes direction. Straightforward and readable at a glance.

**Confirmation Gradient** — The same directional logic, but the colour intensity scales with the strength of the trend signal. Lighter shades indicate weaker momentum, deeper shades indicate stronger conviction. Useful for identifying when a trend is accelerating or losing steam before a signal fires.

**Contrarian Gradient** — Colouring is inverted relative to the signal direction, making it easier to spot exhaustion points and potential reversals. Designed for use alongside Reversal Zones when trading counter-trend.

**None** — Candle colouring is disabled.

---

🔶 **INDICATOR OVERLAYS**

**Smart Trail**

The Smart Trail is a dynamic band that sits above price in downtrends (red) and below price in uptrends (blue). It acts as a trailing area of support or resistance that adapts to volatility — widening during fast, volatile moves and tightening during calm periods.

Technically it is built on a Trend Flow Line (a hybrid of Hull Moving Averages and double-smoothed WMA), surrounded by inner and outer bands derived from standard deviation. Direction is determined by comparing the current Trend Flow Line to its value nine bars ago. Guard conditions prevent the band from rendering when price has already significantly broken through the outer edge, keeping the display clean.

The primary uses are: (1) as a dynamic support/resistance reference — price holding above the blue band during an uptrend is a positive sign; (2) as an entry filter, only taking buy signals when the band is blue and below price.

**Reversal Zones**

Reversal Zones are shaded probability bands above and below the current price, highlighting areas where reversals are statistically more likely. They use a Rational Quadratic Kernel regression to compute a smooth baseline, then build inner and outer bands using hybrid ATR and mean deviation volatility. The bands widen with volatility and contract in calm conditions.

The upper zone is purple and the lower zone is green, both with a gradient fill that darkens toward the outer edge — meaning price is deeper into the zone. In trending markets, price can push through the zones and continue, so the zones are most useful as a prompt to reduce position size, tighten stops, or look for a signal reversal rather than as hard exit levels.

**Trend Catcher**

The Trend Catcher is a single-line overlay derived from a Hull Moving Average calculation. It changes colour depending on its direction — green when rising, red when falling. It provides a smooth, responsive read on the prevailing trend and is designed to stay close to price without excessive whipsawing. It is most effective on trending instruments and timeframes.

**Trend Tracer**

The Trend Tracer is a crosshair-style line based on a Donchian midpoint supertrend calculation. It is less reactive than the Trend Catcher and changes direction less frequently. It is displayed using a cross marker style so it is visually distinct from the other overlays, and changes colour when its trend direction changes. It works well as a longer-term bias reference alongside shorter-term signals.

**Neo Cloud**

The Neo Cloud is a forward-projected cloud similar in concept to the Ichimoku cloud, but built using ATR-adaptive supertrend calculations rather than simple high/low averages. Three lines — Tenkan, Kijun, and Senkou B — are computed using progressively longer ATR periods and multipliers, and the resulting cloud is projected two bars forward. A bullish cloud (teal) suggests an upward bias; a bearish cloud (red) a downward bias. The cloud's crossovers are marked with circles on the chart.

The Neo Cloud is best used for a macro trend bias rather than precise entry timing. Using the Neo Cloud Filter ensures signals only fire in the direction the cloud is leaning.

**Trailing Stoploss**

When enabled, a line is plotted at the current adaptive supertrend level — the actual threshold the price engine uses to determine direction. This gives you a visual reference for where the engine would flip. You can use this as a mechanical stop placement level.

**AI Moving Average**

An adaptive moving average driven by the performance index of the signal engine. It smooths the supertrend line using a rate that scales with how well the current factor cluster is performing. In strongly trending conditions where the engine is performing well it moves quickly; in weak or choppy conditions it slows down. It changes colour based on whether price is above (bullish) or below (bearish) it.

---

🔶 **DASHBOARD**

The dashboard displays six live metrics and can be positioned in the top right, bottom right, or bottom left of the chart. Size can be set to Tiny, Small, Normal, or Large.

**Optimal Sensitivity / Autopilot** — Shows whether Autopilot is active and which mode, or "On/Off" for the AI Signal Classifier when Autopilot is not in use.

**Trend Strength** — Measures how far the current close is from the 14-period VWMA, normalised by ATR and expressed as a percentage from -100% to +100%. A positive value means price is above the volume-weighted average (bullish bias); a negative value means below (bearish bias). The 🔥 emoji appears when the absolute value exceeds 30%, indicating a meaningful trend. ❄️ appears when the market is weak or ranging.

**Trend Bias** — A qualitative summary row derived from the Trend Strength value: Strongly Bullish (≥75%), Mildly Bullish (30–75%), Neutral (-30% to 30%), Mildly Bearish (-75% to -30%), or Strongly Bearish (≤-75%).

**Volatility** — A normalised ATR reading expressed as Stable (below 30), Moderate (30–80), or Volatile (above 80), with a 📈 or 📉 emoji indicating whether volatility is currently rising or falling.

**Squeeze** — A Bollinger Band / Keltner Channel squeeze metric expressed as a percentage. A high squeeze percentage indicates momentum is building inside a tightening range and a breakout may be approaching.

**Volume Sentiment** — Measures the balance of bullish versus bearish volume over recent bars. Each bar's volume is classified as bullish or bearish based primarily on where the close falls within the bar's high/low range (close near the high = bullish volume; close near the low = bearish volume), with open vs close and close vs previous close as fallbacks. The resulting ratio is expressed as a positive percentage with a green background for bullish dominance and red for bearish.

---

🔶 **SIGNAL MODE**

**Confirmation + Exits** — Standard mode. Buy and sell signals follow the trend direction, with ✖ exit markers when conditions suggest the trend may be losing momentum.

**Contrarian + Exits** — Signal direction is reversed. Signals fire at potential exhaustion points rather than trend continuations. Most effective when combined with the Contrarian Trader preset and Reversal Zones.

**None** — Signals are hidden. Useful if you want to use only the overlay indicators and dashboard without signal labels cluttering the chart.

---

🔶 **RECOMMENDED SETUPS**

For most users, the clearest starting point is the default configuration: Confirmation + Exits signal mode, Smart Trail enabled, Reversal Zones enabled, and the AI Signal Classifier on. This gives you trend-following signals with quality grading, a dynamic support/resistance band, and zone extremes for profit targets.

If you find too many signals, increase Signal Sensitivity toward 10–18 or enable the Trend Strength Filter to suppress signals in ranging conditions.

If you trade short timeframes (1m–15m), the Scalper preset with Sensitivity at 4 and Trend Strength filter active will produce more selective entries with tighter visual feedback from the Confirmation Gradient candle colouring.

For swing trading on daily or weekly charts, the Swing Trader preset with Neo Cloud enabled provides a low-noise setup with long-term trend context.

Regardless of setup, signals should not be followed blindly. The indicator is designed to support your analysis, not replace it. The most effective use is to identify confluence — when signals, overlays, volume sentiment, and trend strength metrics all agree, the probability of a strong move is higher.

---

🔶 **RISK DISCLAIMER**

Trading involves significant risk and most retail traders lose money. All content, scripts, and indicators provided here are for informational and educational purposes only. Past performance does not guarantee future results. Nothing in this indicator or its documentation constitutes financial advice.

🔶 **CREDITS AND ACKNOWLEDGEMENTS**
Thanks to the following authors/scripts, which were used in this indicator:

Ultra Smart Trail by Rathack
Neural Probability Channel by Iamalala
Neural Network Buy and Sell Signals by B3AR_Trades
SuperTrend AI by LuxAlgo
Информация о релизе
couple of aesthetic tweaks to the table

Отказ от ответственности

Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.