Master Line Lite: 5-MA ConsensusMaster Line Lite condenses five different moving-average families into a single, easy-to-read consensus trend line, then filters its direction with a volatility-aware band so the trend only changes when price commits. It's a clean, open-source alternative to stacking several moving averages on one chart.
How it works
Each moving-average type reacts to price differently. An EMA and a WMA weight recent bars heavily and turn quickly; an SMA weights every bar equally and turns slowly; an RMA (Wilder's) is the smoothest; and an HMA cuts lag while staying responsive. Any single one is a compromise โ fast types whipsaw in chop, slow types lag at turns.
Master Line Lite computes all five over the same length and averages them into one line:
consensus = ( EMA + SMA + WMA + HMA + RMA ) / 5
Blending the five balances their individual biases: the fast members keep the line responsive while the slow members damp noise. That's the purpose of the combination โ not to stack indicators, but to average out the weakness of each MA type into one steadier reference than a single fast MA, yet more responsive than a single slow one.
Direction is then decided with an ATR band instead of a raw cross. The trend turns bullish only when price closes above the line by more than Flip band ร ATR, and bearish only when it closes the same distance below; between those thresholds the previous trend is held. This deadband is what suppresses the constant flip-flopping of a plain price/MA cross during sideways markets.
The line is colored by the current trend, an optional band shows the flip thresholds, and triangles mark the exact bar where the trend flips.
How to use it
Use the line as a trend reference and bias filter โ favor longs while it's teal, shorts while it's red.
The triangles flag where the consensus trend changes โ a "context has shifted" cue, not a standalone entry.
Widen the Flip band on noisy/ranging instruments to cut false flips; narrow it on clean trends for earlier turns.
Increase Length for a slower higher-timeframe bias; decrease it for a faster intraday read.
Two built-in alerts fire on bullish and bearish flips.
Settings
Source โ price series the averages are built from (default: close).
Length โ lookback used for all five moving averages.
Flip band (ร ATR) โ how far price must clear the line to change the trend; the core noise filter.
Show band โ draw the upper/lower flip thresholds.
Color bars by trend โ tint candles with the trend color.
Show status box โ small top-right label with the current Bull / Bear / Flat state.
Notes and limitations
Like all moving-average methods, this lags at turning points and can flip late after sharp reversals โ the ATR band trades some timing for fewer false signals. Values can update on the still-forming real-time bar until it closes. It does not predict price and makes no performance claims; use it as one input alongside your own analysis and risk management.
For research and education only. This is not financial advice. Indicator

Adaptive MA Ribbon [StrixEDGE]๐ WHAT IT DOES
StrixEDGE Adaptive MA Ribbon plots three of the most advanced low-lag moving averages โ Hull MA, Arnaud Legoux MA, and Kaufman Adaptive MA โ with automatic period adjustment based on current volatility. A consensus score (0-6) instantly shows whether all three agree on trend direction.
๐ฌ WHY IT'S DIFFERENT
Traditional MA ribbons use fixed periods that work in one market condition and fail in another. This ribbon automatically shortens its period when volatility spikes (for faster reaction) and lengthens it when markets are calm (to avoid whipsaws). The three MAs used โ HMA, ALMA, and KAMA โ are specifically chosen because each adapts to the market differently, so their agreement carries more weight than three similar MAs agreeing.
โ๏ธ HOW IT WORKS
The volatility ratio (current ATR / 50-period average ATR) dynamically adjusts the base period. This adjusted period feeds into all three MAs simultaneously. The consensus score counts two things: how many MAs are below price (0-3 points) and how many are rising (0-3 points). A score of 6 means all three MAs are below price AND rising โ the strongest possible bullish configuration.
๐ HOW TO USE
โข Consensus 5-6 (green fill): Strong uptrend โ buy pullbacks to the ribbon
โข Consensus 0-1 (red fill): Strong downtrend โ sell rallies to the ribbon
โข Consensus 2-4 (gray fill): Mixed โ avoid trend strategies
โข Diamond markers at consensus flips = key entry/exit signals
โข Ribbon twist (MAs crossing) = early warning of trend change
โข Works best on 4H and Daily timeframes
๐๏ธ INPUTS & DEFAULTS
Base Period: 21 | Min: 8, Max: 55 | ALMA Offset: 0.85, Sigma: 6.0
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ง CUSTOMIZATION
All parameters are fully adjustable through the indicator settings panel. Inputs are grouped logically:
โข โ๏ธ Core Parameters โ main calculation settings
โข ๐ Table Settings โ table size (Tiny to Huge), position (4 corners), visibility toggle
โข ๐จ Visual Settings โ colors, show/hide elements
โข ๐ Alert Settings โ threshold values for notifications
๐ DATA TABLE
A built-in data table displays all key metrics in real-time. Adjust the table size from Tiny to Huge to match your chart layout. Position it in any corner. Toggle visibility on/off.
๐ ALERTS
Pre-built alert conditions for all major signals. Set up alerts via TradingView's alert dialog โ select this indicator and choose from the available conditions.
โฑ๏ธ RECOMMENDED TIMEFRAMES
Works on all timeframes. Recommended: 1H, 4H, Daily for best signal quality. Lower timeframes produce more signals but with higher noise. Weekly/Monthly for position trading context.
โ
COMPLIANCE
โข No repainting โ all signals based on confirmed bar close data
โข No future data references
โข Open-source code โ verify the logic yourself
โ ๏ธ DISCLAIMER
This indicator is a technical analysis tool, not financial advice. It does not predict future price movements. Past patterns and signals do not guarantee future results. Trading involves substantial risk of loss. Always use proper risk management, including stop losses and appropriate position sizing. Never risk more than you can afford to lose. Indicator

OBV Attention Consensus Ribbon [FibonacciFlux]An experiment in reading On-Balance Volume across four timeframes at once. Published with what the measurement actually found, including the part that says the previous default could not work.
WHAT IT DOES
Inside each of four timeframes (15m, 1H, 4H, 1D by default) it builds OBV, takes the per-bar slope as the difference of two linear regressions, and standardizes that slope by the rolling standard deviation of OBV over the same timeframe. The result is a z sensor per timeframe. OBV is cumulative, so its level depends on where the chart's history begins - the slope difference and the standard deviation are both invariant to that origin, which is what makes the four timeframes comparable at all.
The white line is the weighted mean of the four z sensors. The ribbon is the weighted dispersion around that mean, so it narrows when the timeframes agree and widens when they do not. Its colour is a geometric mean of three terms: concentration (how tight the dispersion is), side agreement (how much weight sits on one sign), and acceleration agreement (how much weight is moving further in that direction). An audit table prints every sensor's z, its one-bar change, its weight, the consensus, the dispersion, the concentration, both strengths and the current state.
WHAT THE MEASUREMENT FOUND
Two things, both on 6,000 bars of BINANCE:BTCUSDT 15m (5,949 bars after warm-up, 2026-06-17 01:15Z to 2026-08-18 13:00Z), repeated identically on ETHUSDT.
First: the previous default threshold could never be reached. The strength is a geometric mean of three fractions, and the acceleration term keeps it small. Measured over the whole window, the strength peaks at 34.5 on BTCUSDT and 36.0 on ETHUSDT, with a median of 20.1 and a 99th percentile of 31.0. The shipped threshold was 60. So the coloured ribbon never appeared on a single bar, both alerts fired zero times, and the branch that paints the ribbon was unreachable code. That is a calibration error, not a conservative setting, and it is fixed here: the default is now 30, where the coloured state covers 137 of 5,949 bars on BTCUSDT and 173 of 5,949 on ETHUSDT - roughly one bar in forty.
Second: the whole scale is far smaller than the script's own furniture suggested. The consensus never leaves ยฑ0.141 and the dispersion never exceeds 0.132, while the sensor clips at ยฑ3 and the pane drew guide lines at ยฑ1.5. The clip has never once bound. The guides are now at ยฑ0.10, just above the 99th percentile of |consensus| (0.114 on BTCUSDT, 0.116 on ETHUSDT), so they mark something the series actually reaches.
Neither of those is a claim about returns. There is none here: no forward-return figure, no hit rate, no edge. What the indicator offers is a picture of whether four OBV slopes are pointing the same way and how tightly, and the honest reading of the numbers above is that the picture is a low-amplitude one.
HOW THE NUMBERS WERE CHECKED
The whole computation was reimplemented outside Pine and cross-checked against this chart's Data Window: eight quantities on ten bars, with the individual sensors switched on so nothing was left as na. All 80 values round-trip to the exact three decimals TradingView printed. The worst raw disagreement is 4.9e-4, which is the rounding floor of indicator(precision = 3) rather than a modelling error.
That check discriminates. Near-miss variants a careless port would land on fail loudly against the same 80 values: reading the higher timeframes in developing rather than confirmed mode misses 79 of 80, a slope length of 21 instead of 20 misses 73 of 80, and a flipped regression orientation is off by two orders of magnitude more than the tolerance.
SETTINGS
The HTF data mode is the one that changes the meaning rather than the tuning. Confirmed only reads the last closed bar of each requested timeframe, which is why the higher-timeframe sensors are step functions that hold their value across the chart bars inside one higher-timeframe bar. Developing HTF reacts earlier and changes until that bar closes.
The four attention weights are normalized onto a simplex, so only their ratios matter, and an all-zero entry falls back to 0.10 / 0.20 / 0.40 / 0.30.
WHAT CHANGED IN THIS VERSION
The threshold and the guide lines were recalibrated against the measured output range, as described above. The audit table that the settings already promised did not exist in the code - the helper functions for it were written and left unused - and it is now implemented. An MPL header and a leftover compile sentinel plot were added and removed respectively. No computation was changed: every plotted series is identical to the version the 80-value cross-check was run against, which is why the figures above still apply.
Open source under MPL 2.0. Nothing here is a forecast, a signal service, or a claim of profitability. Indicator

MA Confluence Engine [Viprasol]MA Confluence Engine โ 15-MA Consensus Ribbon
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ONE CROSSOVER IS AN OPINION. FIFTEEN MAs AGREEING IS A TREND.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
A single moving-average crossover whipsaws constantly โ two lines tangle in chop and
fire signal after signal that goes nowhere. MA Confluence Engine replaces that one
fragile opinion with the agreement of a 15-MA ribbon. It only signals when most of the
ribbon agrees on direction, stands aside when the ribbon squeezes together (a
compressed ribbon IS chop), and on every signal it draws a complete trade plan:
Entry, TP1, TP2, TP3 and Stop Loss.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
HOW THE CONSENSUS WORKS
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The engine builds a ribbon of 15 moving averages, spaced from a fast base length
upward (e.g. 10, 18, 26 โฆ 122). Every bar it measures two things across all 15:
โข How many is price trading ABOVE?
โข How many are SLOPING UP?
These combine into a single CONSENSUS SCORE from 0 to 100:
100% = price above all 15 MAs AND all 15 rising (a fully stacked uptrend)
0% = price below all 15 AND all 15 falling (a fully stacked downtrend)
50% = mixed โ the ribbon disagrees
A long signal fires only when consensus rises through your bullish threshold
(default 75%), a short when it falls through the bearish threshold (default 25%).
Half-hearted moves where the ribbon disagrees never trigger.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
THE TRADE PLAN โ DRAWN ON THE LAST SIGNAL
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The moment a signal fires, the engine projects five levels forward and labels each
with its price:
โข ENTRY โ at the signal close
โข STOP LOSS โ your risk distance away (ATR or %); this distance defines 1R
โข TP1 / TP2 / TP3 โ at your chosen R-multiples of that risk (default 1R / 2R / 3R)
Only the most recent signal's plan is shown, so the chart stays clean. The dashboard
mirrors the exact prices, and every alert carries the full plan (Entry/SL/TP1/TP2/TP3)
so it's ready for journaling or automation.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
THE RIBBON IS ITS OWN CHOP FILTER
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
When a market chops, moving averages of every length collapse onto each other โ the
ribbon goes flat and thin. The engine measures RIBBON WIDTH (the spread of the 15 MAs,
normalized by ATR) and skips signals whenever the ribbon is compressed below your
threshold. A second Kaufman Efficiency-Ratio gate confirms price is actually trending.
Filtered crosses are drawn faintly (โ) and counted, so you SEE what was avoided.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
21 VERIFIED, LICENSE-CLEAN MOVING AVERAGES
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Build the ribbon from any one of:
SMA, EMA, WMA, RMA, VWMA, DEMA, TEMA, HMA, ALMA, T3, McGinley, ZLEMA, KAMA, FRAMA,
VIDYA, SuperSmoother, Gaussian, Laguerre, Kalman, LSMA, Median.
Each is implemented from its published formula and credited to its author. Jurik's JMA
is deliberately excluded โ it is a proprietary, trademarked product whose every
open-source "version" is an unlicensed reverse-engineering.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
DASHBOARD
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โข Live consensus score, with price-above and sloping-up counts (x of 15)
โข Ribbon width + chop state, trend-regime efficiency reading
โข Last signal direction and the full Entry / TP1 / TP2 / TP3 / SL prices
โข Whipsaws filtered
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
FEATURES
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โข 15-MA ribbon colored by consensus (red โ green) or simple bull/bear, with fill
โข Entry/TP1/TP2/TP3/SL level lines + labels on the latest signal
โข Choppy-regime background shading + faint markers on filtered crosses
โข Direction filter (Both / Longs / Shorts)
โข Stop in ATR or %, take-profits as R-multiples
โข Alerts for long, short, and chop โ signal alerts include the full trade plan
โข Full MA sub-parameter control (ALMA, T3, KAMA, Gaussian, Laguerre, Kalman, VIDYA, McGinley)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
HOW TO USE
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
1. Choose an MA type, base length, and spacing for the ribbon.
2. Wait for a signal โ it only fires when the ribbon fans out and aligns (consensus
through your threshold) in a trending regime.
3. Use the drawn Entry / SL / TP1 / TP2 / TP3 as your trade plan; scale out at the TPs.
4. Raise the consensus thresholds and ribbon-width minimum to make signals stricter
(fewer, cleaner) โ the whipsaw-filtered count shows the filter working.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
HONEST LIMITATIONS โ PLEASE READ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โข Signals are evaluated on bar close; act on confirmed bars to avoid intrabar flicker.
โข A consensus system enters LATER than a single fast crossover โ it trades fewer,
higher-quality moves and will sit out fast reversals. That trade-off is the point.
โข The TP/SL levels are a risk framework, not a prediction โ markets do not owe you 3R.
โข Volume MAs (VWMA) and the regime math need reliable data; some synthetic forex/CFD
feeds are less meaningful.
โข This is a decision-support tool, not financial advice. Trade at your own risk.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CREDITS & ORIGINALITY
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
MA methods credited to their authors: Wilder (RMA), Mulloy (DEMA/TEMA), Hull (HMA),
Legoux & Kouzis-Loukas (ALMA), Tillson (T3), McGinley, Kaufman (KAMA/Efficiency Ratio),
Ehlers (ZLEMA, SuperSmoother, Gaussian, Laguerre, FRAMA), Chande (VIDYA), Kรกlmรกn
(Kalman). All formulas are public-domain / published methods. Every line of Pine โ the
MA dispatcher, the 15-MA consensus engine, the ribbon chop filter, the trade-plan
projection, and the visualization โ is original Viprasol work written from the
published formulas. No third-party Pine code is reused; no proprietary algorithms included.
Indicator

Caelum Bias Ribbon [JOAT]Caelum Bias Ribbon
Introduction
Caelum Bias Ribbon is a multi-timeframe ALMA consensus ribbon. It evaluates whether 15m, 1H, 4H, 1D, and 1W horizons are aligned, mixed, or overheated.
This open-source indicator is designed as a context tool, not a standalone trading system. It focuses on explaining the current market state with restrained visuals and confirmed-bar logic where signals are used.
Core Concepts
1. ALMA Deviation States
Each timeframe creates an ALMA center and deviation threshold to classify bullish, bearish, or neutral state.
2. Consensus Voting
The script counts aligned timeframes to identify broad directional agreement.
3. Overheat Tracking
Directional runs are counted so stretched multi-timeframe conditions can be marked without predicting reversal.
4. Ribbon Visualization
Colored ALMA ribbons and fills show agreement without heavy labels.
consensus = bullCount >= gate ? 1 : bearCount >= gate ? -1 : 0
Features
Five-timeframe ALMA ribbon
Consensus and mixed-state detection
Overheat markers
Consensus candle coloring
Compact dashboard
Input Parameters
Deviation factor
ALMA length, offset, and sigma
Deviation length
Overheat run threshold
Display toggles
How to Use This Script
Use Caelum as a directional filter. Strong agreement supports trend-following context; mixed readings warn that timeframes are not aligned.
Limitations
The script uses historical OHLCV data and cannot know future prices.
Signals and states can be late during fast reversals because confirmed-bar logic is used to reduce repainting.
Model outputs should be interpreted with market context, risk controls, and independent analysis.
No visual state should be treated as a certain trade outcome.
Originality Statement
Caelum is original in combining ALMA deviation states, multi-horizon voting, run-length overheat logic, and a clean ribbon display.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice, investment advice, or a recommendation to buy or sell any financial instrument. All calculations are derived from historical market data and may produce inaccurate readings in some market conditions. No indicator can predict future market behavior. Use proper risk management and independent judgment.
-Made with passion by jackofalltrades
Indicator

Helix Trend Ensemble [JOAT]Helix Trend Ensemble
Introduction
Helix Trend Ensemble is an open-source trend overlay built around a three-member weighted ensemble. Instead of relying on one moving average or one crossover, Helix evaluates multiple configurable members, normalizes slope behavior, and produces a consensus trend state only when enough internal agreement is present.
The problem Helix solves is false certainty. Single-line trend tools are easy to read but easy to break. Multi-line tools often create clutter without resolving disagreement. Helix is designed to preserve a clean chart while still exposing the quality of alignment between fast, intermediate, and structural trend engines.
Core Concepts
1. Multi-Member Trend Architecture
Three independent members can each use different MA types, smoothing methods, lengths, and weights. This allows the ensemble to mix responsiveness with structural stability.
2. Weighted Consensus
The final state is not a simple majority vote. Each member contributes according to its configured weight, and the ensemble requires sufficient agreement before it promotes a directional state.
3. Slope Normalization
Raw slope values are normalized so the dashboard can express trend energy in a stable way across different length combinations.
4. Filter Layer
ATR and ADX filters help suppress weak trend states and reduce low-quality directional transitions.
5. Confirmed Regime Transitions
Directional state changes are only recognized on confirmed bars, which keeps the ensemble consistent with real-time use.
Features
Three fully configurable members: Each member supports multiple MA and smoothing combinations
Weighted consensus engine: Final state depends on internal agreement quality, not one crossover
Normalized slope score: Slope behavior is translated into a stable strength readout
Ribbon and cloud system: Trend geometry is expressed through layered fills instead of cluttered markers
Optional candle coloring: Price bars can reflect the ensemble state without altering logic
Top-right dashboard: Regime, consensus, strength, slope, agreement, filters, and last flip are summarized continuously
How to Use This Indicator
Step 1: Read regime and consensus together
A bullish or bearish state is more meaningful when consensus is high and filters are passing.
Step 2: Watch slope and strength
An aligned ensemble with weakening slope often signals late-trend conditions rather than fresh expansion.
Step 3: Use Helix as a bias filter
Helix works well as a directional framework for execution models that need a clean trend gate.
Indicator Limitations
Longer member lengths will intentionally delay reversals
High responsiveness settings can increase whipsaws
Consensus does not eliminate all false trends; it only improves structural filtering
The script is a trend-classification tool, not a full strategy
Originality Statement
Helix Trend Ensemble is original in the way it combines configurable member diversity, weighted consensus, slope normalization, and clean institutional visualization into one open-source trend framework.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Trend-state tools can fail during rapid reversals, compressed markets, or structurally irregular conditions. Use proper risk control at all times.
Indicator

Multi-Oscillator Consensus Engine [AGPro Series]Multi-Oscillator Consensus Engine
๐น Overview
Multi-Oscillator Consensus Engine aggregates ten independent momentum
oscillators into a single regime classifier with overlay Consensus Zones,
flip event labels, and agreement persistence tracking. Instead of watching
ten charts separately, traders see one unified answer: are the oscillators
in agreement, and what is the consensus saying right now?
The script monitors RSI, Stochastic, CCI, MFI, Williams %R, ROC, Ultimate
Oscillator, MACD, DMI balance, and Aroon balance. Each oscillator is
normalized to a 0โ100 scale and votes bullish, bearish, or neutral against
configurable thresholds. The aggregated vote determines the market regime
and drives everything else on the chart.
๐น Unique Edge
Most multi-oscillator tools stop at a dashboard or a simple agreement
percentage. This engine goes further:
- Regime Classification โ four distinct states (Consensus Bull, Consensus
Bear, Divergent, Transition) instead of a binary signal.
- Consensus Zones โ a horizontal price zone is born at every regime flip
and stays alive while the regime holds. When the regime ends, the zone
becomes historical structure.
- Flip Event Labels โ regime transitions are marked directly on price
with merged flip + extreme agreement tags.
- Persistence Tracking โ streak bars, last flip distance, and historical
extreme rate tell you how trustworthy the current consensus is.
- Label Discipline โ cooldown, horizontal stagger, and flip+extreme merge
logic keep the chart readable even in choppy regimes.
๐น Methodology
Step 1. Ten oscillators are computed with their classic defaults and
normalized to a 0โ100 range. Indicators with native 0โ100 output (RSI,
Stochastic, MFI, Ultimate) pass through directly. Others (CCI, ROC, MACD
histogram) are rescaled against their own recent range. Williams %R is
flipped from its native -100..0 scale.
Step 2. Each normalized oscillator casts a vote. Values above the bullish
threshold vote +1, values below the bearish threshold vote -1, everything
else is neutral. Vote counts and agreement percentage are computed bar by bar.
Step 3. Regime is assigned from the vote distribution. Seven or more votes
in one direction triggers Consensus Bull or Consensus Bear. A tight spread
(bull-bear difference โค 2) triggers Divergent. Everything else is a
Transition state.
Step 4. On every bullโbear regime entry, a new Consensus Zone is born at
the current close ยฑ a configurable ATR multiple. The zone extends forward
while the regime is active and locks in place when the regime ends. A
maximum of five active zones keeps the chart clean.
Step 5. Labels are rendered only when cooldown and merge rules allow.
Extreme agreement events (80%+ by default) are either merged into the flip
label or drawn separately with larger offset.
๐น Signals & Alerts
Seven alert conditions ship with the script:
- Consensus Bull Entry โ regime has just entered Consensus Bull
- Consensus Bear Entry โ regime has just entered Consensus Bear
- Consensus Bull Flip โ direct Bear โ Bull transition
- Consensus Bear Flip โ direct Bull โ Bear transition
- Extreme Bullish Agreement โ agreement crosses the extreme threshold up
- Extreme Bearish Agreement โ same, on the bearish side
- Consensus Streak 20+ โ current regime has held for twenty bars
๐น Key Inputs
- Oscillator Periods โ individual length settings for all ten oscillators
- Bullish / Bearish Thresholds โ the normalized levels that define a vote
- Consensus Threshold โ how many oscillators must agree for a regime (default 7/10)
- Extreme Agreement โ agreement percentage for extreme events (default 80%)
- Consensus Zones โ show/hide, ATR length and multiplier, max active count,
closed zone trail
- Label Cooldown โ minimum bars between flip labels, prevents clutter
- Merge Flip + Extreme โ combine same-bar events into one label
- Panel โ six location options, Dark/Light theme, font sizes
๐น How to Use
Trend traders: wait for a Consensus Bull or Consensus Bear regime to
establish (streak > 5 bars), then use pullbacks into the active Consensus
Zone as entries in the regime direction. Exit on opposite regime flip.
Reversion traders: Extreme Agreement events mark moments where all
oscillators are stretched in the same direction. These are classic mean
reversion setups. Wait for a regime flip against the extreme, confirmed on
the next bar.
Regime filter: overlay the panel on any chart and use the Regime and
Agreement readings as a binary filter for your primary system. Only take
longs when regime is Bull, only take shorts when regime is Bear.
Works on all timeframes from 1m to 1W. Higher timeframes produce fewer
but higher-conviction signals.
๐น Limitations & Transparency
- The oscillator votes use normalized thresholds. On extremely narrow
ranges, the normalization may produce unstable votes. Raising the
Bullish/Bearish Thresholds reduces this sensitivity.
- Consensus Zones are drawn from close price at the flip bar. Large wick
bars may place the zone slightly away from the visual pivot.
- The script is not a standalone trading system. It is a confluence and
regime tool to combine with your own structure, volume, or price action
analysis.
- All signals repaint only within the current forming bar. Once a bar
closes and barstate.isconfirmed is true, flip labels and zones are final.
๐น Risk Disclosure
This indicator is provided for educational and analytical purposes only.
It is not financial advice. Trading involves substantial risk. Past
behavior of regime transitions does not guarantee future performance.
Always use proper risk management and never risk more than you can afford
to lose. Indicator

AlphaEngine โ ALPHAENGINE v1.0
The Adaptive Consensus Trading Algorithm
Self-optimizing signal engine that runs 6 independent "Expert" sub-systems simultaneously, tracks their real-time accuracy, and dynamically adjusts their influence using an Adaptive Consensus algorithm inspired by the Multiplicative Weight Update method. The result: an indicator that learns which strategies work best in the current market โ and automatically amplifies them while suppressing underperformers. All in real-time, on every single bar.
Free and Open Source.
โ THE 6 EXPERTS
1. Trend Expert
Triple EMA alignment (Fast/Mid/Slow) combined with ADX trend strength. Detects directional bias and amplifies signals when the trend is strong.
2. Momentum Expert
Blends RSI zone analysis (40%), Stochastic crossover (30%), and Rate-of-Change velocity (30%) into a single momentum score. Catches acceleration and deceleration in price moves.
3. Volume Expert
On-Balance Volume trend direction combined with real-time volume spike detection. Confirms signals with institutional participation. Volume must agree with price direction for full score.
4. Volatility Expert
Bollinger Band position mapping combined with ATR expansion/contraction analysis. Includes Squeeze Detection that alerts before major breakout moves.
5. Supertrend Expert
ATR-based dynamic support/resistance with distance scaling. Stronger signals when price is firmly above/below the supertrend line.
6. Structure Expert
Higher-timeframe EMA bias using auto-selected HTF (e.g., 1H chart checks 4H, 5m chart checks 1H). Ensures signals align with the macro trend.
โ THE ADAPTIVE WEIGHTING ENGINE
Unlike traditional indicators that treat all components equally, AlphaEngine tracks which experts are actually performing well in the current market conditions:
Each expert's predictions are validated against real price movement
A rolling accuracy score (exponential decay) measures recent performance
Weights are computed as accuracy squared โ creating clear differentiation
Experts with high accuracy get amplified, poor performers get dampened
The engine adapts to any market environment automatically
In a strong trending market, the Trend and Supertrend experts naturally gain weight. In a ranging/choppy market, Momentum and Volume experts take over. The engine adapts automatically.
โ SIGNAL GRADING: A/B/C
A-Grade (75%+ consensus) โ High quality. Strong agreement among key experts.
B-Grade (60%+ consensus) โ Standard. Moderate agreement. Use with additional confirmation.
C-Grade (50%+ consensus) โ Weak. Minimal consensus. For analysis only. Filterable via settings.
Signal labels are visual: A-grade signals are larger and prominent. B/C are smaller and subtle. A minimum grade filter lets you hide weaker signals.
โ RISK MANAGEMENT
Take Profit + Stop Loss:
TP1 โ ATR-based take profit target with visual line and hit detection
SL โ Dynamic ATR-based stop loss, adapts to current volatility
Visual checkmark when TP1 is reached, X marker when SL triggers. Both levels are always proportional to market conditions โ never fixed distances.
โ VISUAL FEATURES
Smart Candle Coloring โ 6-level gradient from deep green to deep red based on consensus strength
Trend Background โ Subtle gradient overlay showing macro direction
Volatility Bands โ Dynamic Bollinger-based bands with squeeze highlight
Squeeze Detection โ Diamond dots below price when volatility contracts
Supertrend Line โ Color-coded dynamic support/resistance
EMA Lines โ Optional Fast/Mid/Slow EMA visualization
โ DASHBOARD
Compact 10-row real-time analytics panel: Current signal + grade + consensus %, visual consensus bar, each expert's direction + rolling accuracy %, and volatility state (Squeeze/Expand/Contract/Normal).
โ ALERTS (7 CONDITIONS)
Signal: Buy/Sell, A-Grade Buy/Sell
Risk: TP1 Hit, SL Hit
Volatility: Squeeze Start
โ PRO VERSION
The PRO version adds:
VWAP Expert โ 7th expert for institutional fair-value bias with timeframe auto-scaling
Trading Style Presets โ Auto/Scalping/Intraday/Swing/Position/Custom with automatic parameter tuning
Asset Auto-Optimization โ Crypto/Forex/Stocks/Futures multipliers for volatility and volume sensitivity
RSI Divergence Detection โ Regular + Hidden divergences with visual labels and connecting lines
S-Grade Signals โ Elite setup grade (90%+ consensus) for highest probability entries
Multi-Target TP โ TP1/TP2/TP3 system with sequential hit detection and R:R ratio display
Premium Dashboard โ 17-row analytics panel with all expert weights, divergence status, and TP tracking
17 Alert Conditions โ Including divergence alerts, squeeze breakout, trend flip, and grade-specific triggers
โ NON-REPAINTING
All calculations use standard non-repainting indicators (EMA, RSI, ADX, ATR, OBV, Stochastic, Bollinger Bands). Multi-timeframe data uses confirmed prior-bar values. No repainting.
โ WORKS ON
Crypto, Forex, Stocks, Futures, Indices, Commodities and Bonds โ any timeframe from 1 second to Monthly.
โ DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice. Past performance does not guarantee future results. No indicator can predict market movements with certainty. Always implement proper risk management. Use this tool as one component of a comprehensive trading strategy, not as a standalone decision-making system.
Indicator

Median Analyst ConsensusThe Median Analyst Consensus Indicator provides an unbiased, easy-to-interpret view of market sentiment by leveraging TradingView's comprehensive financial data library. This tool displays the median 12-month price target and the percentage difference from the current price directly on your charts.
Key Features
1. Accurate Market Sentiment: By consolidating analyst ratings and price targets from multiple reputable sources like Bloomberg, Refinitiv (formerly Thomson Reuters), S&P Capital IQ, and Morningstar, this indicator displays the median analyst consensus. Using the median ensures outlier ratings don't skew the overall sentiment, providing a more robust representation.
2. Simplicity at a Glance: View the median 12-month price target and percentage difference from the current price directly on your chart. No need to juggle multiple reports - key insights are surfaced within your normal trading workflow.
3. Data-Driven Transparency: If no analyst data is available for a particular asset, the indicator will not display, ensuring you only see reliable information. The number of contributing analysts is also shown for context.
Why the Median?
The median is favored over the mean to minimize the impact of outlier ratings that could distort the consensus view. By taking the middle value across all analyst projections, the median provides a more stable, outlier-resistant measure of market sentiment.
Powered by TradingView Data
This indicator taps into TradingView's financial data library, which aggregates analyst ratings, estimates, and recommendations from leading institutional data providers. TradingView sources this data from firms like FactSet, Bloomberg, Refinitiv, S&P Capital IQ, and Morningstar, ensuring a comprehensive and trusted view of analyst sentiment.
The library provides variables like:
syminfo.recommendations_buy
syminfo.recommendations_sell
syminfo.target_price_median
syminfo.recommendations_buy_strong
syminfo.recommendations_sell_strong
The indicator calculates and displays the median of these analyst inputs.
Usage
The indicator displays:
The median 12-month price target across analysts
The percentage difference between the price target and current price
The number of contributing analyst estimates
If no analyst data is available, the indicator does not display, ensuring full transparency.
The Median Analyst Consensus Indicator provides an unbiased, easy-to-interpret view of market sentiment by leveraging TradingView's comprehensive financial data library. This tool offers a new perspective on potential trade opportunities directly on your charts.
Disclaimer
While the data is sourced from reputable providers, analyst forecasts should not be construed as investment recommendations. This indicator aims to synthesize market opinions, but investment decisions are solely your responsibility. As with any analytical tool, you should conduct your own research and risk assessments before executing any trades.
Indicator

[blackcat] L1 Close Histogram OscillatorLevel: 1
Background
A histogram is a special chart that is applied to statistical data that is divided into numerically ordered groups. For example groups with close relationships in the vicinity like "Close-ref(Close ,1)", "Close-ref(Close,2)" and so on. A histogram provides a snapshot of all the data so that you can quickly get an overview of the historical data, especially its general shape.In a histogram, the bars are linked - in contrast to a bar chart for categorical data, in which the bars represent categories that are in no particular order and are separated. The height of each bar in a histogram indicates either the number of individuals (called the frequency) in each group or the percentage of individuals (the relative frequency) in each group. Each individual in the data set falls into exactly one bar.
Function
L2 Close Histogram Oscillator is a novel overbought and oversold indicator that estimate the trend state by counting a specific bar relationship nearby. Once nearby bars reach consensus, it may spread to global quickly. The reason why I got this inspiration is because I have been engaged in the research of blockchain consensus mechanism. The market is a complex system, and its consensus depends on the common human characteristics: greed and fear. The trend of the market often also conforms to sociological characteristics. Maybe it's a bit complicated for me to say that. However, if you understand the principle of the spread of rumors and viruses, you can understand the situation where some individuals in the market have local consensus and gradually spread to the overall situation. This is the process of trend formation.
Key Signal
fastcounter --> fast close histogram counters
slowcounter --> slow close histogram counters
attention --> bottom price appears, with height of 10 in white
readybuy --> a small position buy opportunity after first bottom detected, with height of 20 in yellow
buylow --> a small position buy at low price, with height of 30 in lime
longentry --> a confirmed long entry signal by close histogram counter, with height of 40 in green
risk --> oscillator top is reached and trend reversal may happen, with height drop from 100 to 80 in red
Pros and Cons
Pros:
1. since this is based on consensus formation principle, i think this is a leading indicator by spreading local consensus to global
2. it is an oscillator, overbought and oversold can be easily observed.
Cons:
1. the model is not complex enough to depict market behavior exactly.
2. sideways and chop market will make this indicator's output hard to read.
Remarks
This is rare! I combined my previous theory of developing cellular automata with the market to produce such a weird indicator. I hope to inspire everyone and study market behavior in a deeper level.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy. Indicator
