PROTECTED SOURCE SCRIPT
Buy/Sell Signals - Confluence Engine v1 [mqsxn]

The Confluence Signal Engine is a multi-factor indicator designed to highlight high-probability BUY and SELL opportunities.
Instead of relying on a single tool, this script combines trend, momentum, structure, volatility, volume, and higher timeframe agreement into a unified scoring system. Signals are only triggered when enough conditions align, helping filter out weak trades.
The indicator is flexible: you can adjust the importance (weight) of each module, change thresholds, or even simplify with Easy Mode for more frequent signals. Labels and background cues make entries impossible to miss, while optional risk/target lines help visualize potential exits.
This tool is not financial advice. Always backtest and combine with your own strategy and risk management.
⚙️ How it Works
- Trend Module: Checks EMA fast/slow alignment and price relative to EMAs.
- Momentum Module: RSI bias (above/below configurable thresholds).
- Structure Module: Break of structure using highest high / lowest low lookback.
- Volatility Module: Expansion when Bollinger Band width rises above average.
- Volume Module: Detects spikes above volume SMA.
- Higher Timeframe Filter: Optional trend confirmation from a larger timeframe.
- Filters: Session time, ATR rising condition, and cooldown between signals.
- Signals: Appear as giant BUY/SELL labels (Cross, Raw, Filtered) plus optional small labels.
- Risk Lines: Draws stoploss at swing + configurable risk:reward target lines.
📊 Inputs & Settings
Timeframes
- Use Higher Timeframe Filter: Enable confirmation from a larger timeframe.
- Higher Timeframe: Choose the timeframe (set to “Chart” to use the active chart).
Core Settings
- EMA Fast/Slow: Moving averages for trend direction.
- RSI Length: Period for RSI calculation.
- RSI Long/Short Thresholds: Define bullish/bearish momentum bias.
- Structure Lookback: Bars to check for breakouts/breakdowns.
- Bollinger Band Length & Multiplier: For volatility expansion.
- Volume SMA Length: Period for average volume.
- Volume Spike Factor: Multiplier for detecting spikes.
- Cooldown (bars): Minimum bars between filtered signals.
- Min Score to Signal: How strong the confluence must be before signaling.
- Module Weights (0 = ignore)
- Trend: EMA Stack
- HTF Trend Agreement
- Momentum: RSI Bias
- Structure: Breakout/Breakdown
- Volatility: Expansion from Squeeze
- Volume: Spike vs SMA
Filters
- Filter: Only when ATR Rising: Require ATR uptrend.
- ATR Length: Period for ATR.
- Filter: Session Time Only: Restrict to intraday session.
- Session: Default is 09:30–16:00 (U.S. equities).
Visuals & Alerts
- Color Bars by Bias: Paints candles by trend bias.
- Background Stripe for HTF Bias: Subtle background shading.
- Show Small Labels: Compact labels near bars.
- Show CROSS Labels: Signals when score crosses threshold.
- Show FILTERED Labels: Signals with all filters + cooldown (main mode).
- Show RAW Labels: Simple threshold signals (no filters).
Risk Lines
- Show Risk/Target Lines: Draw stop at recent swing + 1R/2R target lines.
- Stop at Recent Swing (bars): Swing lookback for SL.
- Target RR #1 & #2: Risk:Reward multiples to project.
Debug
- Easy Mode: Lower thresholds and disable filters for more frequent testing signals.
- Show Debug Plots: Overlay raw scores vs threshold.
✅ Best Practices
Start with Easy Mode to confirm labels plot, then raise thresholds and re-enable filters.
Use higher thresholds + HTF agreement for cleaner, rarer signals.
Adjust weights to prioritize the modules you trust most.
Combine with your own support/resistance, order flow, or risk management.
⚠️ Disclaimer: This script is for educational purposes only. It does not guarantee profitability. Always test on demo accounts or paper trading before applying to live capital.
Following me mqsxn on TradingView for more, and gain access to the source code through my paid Discord (7 day free trial): whop.com/checkout/plan_bBFI5GUDTIVYO?d2c=true
Instead of relying on a single tool, this script combines trend, momentum, structure, volatility, volume, and higher timeframe agreement into a unified scoring system. Signals are only triggered when enough conditions align, helping filter out weak trades.
The indicator is flexible: you can adjust the importance (weight) of each module, change thresholds, or even simplify with Easy Mode for more frequent signals. Labels and background cues make entries impossible to miss, while optional risk/target lines help visualize potential exits.
This tool is not financial advice. Always backtest and combine with your own strategy and risk management.
⚙️ How it Works
- Trend Module: Checks EMA fast/slow alignment and price relative to EMAs.
- Momentum Module: RSI bias (above/below configurable thresholds).
- Structure Module: Break of structure using highest high / lowest low lookback.
- Volatility Module: Expansion when Bollinger Band width rises above average.
- Volume Module: Detects spikes above volume SMA.
- Higher Timeframe Filter: Optional trend confirmation from a larger timeframe.
- Filters: Session time, ATR rising condition, and cooldown between signals.
- Signals: Appear as giant BUY/SELL labels (Cross, Raw, Filtered) plus optional small labels.
- Risk Lines: Draws stoploss at swing + configurable risk:reward target lines.
📊 Inputs & Settings
Timeframes
- Use Higher Timeframe Filter: Enable confirmation from a larger timeframe.
- Higher Timeframe: Choose the timeframe (set to “Chart” to use the active chart).
Core Settings
- EMA Fast/Slow: Moving averages for trend direction.
- RSI Length: Period for RSI calculation.
- RSI Long/Short Thresholds: Define bullish/bearish momentum bias.
- Structure Lookback: Bars to check for breakouts/breakdowns.
- Bollinger Band Length & Multiplier: For volatility expansion.
- Volume SMA Length: Period for average volume.
- Volume Spike Factor: Multiplier for detecting spikes.
- Cooldown (bars): Minimum bars between filtered signals.
- Min Score to Signal: How strong the confluence must be before signaling.
- Module Weights (0 = ignore)
- Trend: EMA Stack
- HTF Trend Agreement
- Momentum: RSI Bias
- Structure: Breakout/Breakdown
- Volatility: Expansion from Squeeze
- Volume: Spike vs SMA
Filters
- Filter: Only when ATR Rising: Require ATR uptrend.
- ATR Length: Period for ATR.
- Filter: Session Time Only: Restrict to intraday session.
- Session: Default is 09:30–16:00 (U.S. equities).
Visuals & Alerts
- Color Bars by Bias: Paints candles by trend bias.
- Background Stripe for HTF Bias: Subtle background shading.
- Show Small Labels: Compact labels near bars.
- Show CROSS Labels: Signals when score crosses threshold.
- Show FILTERED Labels: Signals with all filters + cooldown (main mode).
- Show RAW Labels: Simple threshold signals (no filters).
Risk Lines
- Show Risk/Target Lines: Draw stop at recent swing + 1R/2R target lines.
- Stop at Recent Swing (bars): Swing lookback for SL.
- Target RR #1 & #2: Risk:Reward multiples to project.
Debug
- Easy Mode: Lower thresholds and disable filters for more frequent testing signals.
- Show Debug Plots: Overlay raw scores vs threshold.
✅ Best Practices
Start with Easy Mode to confirm labels plot, then raise thresholds and re-enable filters.
Use higher thresholds + HTF agreement for cleaner, rarer signals.
Adjust weights to prioritize the modules you trust most.
Combine with your own support/resistance, order flow, or risk management.
⚠️ Disclaimer: This script is for educational purposes only. It does not guarantee profitability. Always test on demo accounts or paper trading before applying to live capital.
Following me mqsxn on TradingView for more, and gain access to the source code through my paid Discord (7 day free trial): whop.com/checkout/plan_bBFI5GUDTIVYO?d2c=true
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.