MACD Momentum Entry Engine [trade_w_samet]🎯 MACD Momentum Entry Engine
MACD Momentum Entry Engine is a structured momentum-analysis and visual trade-model indicator designed to help traders study confirmed MACD events, momentum quality, directional persistence, market regime, trend alignment, candle confirmation, and multi-target risk references directly from one coordinated workflow.
The script is built around one central idea:
A MACD event should not automatically become an entry signal.
Instead of treating every MACD crossover as equally meaningful, the engine first identifies the type of momentum event, then evaluates its strength, expansion, slope, acceleration, market environment, candle quality, directional persistence, and optional trend alignment before a permanent LONG or SHORT setup is accepted.
The indicator includes:
• Configurable MACD fast, slow, and signal lengths
• EMA, SMA, RMA, and WMA calculation options
• Early Trigger and Momentum Confirmed entry timing
• Reversal, Continuation, Zero-Line Reclaim, and Momentum Expansion setups
• A transparent 0–100 Momentum Quality Score
• Alignment, histogram strength, expansion, slope, and acceleration scoring
• Loose, Balanced, Strict, and Off quality modes
• A separate 0–100 Anti-Chop Market Regime Score
• ADX, price efficiency, EMA separation, and volatility-expansion analysis
• A separate 0–100 Entry Qualification Score
• Candle body, close location, MACD separation, persistence, impulse, and trigger-context analysis
• A final composite setup score
• A+, A, B, and C internal setup grades
• Optional chart EMA, confirmed higher-timeframe EMA, and combined trend bias
• Confirmed higher-timeframe calculations
• Zero-line directional filtering
• ATR-normalized absolute histogram-strength filtering
• Internal signal cooldown and same-bar re-entry protection
• One-active-trade-at-a-time visual management
• ATR-based and XAUUSD fixed-pip risk models
• Three visual take-profit levels
• Stop First and Targets First same-bar assumptions
• Equal-third internal trade-model accounting
• Active Entry, TP1, TP2, TP3, and SL lines
• Active reward and risk boxes on the main chart
• TP3-only historical trade-model preservation
• Separate SL, Closed TP1, Closed TP2, and TP3 result labels
• Adjustable LONG, SHORT, and result-label sizes
• MACD histogram, line, signal line, momentum background, and anti-chop background
• Neon LONG and SHORT dots directly on the MACD line
• A compact main-chart dashboard
• XAUUSD symbol verification and mismatch warning
• Static TradingView alert conditions
• Detailed dynamic alert() messages
• Data Window diagnostics
• Confirmed-close permanent signals
The purpose of this script is to provide a structured way to study when a MACD event is supported by broader momentum and market context.
It is not financial advice.
It is not an automated trading system.
It does not guarantee profitable trades.
It does not execute broker orders.
It does not replace personal analysis, position sizing, or risk management.
━━━━━━━━━━━━━━━━━━━━━━
📌 OVERVIEW
━━━━━━━━━━━━━━━━━━━━━━
At a high level, MACD Momentum Entry Engine does the following:
• Calculates a configurable MACD using the selected average types.
• Separates the visual histogram scale from the calculation scale.
• Detects confirmed MACD crossovers and zero-line events.
• Identifies Reversal, Continuation, Zero-Line Reclaim, and Expansion setup types.
• Optionally accepts the event immediately through Early Trigger mode.
• Optionally arms the setup and waits for renewed momentum through Momentum Confirmed mode.
• Measures momentum alignment, histogram strength, histogram expansion, MACD slope, and acceleration.
• Produces separate bullish and bearish 0–100 Momentum Quality Scores.
• Measures market regime using ADX, directional efficiency, EMA separation, and volatility expansion.
• Produces a separate 0–100 Market Regime Score.
• Evaluates candle direction, body quality, close location, MACD separation, persistence, and price impulse.
• Produces separate bullish and bearish Entry Qualification Scores.
• Combines momentum, regime, and entry quality into a final composite score.
• Assigns an internal A+, A, B, or C grade.
• Applies optional chart EMA and confirmed higher-timeframe EMA bias.
• Applies zero-line, absolute-strength, cooldown, and trade-slot controls.
• Confirms permanent LONG and SHORT signals only after candle close.
• Opens one visual trade model from the confirmed signal-bar close.
• Calculates Entry, Stop Loss, TP1, TP2, and TP3.
• Tracks targets and stop events from the next candle onward.
• Applies the selected same-bar processing assumption.
• Preserves completed TP3 models when historical display is enabled.
• Removes trade drawings after SL, Closed TP1, or Closed TP2 outcomes.
• Converts the original entry label into the final result for non-TP3 outcomes.
• Adds a separate electric-purple FULL TARGET label for TP3 outcomes.
• Displays Momentum, Trend, Regime, Trade, Last Result, and Protection states in the bottom-right dashboard.
• Provides static and dynamic alert options.
• Exposes diagnostic values through TradingView’s Data Window.
The indicator does not use machine-learning prediction.
Its scores are not probabilities.
Its labels do not promise future direction.
The script is a rule-based educational momentum framework that explains how a raw MACD event becomes an accepted or rejected setup.
━━━━━━━━━━━━━━━━━━━━━━
🧠 CORE IDEA
━━━━━━━━━━━━━━━━━━━━━━
The core idea behind MACD Momentum Entry Engine is that a crossover alone contains limited context.
A basic crossover only confirms that one MACD line has moved through another.
It does not automatically explain:
• whether the histogram is expanding
• whether momentum is accelerating
• whether the move is occurring in a directional or choppy market
• whether the signal candle supports the direction
• whether MACD separation is meaningful relative to recent behavior
• whether momentum has persisted
• whether price is aligned with an optional trend filter
• whether a recent signal already occurred
• whether a visual trade model is already active
The engine therefore uses a staged sequence:
MACD event
→ setup classification
→ momentum-quality scoring
→ optional trend-bias validation
→ anti-chop regime scoring
→ entry qualification
→ additional signal filters
→ confirmed signal
→ visual trade model
→ TP / SL lifecycle
→ result handling
For bullish conditions, the script studies upward MACD transitions, positive histogram alignment, renewed expansion, positive slope, positive acceleration, bullish candle behavior, and directional persistence.
For bearish conditions, the same process is mirrored.
The purpose is not to find the largest possible number of signals.
The purpose is to make the acceptance process visible, configurable, and understandable.
━━━━━━━━━━━━━━━━━━━━━━
🧩 WHY THIS SCRIPT IS NOT A SIMPLE BUY/SELL INDICATOR
━━━━━━━━━━━━━━━━━━━━━━
MACD Momentum Entry Engine is not designed to be used as a blind buy/sell system.
A raw MACD event must move through multiple stages:
A crossover or momentum event appears
→ the event is classified
→ the momentum-quality layer is evaluated
→ the trend-bias layer is evaluated
→ the anti-chop layer is evaluated
→ the candle and entry-quality layer is evaluated
→ zero-line and absolute-strength filters are checked
→ cooldown and active-trade restrictions are checked
→ the setup must remain valid at candle close
→ a permanent LONG or SHORT setup is printed
→ Entry, SL, TP1, TP2, and TP3 are projected
→ the trade model is monitored from the following candle
→ the model closes at TP3 or Stop
→ the final chart result is preserved or cleaned
Each module serves a different purpose.
The MACD core defines the momentum relationship.
The setup engine identifies what kind of event occurred.
The momentum-quality engine measures the internal strength of that event.
The anti-chop engine measures whether the broader environment is directional enough for the selected mode.
The entry-qualification engine evaluates the signal candle and immediate price response.
The trend-bias engine optionally restricts direction.
The trade engine standardizes the visual risk framework.
The dashboard explains the current engine state.
This makes the script a coordinated momentum-analysis workflow rather than a basic crossover marker.
━━━━━━━━━━━━━━━━━━━━━━
⚙️ HOW THE SCRIPT WORKS
━━━━━━━━━━━━━━━━━━━━━━
The script operates through connected calculation stages.
First, it calculates every supported moving-average type on every candle.
The selected average type is then used for the fast MACD average, slow MACD average, and signal average.
The MACD line is the difference between the selected fast and slow averages.
The histogram is the difference between the MACD line and the signal line.
fastAverage = f_selectMa(macdMaType, fastEma, fastSma, fastRma, fastWma)
slowAverage = f_selectMa(macdMaType, slowEma, slowSma, slowRma, slowWma)
macdLine = fastAverage - slowAverage
signalLine = f_selectMa(signalMaType, signalEma, signalSma, signalRma, signalWma)
histogram = macdLine - signalLine
The histogram visual multiplier changes only the displayed column length.
It does not change:
• the MACD line
• the signal line
• the histogram used by calculations
• quality scores
• setup detection
• trade results
After the MACD core is calculated, the engine measures:
• absolute histogram strength
• one-bar histogram expansion
• MACD slope
• momentum acceleration
• adaptive baselines for each measurement
The setup engine then checks the enabled event types.
The quality, trend, regime, qualification, and additional-filter stages determine whether the setup is eligible.
A final permanent signal is accepted only after the candle closes and every enabled condition remains valid.
━━━━━━━━━━━━━━━━━━━━━━
🟢 BULLISH MACD MOMENTUM LOGIC
━━━━━━━━━━━━━━━━━━━━━━
A bullish setup begins with one of four enabled event types.
Bullish Reversal
A bullish MACD crossover occurs while the MACD line remains below zero.
This represents a momentum turn from the negative side of the zero line.
Bullish Continuation
A bullish MACD crossover occurs while the MACD line is at or above zero.
This represents renewed bullish alignment on the positive side.
Bullish Zero-Line Reclaim
The MACD line crosses above zero while:
• MACD is above the signal line
• the histogram is positive
• the bar is confirmed
Bullish Momentum Expansion
The histogram resumes positive expansion after a short contraction while:
• MACD remains above the signal line
• MACD slope is positive
• no new crossover is being used on the same bar
• no new zero-line cross is being used on the same bar
The event must then pass the active momentum-quality requirement.
When enabled, it must also pass:
• chart EMA bias
• confirmed higher-timeframe EMA bias
• EMA slope confirmation
• ATR distance from the trend EMA
• anti-chop regime requirement
• entry qualification
• bullish candle direction
• minimum MACD separation
• momentum persistence
• zero-line direction
• absolute histogram strength
• cooldown
• active-trade availability
The final signal uses confirmed-bar logic.
bullishSignal =
barstate.isconfirmed and
bullishEntryCandidate and
bullishZeroLinePass and
absoluteStrengthPass and
bullishQualityPass and
bullishTrendPass and
antiChopPass and
bullishQualificationPass and
bullishCandlePass and
separationPass and
bullishPersistencePass and
cooldownPass and
tradeSlotAvailable
When every active rule passes, the script can display:
• a neon green dot on the MACD line
• a LONG label on the main chart
• setup type, grade, and score information
• a visual Entry, SL, TP1, TP2, and TP3 model
This confirms that the configured bullish momentum conditions were valid at candle close.
It does not mean price must continue upward.
━━━━━━━━━━━━━━━━━━━━━━
🔴 BEARISH MACD MOMENTUM LOGIC
━━━━━━━━━━━━━━━━━━━━━━
A bearish setup mirrors the bullish process.
Bearish Reversal
A bearish MACD crossover occurs while the MACD line remains above zero.
This represents a momentum turn from the positive side of the zero line.
Bearish Continuation
A bearish MACD crossover occurs while the MACD line is at or below zero.
This represents renewed bearish alignment on the negative side.
Bearish Zero-Line Reclaim
The MACD line crosses below zero while:
• MACD is below the signal line
• the histogram is negative
• the bar is confirmed
Bearish Momentum Expansion
The histogram resumes negative expansion after a short contraction while:
• MACD remains below the signal line
• MACD slope is negative
• no new bearish crossover is being used on the same bar
• no new bearish zero-line cross is being used on the same bar
The setup must then pass the same quality, trend, regime, candle, separation, persistence, strength, cooldown, and trade-slot controls.
A permanent SHORT signal appears only when all active conditions remain valid at candle close.
The script can then display:
• a neon red dot on the MACD line
• a SHORT label on the main chart
• setup type, grade, and score information
• Entry, SL, TP1, TP2, and TP3 references
This confirms that the configured bearish momentum conditions were valid at candle close.
It does not guarantee continued downside movement.
━━━━━━━━━━━━━━━━━━━━━━
💎 MACD MOMENTUM QUALITY FILTER SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
The script includes a separate bullish and bearish Momentum Quality Score.
The quality layer evaluates five components.
Alignment — maximum 20 points
Bullish alignment requires:
• MACD above the signal line
• positive histogram
Bearish alignment requires:
• MACD below the signal line
• negative histogram
Histogram Strength — maximum 25 points
The absolute histogram value is compared with an adaptive EMA baseline.
This measures whether current separation is meaningful relative to recent MACD behavior.
Histogram Expansion — maximum 20 points
The engine measures the one-bar change in absolute histogram strength.
Points are awarded only when the histogram is expanding in the setup direction.
MACD Slope — maximum 20 points
Bullish setups require positive slope for this component.
Bearish setups require negative slope.
The slope magnitude is compared with its own adaptive baseline.
Momentum Acceleration — maximum 15 points
Acceleration measures the change in MACD slope.
Positive acceleration supports bullish scoring.
Negative acceleration supports bearish scoring.
bullishQualityScore = f_clamp(
bullishAlignmentScore +
bullishHistogramStrengthScore +
bullishExpansionScore +
bullishSlopeScore +
bullishAccelerationScore,
0.0,
100.0
The available quality modes are:
Off
Removes the minimum Momentum Quality Score restriction.
Loose
Requires a minimum score of 45.
Balanced
Requires a minimum score of 60.
Strict
Requires a minimum score of 75 and is the default.
The score is not a win rate.
It is not a probability.
It measures how closely the current MACD event matches the engine’s momentum-strength framework.
━━━━━━━━━━━━━━━━━━━━━━
📏 VOLATILITY / ATR NORMALIZATION FILTER
━━━━━━━━━━━━━━━━━━━━━━
The indicator uses ATR normalization to compare certain values across changing volatility conditions.
The Absolute Strength Filter calculates:
Absolute Histogram Strength = |Histogram| / ATR × 100.
This value is used as an additional minimum-strength condition.
The default settings are:
• Normalization ATR Length: 14
• Minimum Absolute Strength: 1.0
• Use Absolute Strength Filter: enabled
ATR normalization helps reduce dependence on the raw numerical scale of a market.
For example, a raw MACD histogram value cannot be compared directly across instruments with very different prices and volatility.
Normalization places the histogram in relation to the instrument’s recent ATR.
The same ATR framework is also used by:
• optional price-to-EMA trend buffers
• EMA-separation regime measurement
• price-impulse scoring
• ATR-based trade management
ATR normalization does not make one configuration universal.
Symbols, sessions, exchanges, and data feeds can still behave differently.
━━━━━━━━━━━━━━━━━━━━━━
🕯️ DISPLACEMENT QUALITY FILTER
━━━━━━━━━━━━━━━━━━━━━━
The entry-qualification engine evaluates whether the signal candle shows enough directional response.
The Candle component contributes up to 25 points.
It is divided into:
Directional Body — maximum 12.5 points
For bullish setups, the engine measures the positive candle body relative to the full candle range.
For bearish setups, it measures the negative body.
Close Location — maximum 12.5 points
Bullish setups receive more points when the close is nearer the candle high.
Bearish setups receive more points when the close is nearer the candle low.
Price Impulse contributes up to 15 additional points.
The engine compares the one-bar directional price movement with ATR.
A bullish price impulse measures positive close-to-close displacement.
A bearish price impulse measures negative close-to-close displacement.
This layer does not predict the next candle.
It measures whether the completed signal candle supports the direction of the MACD event.
━━━━━━━━━━━━━━━━━━━━━━
📊 REACTION STRENGTH FILTER
━━━━━━━━━━━━━━━━━━━━━━
The engine includes a separate Entry Qualification Score.
Its components are:
Candle Quality — maximum 25 points
Combines directional body and close location.
MACD Separation — maximum 25 points
Measures current histogram separation relative to its adaptive baseline.
Momentum Persistence — maximum 20 points
Measures how long directional MACD and histogram alignment has remained active.
Price Impulse — maximum 15 points
Measures directional close-to-close movement relative to ATR.
Trigger Context — maximum 15 points
Confirms that an eligible setup event is currently active.
The total is limited to 0–100.
Available modes are:
Off
Removes the minimum Entry Qualification Score restriction.
Loose
Requires a minimum score of 45.
Balanced
Requires a minimum score of 60.
Strict
Requires a minimum score of 75 and is the default.
The final signal also uses internal candle-direction, separation, and persistence requirements.
These internal parameters remain active in the background to keep the public settings menu cleaner.
The Entry Qualification Score is not a verified accuracy figure.
It describes the quality of the completed entry context according to the script’s rules.
━━━━━━━━━━━━━━━━━━━━━━
🧼 CONFIRMED SIGNAL FILTER
━━━━━━━━━━━━━━━━━━━━━━
Permanent LONG and SHORT signals wait for candle close.
The engine uses confirmed-bar checks on:
• MACD crossovers
• zero-line crossings
• expansion triggers
• momentum confirmation
• final LONG and SHORT conditions
The higher-timeframe trend layer also uses previous completed higher-timeframe values.
htfConfirmedClose = request.security(
syminfo.tickerid,
higherTimeframe,
close ,
gaps = barmerge.gaps_off,
lookahead = barmerge.lookahead_on
)
htfConfirmedEma = request.security(
syminfo.tickerid,
higherTimeframe,
ta.ema(close, trendLength) ,
gaps = barmerge.gaps_off,
lookahead = barmerge.lookahead_on
)
This approach prevents an unfinished higher-timeframe candle from becoming the permanent trend reference.
Entry Timing provides two workflows.
Early Trigger
Uses the confirmed setup event directly.
Momentum Confirmed
Arms the setup and waits for a later confirmed candle with:
• continued MACD alignment
• directional histogram
• renewed histogram expansion
• directional MACD slope
The confirmation opportunity is temporary.
If renewed momentum does not appear inside the internal window, the armed setup expires.
The script does not plot final signals into earlier candles.
Historical results can still change when:
• settings change
• symbol data changes
• timeframe changes
• the data provider revises history
• the available chart-history range changes
━━━━━━━━━━━━━━━━━━━━━━
🎯 ENTRY MODEL
━━━━━━━━━━━━━━━━━━━━━━
When a final LONG or SHORT setup passes every enabled condition, the trade engine can create a visual trade model.
The Entry reference is the close of the confirmed signal candle.
For a LONG model:
• Stop is below Entry
• TP1 is above Entry
• TP2 is above TP1
• TP3 is above TP2
For a SHORT model:
• Stop is above Entry
• TP1 is below Entry
• TP2 is below TP1
• TP3 is below TP2
tradeEntryPrice := close
tradeStopPrice := tradeEntryPrice - selectedStopDistance
tradeTp1Price := tradeEntryPrice + selectedTp1Distance
tradeTp2Price := tradeEntryPrice + selectedTp2Distance
tradeTp3Price := tradeEntryPrice + selectedTp3Distance
The model begins checking TP and SL from the following candle.
This prevents the signal candle’s earlier high or low from being treated as though it occurred after the close-based entry.
The engine stores:
• direction
• entry bar
• entry price
• stop price
• TP1 price
• TP2 price
• TP3 price
• initial risk
• target R values
• TP1 and TP2 progress
• setup type
• setup grade
• risk model
• original signal label
The displayed model is an educational chart reference.
It is not a broker order.
━━━━━━━━━━━━━━━━━━━━━━
🛑 ATR STOP-LOSS MODEL
━━━━━━━━━━━━━━━━━━━━━━
The indicator includes two risk models.
ATR Based
Stop distance is calculated as:
ATR × ATR Stop Multiplier.
The default settings are:
• ATR Length: 14
• ATR Stop Multiplier: 1.50
• TP1: 0.50R
• TP2: 1.00R
• TP3: 1.50R
The minimum distance is protected by the symbol’s minimum tick.
XAUUSD Fixed Pips
Stop and target distances use:
Selected Pips × XAUUSD Pip Size.
The default settings are:
• Pip Size: 0.01
• Stop Loss: 1000 pips
• TP1: 500 pips
• TP2: 1000 pips
• TP3: 1500 pips
Under the common 0.01 convention, those values correspond to:
• Stop distance: 10.00 price units
• TP1 distance: 5.00 price units
• TP2 distance: 10.00 price units
• TP3 distance: 15.00 price units
Broker conventions can differ.
Users should verify their symbol specification before relying on fixed-pip distances.
The XAUUSD protection system checks the symbol.
The dashboard shows:
• ✅ XAUUSD VERIFIED when XAUUSD Fixed Pips is used on a recognized XAUUSD symbol
• ⚠️ CHECK SYMBOL when the mode is used on another symbol
• 🛡️ ATR MODE when ATR Based is selected
The warning does not block calculations.
It tells the user to verify pip size and target distances.
━━━━━━━━━━━━━━━━━━━━━━
🎯 TAKE-PROFIT RR MODEL
━━━━━━━━━━━━━━━━━━━━━━
The visual model contains three take-profit levels.
ATR Based mode calculates targets from the initial stop distance:
TP1 Distance = Initial Risk × TP1 RR.
TP2 Distance = Initial Risk × TP2 RR.
TP3 Distance = Initial Risk × TP3 RR.
XAUUSD Fixed Pips mode uses independent fixed target distances.
The script enforces the following order:
TP1 < TP2 < TP3.
If a selected value would violate that order, the next target is moved at least one minimum tick beyond the prior target.
The trade model internally treats the position as three equal portions.
Each target represents one-third of the model.
If Stop is reached after TP1 or TP2, the script calculates an internal net-R result from:
• the portions already modeled as closed at reached targets
• the remaining portion or portions modeled at Stop
This internal calculation supports Data Window counters.
It is not broker-verified performance.
It does not account for:
• spread
• commission
• slippage
• latency
• partial-fill differences
• financing
• order rejection
• execution venue behavior
━━━━━━━━━━━━━━━━━━━━━━
📦 ACTIVE TP / SL BOX SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
When a confirmed trade model opens, the script can draw on the main chart:
• Entry line
• TP1 line
• TP2 line
• TP3 line
• Stop Loss line
• TP1 reward box
• TP2 reward box
• TP3 reward box
• SL risk box
• LONG or SHORT label
The Entry line is white.
The TP lines are green and initially dashed.
The SL line is red and solid.
The SL box uses a solid border.
When a target is reached:
• the corresponding box becomes more visible
• the corresponding target line becomes solid
• the target line becomes thicker
• the dynamic target alert can fire
When TP3 is reached:
• the complete model closes
• the original LONG or SHORT label remains
• a separate electric-purple TP3 FULL TARGET label appears
• the trade model can remain historically visible
When the model closes at Stop before TP3:
• all active boxes are deleted
• all active trade lines are deleted
• the original LONG or SHORT label is converted into the final result
• the final result becomes SL, CLOSED TP1, or CLOSED TP2
Only TP3 outcomes can retain completed historical boxes and lines.
This is a chart-cleanliness decision.
It does not imply that other outcomes did not occur.
━━━━━━━━━━━━━━━━━━━━━━
🚦 ONE ACTIVE TRADE AT A TIME
━━━━━━━━━━━━━━━━━━━━━━
The script uses one-active-trade-at-a-time visual management.
When the trade engine is enabled:
• a new trade model cannot open while another model is active
• a new trade cannot open on the same candle that closed the previous model
• the internal setup engine continues calculating
• permanent signals are restricted by trade-slot availability
This prevents overlapping Entry, TP, and SL structures.
It also keeps the trade lifecycle easier to interpret.
When the trade engine is disabled, qualified signals can still be evaluated without opening a visual trade model.
The one-active-model rule is a visual and analytical design choice.
It does not restrict the user’s personal trading activity.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ SAME-CANDLE TP / SL HANDLING
━━━━━━━━━━━━━━━━━━━━━━
Trade monitoring begins after the entry candle.
If a later historical candle touches both Stop and one or more targets, standard OHLC data does not reveal the exact intrabar sequence.
The indicator therefore provides two assumptions.
Stop First
If Stop and a target are both touched on the same candle, Stop is processed first.
This is the default and more conservative assumption.
Targets First
Reached targets are processed before Stop.
If TP3 is reached, the model closes at TP3.
Otherwise, remaining portions can close at Stop.
Neither mode reconstructs tick-level execution.
The indicator does not know:
• whether the high occurred before the low
• the bid/ask path
• actual fill sequence
• spread at the time
• slippage
• queue priority
• partial fills
The selected same-bar rule is a modeling assumption required by the limits of OHLC candles.
━━━━━━━━━━━━━━━━━━━━━━
🏷️ MACD MOMENTUM LABELS
━━━━━━━━━━━━━━━━━━━━━━
The indicator uses separate entry and result labels.
Entry labels display:
🚀 LONG
or:
🔴 SHORT
Entry Label Content provides:
Direction Only
Displays only LONG or SHORT.
Grade
Displays direction and setup grade.
Score + Grade
Displays direction, grade, and rounded composite score.
The default is Score + Grade.
LONG and SHORT label sizes can be adjusted independently.
Both default to Small.
The label tooltip contains:
• setup direction
• setup type
• setup grade
• composite score
• Momentum Quality Score
• Entry Qualification Score
• Market Regime Score
• trend-bias state
Result labels include:
🛑 SL
⚠️ CLOSED TP1
✅ CLOSED TP2
🏆 TP3 HIT
✅ FULL TARGET
SL, Closed TP1, and Closed TP2 transform the original entry label.
TP3 creates a separate result label and preserves the original entry label.
All chart-label text uses bold and italic formatting.
━━━━━━━━━━━━━━━━━━━━━━
📍 MACD DISPLAY MODES
━━━━━━━━━━━━━━━━━━━━━━
The indicator operates in a separate MACD pane while selected trade visuals, entry labels, and the dashboard are forced onto the main price chart.
The MACD pane can display:
MACD Line
A white line representing the difference between the selected fast and slow averages.
Signal Line
A red line representing the selected signal smoothing.
Histogram
Color changes communicate momentum condition:
• stronger green for bullish expansion
• softer green for bullish contraction
• stronger red for bearish expansion
• softer red for bearish contraction
Histogram Visual Length
The default multiplier is 1.60.
This changes visual column length only.
It does not affect calculations.
Neon Signal Dots
Qualified LONG setups produce a neon green glow and center dot on the MACD line.
Qualified SHORT setups produce a neon red glow and center dot.
Momentum Background
The pane background changes according to strong or weak bullish and bearish momentum states.
Anti-Chop Background
A neutral gray background can identify conditions blocked by the Anti-Chop Engine.
Each major visual element can be shown or hidden independently.
━━━━━━━━━━━━━━━━━━━━━━
🧹 SETUP INVALIDATION
━━━━━━━━━━━━━━━━━━━━━━
Not every raw MACD event remains eligible.
A setup can be rejected or expire because:
• its momentum score is below the selected threshold
• trend bias does not permit the direction
• the market regime is below the active Anti-Chop threshold
• the Entry Qualification Score is insufficient
• candle direction does not support the setup
• MACD separation is insufficient
• directional persistence is insufficient
• the zero-line filter blocks the direction
• normalized histogram strength is too low
• the signal cooldown is active
• another visual trade is active
• a trade closed on the current candle
• Momentum Confirmed mode does not receive renewed expansion in time
• an opposite raw setup replaces the armed direction
The internal cooldown is eight bars.
Momentum Confirmed mode uses a temporary internal confirmation window.
These background controls are intentionally not exposed as advanced public inputs.
They remain part of the engine’s consistency rules.
A rejected event is not displayed as a permanent entry signal.
━━━━━━━━━━━━━━━━━━━━━━
📟 DASHBOARD
━━━━━━━━━━━━━━━━━━━━━━
The indicator includes a compact dashboard in the bottom-right corner of the main price chart.
The dashboard displays:
Momentum
Possible states include:
• STRONG LONG
• LONG
• STRONG SHORT
• SHORT
• NEUTRAL
Trend
Possible states include:
• BULLISH
• BEARISH
• NEUTRAL
• OFF
Regime
Possible states include:
• TRENDING
• DEVELOPING
• CHOP
• OFF
Trade
Possible states include:
• WAITING
• LONG ACTIVE
• LONG TP1 REACHED
• LONG TP2 REACHED
• SHORT ACTIVE
• SHORT TP1 REACHED
• SHORT TP2 REACHED
Last
Displays the most recent closed model result:
• SL
• CLOSED TP1
• CLOSED TP2
• TP3
Protection
Displays:
• ATR MODE
• XAUUSD VERIFIED
• CHECK SYMBOL
The dashboard is not TradingView Strategy Tester.
It does not display audited brokerage results.
Its states are based on the indicator’s own rule-based calculations.
━━━━━━━━━━━━━━━━━━━━━━
🚨 ALERT SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
MACD Momentum Entry Engine includes static TradingView alert conditions for:
• MACD Momentum LONG
• MACD Momentum SHORT
• TP1
• TP2
• TP3
• Stop Loss
• XAUUSD Mode Warning
The XAUUSD warning condition is limited to a qualified entry bar when Fixed Pips mode is active on a non-XAUUSD symbol.
The script also includes detailed dynamic alert() messages.
Dynamic Entry messages can include:
• direction
• symbol
• timeframe
• setup type
• setup grade
• composite score
• risk model
• Entry
• Stop Loss
• TP1
• TP2
• TP3
• XAUUSD mismatch warning when relevant
Dynamic target messages can include:
• target name
• direction
• symbol
• timeframe
• reached target price
• Entry
• Stop Loss
• TP1
• TP2
• TP3
Dynamic stop messages can include:
• final result
• direction
• symbol
• timeframe
• Entry
• exit price
• Stop Loss
• whether TP1 or TP2 was reached first
Alerts are monitoring tools.
They do not place or manage broker orders.
━━━━━━━━━━━━━━━━━━━━━━
🔔 HOW TO USE ALERTS
━━━━━━━━━━━━━━━━━━━━━━
For static conditions:
1. Add MACD Momentum Entry Engine to the chart.
2. Open TradingView’s Create Alert window.
3. Select the indicator as the condition.
4. Choose LONG, SHORT, TP1, TP2, TP3, SL, or XAUUSD Mode Warning.
5. Select a frequency appropriate for confirmed-candle monitoring.
6. Test the alert before relying on it.
For detailed dynamic messages:
1. Enable Detailed Dynamic Alerts in the indicator settings.
2. Open TradingView’s Create Alert window.
3. Select MACD Momentum Entry Engine .
4. Select Any alert() function call.
5. Configure the delivery method.
6. Test the complete message format.
Alert delivery can depend on:
• TradingView servers
• the selected symbol
• the selected timeframe
• market-data availability
• realtime feed status
• user alert configuration
• webhook or external-service availability
Creating an alert does not guarantee broker execution.
━━━━━━━━━━━━━━━━━━━━━━
🧪 HOW TO USE THE INDICATOR
━━━━━━━━━━━━━━━━━━━━━━
A practical workflow:
1. Add MACD Momentum Entry Engine to a standard candlestick chart.
2. Begin with the default MACD values of 12, 26, and 9.
3. Keep Entry Timing on Early Trigger while learning the setup types.
4. Keep Momentum Quality on Strict for the default selective profile.
5. Keep Anti-Chop on Strict.
6. Keep Entry Qualification on Strict.
7. Observe whether the event is Reversal, Continuation, Zero Reclaim, or Expansion.
8. Review the MACD histogram, line relationship, and neon signal dot.
9. Review the main-chart LONG or SHORT label.
10. Open the label tooltip to inspect the scores and setup type.
11. Review Momentum, Trend, Regime, Trade, Last Result, and Protection in the dashboard.
12. Verify the selected risk model.
13. When using XAUUSD Fixed Pips, confirm XAUUSD VERIFIED.
14. Treat Entry, SL, TP1, TP2, and TP3 as planning references.
15. Use alerts for monitoring rather than blind execution.
16. Compare every setup with personal structure, session, volatility, and risk rules.
17. Test the exact symbol, timeframe, session, and data feed personally used.
The indicator is designed for structured review.
It should not be treated as an automatic decision-maker.
━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS REFERENCE
━━━━━━━━━━━━━━━━━━━━━━
⚙️ MACD Core
Calculation Source
Selects the price source used by the MACD calculation.
Fast Length
Controls the fast average.
Default: 12.
Slow Length
Controls the slow average.
Default: 26.
Signal Length
Controls signal-line smoothing.
Default: 9.
MACD Average Type
Selects EMA, SMA, RMA, or WMA for the fast and slow averages.
Signal Average Type
Selects EMA, SMA, RMA, or WMA for the signal line.
━━━━━━━━━━━━━━━━━━━━━━
🎯 Entry Engine
Entry Timing
Early Trigger accepts the confirmed setup event directly.
Momentum Confirmed waits for renewed directional histogram expansion and MACD continuation after the setup is armed.
━━━━━━━━━━━━━━━━━━━━━━
🧠 Momentum Quality Engine
Quality Filter
Selects Off, Loose, Balanced, or Strict.
Strict is the default.
The score combines:
• alignment
• histogram strength
• histogram expansion
• MACD slope
• momentum acceleration
━━━━━━━━━━━━━━━━━━━━━━
📈 Trend Bias Engine
Trend Bias Mode
Selects:
• Off
• Chart EMA
• Higher Timeframe EMA
• Combined EMA
Off is the default.
Trend EMA Length
Controls the chart and higher-timeframe EMA.
Default: 200.
Chart EMA Slope Lookback
Controls the chart-bar lookback used to evaluate EMA direction.
Require EMA Slope Confirmation
Requires a rising EMA for LONG and falling EMA for SHORT.
Higher Timeframe
Selects the confirmed higher-timeframe context.
Default: 60 minutes.
Price-to-EMA ATR Buffer
Requires an optional minimum ATR-normalized distance between price and the trend EMA.
Zero disables the distance requirement.
━━━━━━━━━━━━━━━━━━━━━━
🧱 Anti-Chop Engine
Anti-Chop Filter
Selects Off, Loose, Balanced, or Strict.
Strict is the default.
The regime score combines:
• ADX — 35 points
• price efficiency — 30 points
• EMA separation — 20 points
• volatility expansion — 15 points
━━━━━━━━━━━━━━━━━━━━━━
✅ Entry Qualification Engine
Enable Reversal Setups
Allows MACD crossovers on the opposite side of zero.
Enable Continuation Setups
Allows MACD crossovers on the directional side of zero.
Enable Zero-Line Reclaims
Allows confirmed MACD zero-line crossings with aligned histogram and signal-line conditions.
Enable Momentum Expansions
Allows renewed histogram expansion after contraction while MACD alignment remains valid.
Entry Qualification Filter
Selects Off, Loose, Balanced, or Strict.
Strict is the default.
The score combines:
• candle quality
• MACD separation
• persistence
• price impulse
• trigger context
━━━━━━━━━━━━━━━━━━━━━━
💼 Trade Management Engine
Enable Trade Engine
Enables the one-active-trade-at-a-time visual model.
Risk Model
Selects ATR Based or XAUUSD Fixed Pips.
XAUUSD Fixed Pips is the default.
ATR Length
Controls ATR for the adaptive model.
ATR Stop Multiplier
Controls stop distance in ATR mode.
ATR TP1 Risk/Reward
Controls TP1 distance in ATR mode.
ATR TP2 Risk/Reward
Controls TP2 distance in ATR mode.
ATR TP3 Risk/Reward
Controls TP3 distance in ATR mode.
XAUUSD Pip Size
Controls the price-unit value of one selected pip.
XAUUSD Stop-Loss Pips
Controls fixed Stop distance.
XAUUSD TP1 Pips
Controls fixed TP1 distance.
XAUUSD TP2 Pips
Controls fixed TP2 distance.
XAUUSD TP3 Pips
Controls fixed TP3 distance.
Same-Bar Resolution
Selects Stop First or Targets First.
Show Active TP / SL Zones
Shows Entry, targets, Stop, boxes, and lines on the main chart.
Keep Historical TP3 Zones
Preserves completed TP3 models.
Historical TP3 Trade Limit
Limits completed TP3 models retained on the chart.
Trade Result Labels
Enables SL, Closed TP1, Closed TP2, and TP3 result labels.
SL Label Size
Controls SL result size.
Closed TP1 Label Size
Controls Closed TP1 result size.
Closed TP2 Label Size
Controls Closed TP2 result size.
TP3 Label Size
Controls the separate FULL TARGET label size.
━━━━━━━━━━━━━━━━━━━━━━
🛡️ Signal Filters
Zero-Line Filter
Off allows both sides of zero.
Trend Direction requires LONG above zero and SHORT below zero.
Trend Direction is the default.
Use Absolute Strength Filter
Enables ATR-normalized minimum histogram strength.
Normalization ATR Length
Controls normalization.
Minimum Absolute Strength
Controls the required normalized histogram value.
━━━━━━━━━━━━━━━━━━━━━━
🎨 Visual Settings
Show MACD Line
Shows or hides the MACD line.
Show Signal Line
Shows or hides the signal line.
Show Histogram
Shows or hides histogram columns.
Histogram Visual Length
Changes histogram display scale without changing calculations.
Show MACD Neon Signal Dots
Shows qualified LONG and SHORT dots on the MACD line.
Show Momentum Background
Shows directional momentum background states.
Highlight Blocked Chop Conditions
Shows a neutral background when Anti-Chop blocks entries.
Show LONG / SHORT Labels
Shows or hides main-chart entry labels.
Entry Label Content
Selects Direction Only, Grade, or Score + Grade.
LONG Label Size
Controls LONG label size.
SHORT Label Size
Controls SHORT label size.
━━━━━━━━━━━━━━━━━━━━━━
📟 Mini Dashboard
Show Mini Dashboard
Shows or hides the compact bottom-right main-chart dashboard.
━━━━━━━━━━━━━━━━━━━━━━
🔔 Dynamic Alerts
Enable Detailed Dynamic Alerts
Enables runtime alert() messages.
For these messages, create the TradingView alert using:
Any alert() function call.
Input values are hidden from the status line.
MACD plot values are also prevented from creating status-line or price-scale labels, while diagnostic values remain available in the Data Window.
━━━━━━━━━━━━━━━━━━━━━━
🧠 WHAT MAKES THIS SCRIPT ORIGINAL
━━━━━━━━━━━━━━━━━━━━━━
MACD, moving averages, ATR, ADX, and trend filters are familiar technical-analysis concepts.
These concepts are not unique by themselves.
The originality of MACD Momentum Entry Engine lies in the coordinated process applied to a MACD event:
Configurable MACD event
→ setup-type classification
→ adaptive momentum-strength baselines
→ five-component Momentum Quality Score
→ optional confirmed trend-bias layer
→ four-component Anti-Chop Regime Score
→ five-component Entry Qualification Score
→ final composite score and grade
→ zero-line and normalized-strength validation
→ confirmed-close signal
→ one-active multi-target trade lifecycle
→ TP3-only historical preservation
→ non-TP3 visual cleanup
→ dynamic alerts
→ main-chart diagnostic dashboard
→ XAUUSD mode verification
Distinctive implementation features include:
• four separate setup families
• different logic for Reversal and Continuation crossovers
• zero-line reclaim detection
• renewed expansion detection without requiring a fresh crossover
• adaptive baselines for strength, expansion, slope, and acceleration
• separate bullish and bearish scoring
• a Momentum Quality Score independent from Entry Qualification
• an Anti-Chop Score independent from momentum quality
• confirmed previous higher-timeframe EMA values
• a 70/30 final composite structure
• A+, A, B, and C grades
• visual-only histogram scaling
• equal-third multi-target internal accounting
• same-candle processing assumptions
• XAUUSD symbol verification
• separate result behavior for TP3 and non-TP3 outcomes
• detailed Data Window diagnostics
The script is not a simple combination of unrelated indicators.
Every module supports the same objective: determining whether a confirmed MACD event has enough momentum, market, and entry context to become a permanent visual setup.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT PRACTICAL NOTES
━━━━━━━━━━━━━━━━━━━━━━
Signal frequency depends on:
• fast, slow, and signal lengths
• selected average types
• Entry Timing
• enabled setup families
• Momentum Quality mode
• Trend Bias mode
• EMA length
• higher timeframe
• EMA slope requirement
• price-to-EMA buffer
• Anti-Chop mode
• Entry Qualification mode
• zero-line filter
• absolute-strength threshold
• symbol
• timeframe
• session
• volatility
• available history
• data provider
• active-trade state
Strict modes reduce accepted signals.
They do not guarantee better results.
Trend Bias Off allows the momentum engine to evaluate both directions without EMA permission.
Higher Timeframe EMA and Combined EMA should use a timeframe meaningfully above the chart timeframe.
XAUUSD Fixed Pips is designed around a selectable pip convention.
The default 0.01 value may not match every broker or synthetic symbol.
Momentum Confirmed produces later and potentially fewer signals than Early Trigger.
Histogram Visual Length does not alter logic.
Changing settings recalculates historical signals and trade models.
A setup that looks different after changing the chart range may be affected by available historical data and adaptive baselines.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ LIMITATIONS AND SHORTCOMINGS
━━━━━━━━━━━━━━━━━━━━━━
This script has important limitations:
It does not guarantee profitable trades.
It does not predict future price movement.
It does not execute orders.
It does not place broker stops or targets.
It does not include spread.
It does not include commission.
It does not include slippage.
It does not include latency.
It does not model partial fills.
It does not model financing or swap.
It uses bar-based OHLC data.
Historical candles do not reveal exact intrabar order.
Stop First and Targets First are assumptions.
The setup score is not a win probability.
A+ is not a guaranteed outcome.
The Anti-Chop Score cannot identify every ranging condition.
Trend filters can delay or block valid reversals.
Trend Bias Off can allow countertrend signals.
ATR normalization does not make settings universal.
Fixed-pip conventions can differ between brokers.
XAUUSD symbol detection cannot verify a broker’s contract specification.
The dashboard is not TradingView Strategy Tester.
Data Window counters are not audited account performance.
The internal R model assumes three equal portions.
The internal model does not represent real position sizing.
One-active-trade logic is a visual-management rule.
Alert delivery depends on TradingView and user configuration.
Changing settings changes historical calculations.
Changing symbol, exchange, session, timeframe, or feed can change signals.
Adaptive baselines depend on available chart history.
Confirmed higher-timeframe values reduce unfinished-HTF changes but introduce delay.
Permanent signals wait for candle close and therefore do not capture the earliest intrabar moment.
For these reasons, the indicator should be used as an educational decision-support tool, not as a standalone automated strategy.
━━━━━━━━━━━━━━━━━━━━━━
👤 WHO THIS SCRIPT MAY BE USEFUL FOR
━━━━━━━━━━━━━━━━━━━━━━
This script may be useful for traders who:
• already understand basic MACD behavior
• want more context than a raw crossover
• study momentum expansion and contraction
• distinguish reversal, continuation, zero-line, and expansion events
• want transparent setup scoring
• want an anti-chop layer
• want optional chart and higher-timeframe trend context
• prefer confirmed-close signals
• want Entry, SL, and three target references
• use XAUUSD and want configurable fixed-pip distances
• want symbol-mismatch warnings
• want a compact dashboard
• want detailed alerts
• want diagnostic Data Window values
• prefer one active visual model at a time
It may be less suitable for users who:
• want guaranteed signals
• want a fully automated trading bot
• want every MACD crossover displayed
• expect a score to equal probability
• expect one setting to work on every market
• require exact tick-level execution
• want Strategy Tester results from an indicator
• want the indicator to replace personal judgment
• expect alerts to execute broker orders automatically
━━━━━━━━━━━━━━━━━━━━━━
🧭 BEST PRACTICE SUGGESTIONS
━━━━━━━━━━━━━━━━━━━━━━
For the default selective profile:
• use standard candlesticks
• begin with MACD 12 / 26 / 9
• keep Entry Timing on Early Trigger
• keep Momentum Quality on Strict
• keep Anti-Chop on Strict
• keep Entry Qualification on Strict
• keep the Zero-Line Filter on Trend Direction
• keep Absolute Strength enabled
• keep all four setup families enabled while learning
• use the dashboard to identify blocked regime conditions
• verify the selected risk model before reviewing trade levels
• use Stop First for conservative historical same-bar handling
• confirm XAUUSD VERIFIED when using Fixed Pips
• use alerts for monitoring rather than blind execution
For additional frequency:
• change Momentum Quality from Strict to Balanced
• change Anti-Chop from Strict to Balanced
• change Entry Qualification from Strict to Balanced
• disable the Zero-Line Filter
• disable Absolute Strength
• keep Trend Bias Off
• use Early Trigger
For additional directional restriction:
• use Chart EMA, Higher Timeframe EMA, or Combined EMA
• enable EMA slope confirmation
• add a Price-to-EMA ATR Buffer
• use a higher timeframe above the chart timeframe
• use Momentum Confirmed instead of Early Trigger
Always:
• wait for the setup candle to close
• review the setup type
• review the score components
• verify market structure independently
• review session and volatility
• verify the stop distance
• use personal position sizing
• test the exact symbol and timeframe
• understand the same-bar assumption
• treat all projected levels as analytical references
━━━━━━━━━━━━━━━━━━━━━━
🔓 PUBLICATION NOTE
━━━━━━━━━━━━━━━━━━━━━━
MACD Momentum Entry Engine is published as an educational momentum-analysis and visual trade-model tool.
The purpose of this description is to explain:
• how the configurable MACD core is calculated
• how average types affect the MACD and signal lines
• how setup events are classified
• how Reversal setups work
• how Continuation setups work
• how Zero-Line Reclaim setups work
• how Momentum Expansion setups work
• how Early Trigger and Momentum Confirmed differ
• how the Momentum Quality Score is constructed
• how adaptive momentum baselines work
• how the Anti-Chop Score is constructed
• how the Entry Qualification Score is constructed
• how final composite scores and grades are assigned
• how chart and confirmed higher-timeframe trend filters work
• how zero-line and absolute-strength filters work
• when permanent signals appear
• how the one-active-trade model works
• how Entry and Stop are calculated
• how TP1, TP2, and TP3 are calculated
• how same-candle ambiguity is handled
• how historical TP3 visuals are retained
• how non-TP3 visuals are cleaned
• how result labels behave
• what the dashboard displays
• how XAUUSD protection works
• what static and dynamic alerts contain
• what diagnostic values are available
• what the timing limitations are
• what the model does not simulate
• why familiar MACD concepts are organized into an original workflow
The script is designed to support structured analysis.
It does not promise profitable results.
It does not remove market risk.
It does not execute trades.
It should not be used as a blind LONG/SHORT system.
MAIN CHART SCREENSHOT PLAN
Use one clean standard candlestick chart.
Show the indicator with its default settings.
The screenshot should contain:
• complete symbol and timeframe information
• the indicator name
• visible standard price candles
• one clear LONG or SHORT label
• one active or completed Entry / TP / SL model
• the white Entry line
• green TP1, TP2, and TP3 levels
• the red SL area and solid SL line
• the MACD pane
• the white MACD line
• the red signal line
• the green/red histogram
• one neon MACD signal dot
• the bottom-right main-chart dashboard
• the Protection state
Do not include:
• other indicators
• manual drawings
• unrelated labels
• social-media links
• pricing information
• promotional claims
• account-profit screenshots
• win-rate claims
• non-standard candles
• hidden symbol or timeframe information
• excessive zoom
• decorative graphics unrelated to the script
The screenshot should demonstrate normal default behavior and make the relationship between the MACD event, main-chart signal, trade model, and dashboard easy to understand.
━━━━━━━━━━━━━━━━━━━━━━
🛡️ DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━
MACD Momentum Entry Engine is provided for educational and informational purposes only.
It does not constitute financial, investment, trading, legal, or tax advice.
No indicator can guarantee future results.
Markets are uncertain.
Momentum changes.
Volatility changes.
Liquidity changes.
Historical chart behavior does not ensure future performance.
Every user is responsible for their own:
• analysis
• validation
• risk management
• position sizing
• alert configuration
• trading decisions
• broker execution
• legal obligations
• tax obligations
The MACD line, signal line, histogram, momentum states, setup types, quality scores, regime scores, entry scores, composite scores, grades, trend states, LONG and SHORT labels, Entry references, Stop Loss levels, take-profit levels, boxes, result labels, Data Window values, dashboard states, internal counters, and alerts are visual analysis tools only.
The displayed Entry is not a guaranteed fill.
The displayed Stop Loss is not a broker order.
The displayed TP1, TP2, and TP3 levels are not guaranteed objectives.
The Momentum Quality Score is not a win probability.
The Entry Qualification Score is not a probability.
The Market Regime Score is not a guarantee that a market is trending.
The A+, A, B, and C grades are not promises of performance.
The internal trade model does not include spread, commissions, slippage, latency, order-book conditions, contract specifications, or partial fills.
Use this script as a structured MACD momentum-review and decision-support framework, not as a promise of profitability or a substitute for independent judgment. Penunjuk

Solana Day Trader 1.08.1
SOLANA DAY TRADER 1.08.1 Final Version
Multi-timeframe capitulation entry system for SOL perpetual futures
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT IT DOES
Solana Day Trader identifies high-probability long entries during washout conditions — the sharp, wick-heavy drops where weak hands are flushed out before a mean-reversion recovery. It monitors the 15m, 30m, and 1h timeframes simultaneously and grades each potential entry from BASE through SCALE to FULL based on how much confirming evidence lines up.
The result is a live multi-timeframe dashboard that shows exactly where each timeframe stands — gate status, entry tier, confluence score, regime quality, liquidity levels, and active exit signals — all in one panel.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW IT WORKS
The system runs three filters in sequence. All three must pass for a FULL-tier entry; failing the third downgrades to SCALE or BASE.
1 — CAPITULATION GATES (must both pass)
The Williams VIX Fix (WVF Filtered) fires when the current low relative to recent highs reaches an extreme — the volatility-squeeze signature of a washout wick. A Fair Value Gap (FVG) must also be present: a 3-bar price imbalance that confirms institutional order flow was present at the move. Together these two gates filter out ordinary pullbacks and focus attention on structural lows.
2 — CONFLUENCE SCORE (determines BASE vs SCALE)
Once the gates pass, four factors add to a score: EMA 9>21 alignment, a VIDYA adaptive moving average in bull posture, OBV slope pointing upward (contrarian — rising buy-side pressure into the low), and a signed-volume DELTA measure. The score floor for BASE is 1; SCALE requires 2 or higher. Each weight is adjustable, and any factor can be zeroed out to simplify the model.
3 — REGIME GATE (SCALE → FULL escalation)
FULL tier requires the market to be in a ranging, low-momentum state: ADX below the configured threshold (default 25). High-ADX trending markets favor momentum strategies; low-ADX ranging markets are where mean-reversion setups have the clearest edge. Optionally, a BTC bull requirement can be added as an additional gate for FULL.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
THE DASHBOARD
The panel (default: middle-right, toggleable) displays a 3-column layout — one column per timeframe (15m / 30m / 1h) — with the active chart timeframe highlighted.
Row by row:
TIER — BASE / SCALE / FULL (or blank if no signal)
SIGNAL — current trade status (GET IN / IN TRADE / EXIT FULL / RE-ENTRY / etc.)
WVF — armed (✓) or not
FVG — armed (✓) or not
TQI gate — gating status when TQI gate is enabled
TQI — Trend Quality Index value (0–1), used for the optional gate and char-flip exit
Score — current confluence score
ADX < — ADX value vs. the FULL-tier threshold
REGIME — GREEN / YELLOW / RED composite regime
HTF / EMA — higher-timeframe EMA bias
ATF / BTC — adaptive trend fit classification + BTC lead direction
VWAP / OBV — swing VWAP position + OBV state
LEVELS — structural stop and ATR-based stop levels
Liq ↑ — nearest auto-detected sell-side liquidity above (resistance pool)
Liq ↓ — nearest auto-detected buy-side liquidity below (support pool)
OBSERVABLES — MBI, CVI, BBAWE, Bull Pressure composite line
Sweep — per-TF liquidity sweep detection
GATES — WVF / FVG gate arm state
GREEN regime = trending higher with measured momentum, favorable for recovery.
YELLOW regime = intermediate / mixed — entries here carry more risk.
RED regime = downtrend or high-volatility chop — approach with caution.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EXIT SIGNALS
Four exit conditions are available (each independently toggleable):
• BB Break — closes below the Bollinger lower band; thesis invalidated
• WVF Top — volatility-spike exhaustion reading; momentum likely stalling
• CVI Top — CVI exhaustion signal at extended levels
• Char-Flip (default OFF) — TQI collapse: trend quality deteriorates sharply after entry
The dashboard SIGNAL row tracks trade state and flags when any exit fires. A re-entry signal also activates after a full exit if the entry conditions re-arm within the configured watch window.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MANUAL TRADE PROJECTION
When you enter a trade, toggle "I am currently in a trade" ON and type your entry price into "My entry price." The indicator draws TP and SL lines on the chart so you can see your risk/reward at a glance. Toggle OFF when you exit.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ALERTS
Three alert conditions are available — one per tier — so you can be notified on BASE, SCALE, and/or FULL fires independently. Configure in the Alert Filtering settings group.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
RECOMMENDED SETUP
Chart: SOL/USDT or SOLUSDT perpetual, any supported exchange.
Timeframe: 15m is the primary display TF. The indicator reads 15m, 30m, and 1h internally regardless of which TF the chart is set to, but the dashboard highlights whichever matches your chart.
Defaults: WVF gate ON, FVG gate ON, ADX threshold 25, all three timeframes enabled. These are sensible starting points — the system is designed to be used as-is.
The most conservative approach is to trade FULL-tier signals only during GREEN regime. BASE and SCALE signals in YELLOW regime are valid setups but carry wider outcome distributions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SETTINGS GROUPS
Display — panel location/size, chart overlays (BB bands, WVF markers, EMA/SMA lines), trade projection toggle and entry price.
Entry Engine — timing windows (core arm, active trade, exit escalation, cooldown, re-entry).
Gate Stack — toggle WVF, FVG, TQI gates and the BB anti-signal individually.
Tier Escalators — ADX threshold for FULL tier.
Exit Signals — toggle each exit condition independently.
Cores — toggle EMA and VIDYA cores.
Confluence Score — individual weights for EMA, VIDYA, OBV, DELTA; score floor for BASE and SCALE/FULL.
Regime Escalator — BTC — optional BTC bull requirement for FULL-tier entries.
Alert Filtering — enable/disable alerts per tier.
Regime Context — HTF bias timeframe, EMA lengths, ADX length, ATF settings, BTC symbol.
Timeframes — enable/disable 15m, 30m, 1h independently; per-TF entry offset bars.
GATE — WVF Filtered — WVF period, Bollinger parameters, range lookback, arm window.
GATE — FVG — minimum gap height as % of price.
GATE — TQI — Trend Quality Index lengths and thresholds (informational unless TQI gate is enabled).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ATTRIBUTION
Williams VIX Fix methodology originally by LazyBear.
VIDYA adaptive moving average component from BigBeluga's Volumatic VIDYA.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is built for SOL perpetual futures. It is a decision-support tool, not a signal service. All entries and exits are your own decision. Past entry conditions do not guarantee future results.
Penunjuk

BEDROCK Gated Macro Spot Cycle ModelBEDROCK condenses several independent long-term Bitcoin valuation models into a single transparent 0–100 score, then maps that score onto a seven-tier ladder running from deep value to cycle-top risk — with capitulation and euphoria gates that hold back the two most common false signals at each extreme. It is built for spot investors making multi-month and multi-year allocation decisions, not for short-term trading.
The reference card below shows how to read the model and how each tier behaves:
█ WHAT IT DOES
BEDROCK answers one question: where does price sit inside its macro cycle right now? Rather than a single oscillator, it scores a basket of slow-moving valuation measures, normalizes each to a common 0–100 "cheap → expensive" scale, blends them into a weighted composite, and classifies the result into an actionable tier with a suggested accumulation or distribution size. A higher composite means greater long-term value and lower risk; a lower composite means the market is stretched and risk is rising.
█ HOW IT WORKS
The composite is built from four independent blocs, any of which can be reweighted or disabled:
Trailing cost-basis bloc — price relative to the 200-week SMA, the 2-year SMA, and the 200-day SMA (Mayer Multiple). These three are deliberately collapsed into a single averaged, bounded factor so the moving-average family is represented once and cannot dominate the score through collinearity.
Drawdown from all-time high — how far price has fallen from its peak. The heaviest-weighted leg by default.
Weekly RSI — long-term momentum, as secondary confirmation.
MVRV Z-Score (optional) — an on-chain valuation leg you can enable and feed from an external source.
Each metric is mapped to 0–100 through its own linear calibration between a deep-value anchor and an expensive anchor, so every leg speaks the same language before being combined. Weights are auto-renormalized over whatever blocs are actually available — so the model stays coherent on early history where the 200-week isn't yet populated, or when MVRV is turned off. It simply reweights the parts it has.
█ THE TWO GATES — THE CORE IDEA
A raw valuation score has two classic failure modes: it screams "generational buy" on the first leg down of a bear market, and it screams "top" every time price gets mildly extended. BEDROCK addresses both with directional gates that only ever cap the tier toward the middle — they never fabricate a signal, and they never block the core accumulate or trim reads.
Capitulation gate (bottom) — the two deepest tiers stay locked until the market shows genuine capitulation. Generational requires a large drawdown from the all-time high (or a deeply negative MVRV-Z); Deep Accumulation requires price at or below its 200-week basis. Until then the score is capped at Accumulation, so you keep buying value without prematurely committing everything.
Euphoria gate (top) — the two riskiest tiers stay locked until multiple independent overheating signs agree across the 200-week multiple, weekly RSI, the Mayer Multiple, and MVRV-Z. Euphoria requires at least one confirmation; Cycle Top requires at least two. This is what stops the model from calling a top on every rally.
Because both gates only cap toward neutral, accumulation signals are never suppressed and trim signals are never suppressed. The gates restrain only the extreme calls, and only until the evidence is actually there.
█ READING THE INDICATOR
Composite line — the 0–100 score, colored by its current tier.
Background — shaded by tier for at-a-glance cycle context.
Threshold lines — the tier boundaries.
Markers — gated triangles mark transitions into accumulation tiers (up) and distribution tiers (down).
Data table — live composite, current tier, suggested action, both gate states, and every underlying metric (200W and 2Y multiples, Mayer, drawdown, weekly RSI, MVRV).
█ THE SEVEN TIERS
Generational Value — extremely rare deep value; aggressive accumulation.
Deep Accumulation — excellent value; size up.
Accumulation — good value; keep building.
Neutral / Hold — fairly valued; hold.
Expensive / Trim — above fair value; begin scaling out.
Euphoria / Distribute — high risk; distribute and protect profit.
Cycle Top / Exit — extreme; high-probability macro top.
Each tier also outputs a suggested DCA-in or trim-out multiplier, so the signal is sized rather than binary.
█ HOW TO USE IT
Use it on Bitcoin spot or index charts such as BITSTAMP:BTCUSD or $BINANCE:BTCUSDT.
Weekly is the primary timeframe; daily works as a secondary view.
Accumulate through tiers 1–3, hold in tier 4, scale down in tiers 5–6, and treat tier 7 as exit territory.
Built-in alerts fire on entry into each accumulation and distribution tier (gated).
█ WHAT MAKES IT ORIGINAL
BEDROCK is not a single valuation ratio dressed up as an oscillator. The combination is the point: a transparent additive composite over independent metrics, a deliberate collinearity fix that collapses the moving-average family into one bounded bloc, a dual directional-gate system that suppresses the two most common false signals at both extremes without ever blocking the core reads, and sized accumulate/trim output instead of a bare number. Every metric, weight, calibration anchor, and gate threshold is exposed as an input, so the entire model is auditable and tunable — nothing is hidden.
█ NOTES & LIMITATIONS
BEDROCK is a long-horizon valuation tool, not a precise top/bottom timer and not a short-term trading system. It is designed to keep you positioned in the statistically favorable portion of the cycle, not to nail exact turns. Several display themes are included. This script is for educational purposes only and is not financial advice — size your own risk and do your own research. Penunjuk

Penunjuk

TW - Dual FlowZone MA Clouds## Dual FlowZone MA Clouds
Dual FlowZone MA Clouds is a trend visualization indicator designed to help traders quickly identify market direction, trend strength, and potential transitions before they become obvious.
Unlike traditional moving average indicators that simply plot one or two averages, Dual FlowZone MA Clouds uses two independent FlowZones to provide both short-term momentum and longer-term trend context in a single, easy-to-read visualization.
FlowZone A is designed to help identify momentum, pullbacks, and trend continuation, while FlowZone B provides higher timeframe directional bias and market context. When both FlowZones align, traders can quickly recognize strong trending conditions. When they diverge, the market may be transitioning or losing participation.
### Flow Status Table
The optional Flow Status table provides an instant summary of current market conditions without requiring traders to interpret multiple moving averages.
The table displays:
* **Primary Flow** – Current direction of FlowZone A (Bullish, Bearish, Neutral, or Weakening)
* **Secondary Flow** – Current direction of FlowZone B
* **Alignment** – Indicates whether both FlowZones are aligned or providing mixed signals
This allows traders to assess overall trend bias with a quick glance before analyzing price action.
### ORB-Style Visual Design
The Flow Status table uses the same visual style as the Traders Workshop ORB Sessions indicator, providing a consistent interface across the indicator suite.
### Chart Labels
When a FlowZone crossover occurs, optional chart labels identify the signal directly on the chart, making it easy to review historical trend changes without searching through moving average crosses.
The indicator also supports optional Flow Dots and subtle background bias to provide additional visual confirmation while keeping the chart clean and uncluttered.
### Features
• Two fully independent Moving Average FlowZones
• Supports SMA, EMA, WMA, RMA, VWMA and HMA
• Configurable MA lengths, colors and line widths
• Dynamic bullish, bearish and transition cloud coloring
• Optional Flow Status dashboard
• Optional crossover markers
• Optional Flow Dots
• Optional background trend bias
• Individual alerts for crossovers, trend changes and FlowZone alignment
Dual FlowZone MA Clouds is designed to complement price action—not replace it. Use it alongside market structure, volume, VWAP, auction concepts, and support/resistance to better understand trend quality and directional bias.
---
**Part of the Traders Workshop indicator collection**
**Real Trading. Real Testing. Real Results.**
Penunjuk

Pure CVD MACD (Momentum of Delta)Overview
Traditional MACD indicators are fantastic at measuring the momentum of price, but they are entirely blind to the actual order flow driving that price. The Pure CVD MACD shifts the focus from the result (price action) to the cause (market aggression).
Instead of asking "Are there more buyers or sellers?", this indicator asks "Is the buying or selling pressure accelerating or decelerating?"
Built using Pine Script Version 6 and the new ta.requestVolumeDelta function, this script calculates a classic MACD (Moving Average Convergence Divergence) entirely on the raw Cumulative Volume Delta (CVD), completely independent of price. This provides an institutional-grade look at the momentum of order flow.
How It Works
The script calculates a continuous Cumulative Volume Delta line by scanning lower timeframe data to find the exact net difference between buying and selling volume. It then applies standard MACD logic to that CVD line:
MACD Line (Blue): The difference between a Fast EMA and Slow EMA of the volume delta.
Signal Line (Orange): An EMA of the MACD Line itself.
Histogram: The visual difference between the MACD Line and the Signal Line, color-coded to show momentum shifts.
Key Order Flow Concepts to Trade
Momentum Shifts (Zero-Line Crossovers): When the histogram crosses above the zero line (Blue crosses over Orange), the volume delta is gaining bullish momentum. Even if the macro trend is down, this shows aggressive buyers are stepping in and accelerating their pace. A cross below zero signals accelerating bearish pressure.
Exhaustion (Histogram Fades): Watch for the color fades (Teal to Dark Teal, or Red to Dark Red). If you are watching a massive sell-off and the histogram prints a "Dark Red" bar, the selling pressure is decelerating. Sellers are running out of ammunition, often signaling an impending reversal.
Hidden Divergence: Compare the Pure CVD MACD to the price chart. If the price is grinding upward to make a Higher High, but the CVD MACD is crossing bearishly below its Signal Line, the breakout is running on fumes and a trap is likely being set.
Settings Breakdown
Anchor & Lower Timeframe: Defines the starting point for the cumulative delta and the timeframe used to calculate the intra-bar buying/selling volume. By default, it automatically selects the best lower timeframe.
Fast / Slow EMA Lengths (Default 12, 26): The lookback periods used to track the short-term vs. long-term trend of the volume delta.
Signal EMA Length (Default 9): The trigger line used to spot early momentum shifts in the delta.
Best Practices
Because this indicator measures the momentum of order flow rather than absolute volume, it pairs exceptionally well with structural price analysis or liquidity zones. When price taps a major support level and the Pure CVD MACD prints a bullish divergence or a histogram fade, you have highly confluent evidence that the level will hold. Penunjuk

Adaptive SuperTrend -, Regime Filter & Buy/Sell Signals [LunqFX]Adaptive SuperTrend is a self-tuning trend indicator for TradingView that fixes the biggest flaw of the classic SuperTrend: a fixed multiplier that whipsaws in choppy markets and lags in fast ones. This version makes the SuperTrend multiplier adaptive — it automatically widens in high volatility and tightens in low volatility — and layers a regime filter and a momentum filter on top to deliver clean, non-repainting Buy/Sell signals with an automatic take-profit / stop-loss ladder and live performance stats. It works on forex, crypto, stocks, indices, futures, gold (XAUUSD) and Bitcoin (BTCUSD), on any timeframe, for scalping, day trading and swing trading. Built in Pine Script v6. Keywords: adaptive supertrend, supertrend, trend, trend following, buy sell signals, regime filter, ATR trailing stop, volatility, momentum, take profit, stop loss, risk reward, trend reversal, no repaint, scalping, day trading, swing trading.
◆ WHY ADAPTIVE
A normal SuperTrend uses one fixed multiplier for every market and every condition, so it gets shaken out in volatile phases and reacts too slowly in calm ones. Adaptive SuperTrend ranks current volatility against its own recent history (0–100%) and maps that onto a multiplier range — wide when the market is wild, tight when it is calm — with zero manual tuning. The same settings behave sensibly on EURUSD, BTCUSD and the S&P 500.
◆ WHAT IT DOES
Adaptive trend line + fill — a volatility-adjusted trailing stop that flips turquoise (up) / magenta (down).
Filtered Buy/Sell signals — a trend flip only fires as a signal when two filters agree.
Auto TP/SL ladder — on every signal it draws the stop (on the trend line) and TP1 / TP2 / TP3 at 1R / 2R / 3R, so you get a complete trade plan instantly.
Conviction Score 0–100 — one number summarising how strong the current setup is.
Live win-rate stats — the script tracks its own past signals on the fly.
Neon trend candles + a clean live dashboard.
◆ HOW IT WORKS (the concepts)
Adaptive multiplier: ATR is ranked by percentile over a lookback window; the percentile sets the SuperTrend multiplier between your min and max.
SuperTrend core: the standard trailing-stop formula, flipping direction when price closes beyond the band.
Regime filter (Kaufman Efficiency Ratio): directional travel divided by total path = how trending vs choppy the market is. Signals are blocked in low-efficiency (range) conditions to cut false signals.
Momentum check: a flip is only taken when price is on the matching side of its momentum EMA.
Conviction Score: a weighted blend of trend efficiency, momentum agreement and trend-line slope (0–100).
Live stats: each signal is tracked sequentially — a “win” = price reaches TP1 (1R) before the stop — with no lookahead.
◆ HOW TO USE IT
Take BUY / SELL labels in the direction of the new trend; the SL and TP1/2/3 ladder give you the exact plan and risk/reward.
Favour signals with a high Conviction Score and a TRENDING regime; stand aside when the dashboard shows RANGE.
Manage the trade to TP1/TP2/TP3 or trail with the adaptive line.
Tune Min/Max multiplier for tighter or looser stops and Efficiency threshold for how strict the range filter is.
Combine with your own support/resistance, structure or higher-timeframe bias for confluence.
◆ SETTINGS
Adaptive Trend: ATR length, min/max multiplier, volatility window.
Regime Filter: on/off, efficiency length, trend threshold.
Momentum Check: on/off, momentum EMA.
Visuals: trend fill, glow, neon candles, Buy/Sell labels.
Trade Levels & Stats: auto TP/SL ladder, live signal stats.
Panel: show/hide, position, background, accent.
◆ ALERTS
Buy signal · Sell signal · Trend flip up · Trend flip down.
◆ ORIGINALITY
The SuperTrend trailing-stop formula is a standard, public technique, implemented here from scratch. The adaptive volatility-percentile multiplier, the regime filter integration, the Conviction Score, the R-based TP/SL ladder and the live win-rate engine are my own original work. No third-party or copied code is used.
◆ LIMITATIONS
This is a trend/volatility tool, not a complete system — always confirm with price action and risk management.
Like all trend-following tools, it can chop in tight ranges; the regime filter reduces but cannot eliminate this.
The fixed-R stop in the ladder is a planning aid (constant 1R), separate from the trailing adaptive line — they are different stops by design.
The live win-rate is the indicator’s own TP1-vs-stop estimate; if a single bar tags both the stop and TP1 it is counted as a win, so treat the stat as indicative, not exact.
Past performance and live stats do not guarantee future results.
◆ NON-REPAINTING
Trend, regime, signals and stats are computed from confirmed bar data with no security() lookahead. A signal printed on a closed bar stays. As with any live tool, the forming bar updates in real time and settles on close.
Adaptive SuperTrend is an educational analysis tool, not financial advice. Always do your own research and manage risk. © LunqFX. Penunjuk

Fractal Dimension Index [JOAT]FRACTAL DIMENSION INDEX
A proper Higuchi-method Fractal Dimension Index that tells you whether the market is currently trending (D approaches 1.0 — a smooth, linear path), chopping (D approaches 2.0 — a noisy, plane-filling random walk), or somewhere in between. Unlike volatility, FDI does not care about how much price moved — it cares about how convoluted the path was getting there . That makes it the single cleanest regime-classification number in technical analysis.
What FDI measures
The fractal dimension of a curve is a number between 1.0 (a perfect line) and 2.0 (a curve dense enough to fill a plane). For price series:
D ≈ 1.0–1.4 — the price path is close to a straight line. The market is trending; momentum tools work, reversion tools don't.
D ≈ 1.4–1.6 — the path is in a transitional regime. Use neutral tools.
D ≈ 1.6–2.0 — the path is chaotic and self-intersecting. The market is chopping; reversion tools work, momentum tools whipsaw.
The Higuchi-paper canonical thresholds are 1.4 (trend) and 1.6 (chop); both are configurable.
Higuchi algorithm — done properly
The implementation is the standard Higuchi method:
For each k from 1 to k_max (configurable, default 8), compute the average curve length L(k) across k starting offsets, normalised by the window length N.
Build the k_max pairs (log k, −log L(k)) .
Fit a least-squares line through those pairs; the slope is the fractal dimension D .
Apply optional EMA smoothing (configurable, default 5 bars) to suppress per-bar jitter.
A minimum-valid-pairs guard (default 3) prevents D from being computed when too few (k, L) pairs are finite, and a warmup-bars gate (default 50) prevents wild D values on sparse early data.
Regime classification with hysteresis
Raw D is mapped to one of three regimes — Trending / Random / Chop — using the two-threshold scheme. Two extra alert thresholds ( Extreme Trend D < 1.30 and Extreme Chop D > 1.70) flag the high-conviction tail cases.
Visual system
Background tint by regime — pastel mint for trend, coral for chop, cream for random. Transparency configurable (default 88, institutional-subtle).
Regime-change markers — tiny up/down/circle glyphs above price at every confirmed flip.
Optional candle tinting by regime (off by default to preserve user's chart style).
Optional D-line companion — when enabled, the smoothed D is plotted as a series. Because the script is overlay, pin the line to its own scale (right-click → Pin to scale → No Scale). For a true sub-pane, add the indicator a second time and drag that instance into a new pane.
Right-side floating label — anchored N bars right of the live close showing current D and a regime glyph. Configurable size, offset, regime text.
Optional reference horizontal lines at D = 1.4 / 1.5 / 1.6 when the D-line is shown.
A locked Pastel palette (mint trend / coral chop / cream random on a warm-white ground) gives the indicator a distinctive soft-institutional look.
Dashboard
Monospaced table positionable to any of nine corners. Surfaces:
Current D value and smoothed D value.
Regime classification with glyph.
Bars in current regime.
Distance to nearest threshold.
Extreme-state badge when in tail regions.
Alerts
Four alert conditions, each independently controllable:
Regime Flip (any classification change)
Extreme Trend (D crosses below 1.30)
Extreme Chop (D crosses above 1.70)
D Series Crosses 1.5 (the random-walk centre)
How to read it
Two reads, in order of conviction:
Regime classification + bars in regime — the more bars the current regime has persisted, the more reliable the read. Brand-new flips can flicker; multi-bar confirmed regimes do not.
Extreme regime alerts — when D crosses below 1.30, the market is in an extremely directional regime — momentum trades are the highest-conviction setups. When D crosses above 1.70, the market is in pathological chop — fade extremes, do not chase breakouts.
The single most useful workflow is to use FDI as a meta-filter — pair every signal-generating indicator with FDI regime. Trend signals from a momentum tool become high-conviction when D < 1.4; reversion signals from a Z-score oscillator become high-conviction when D > 1.6. The Suggested JOAT Indicator dashboard rows in Hurst Regime Sentinel and Entropy Oscillator follow exactly this principle.
Suggested settings
Defaults (window 30, k_max 8, EMA smoothing 5, warmup 50) are tuned for 15m–1H. For lower timeframes drop window to 20 and EMA to 3. For HTF (4H+) raise window to 50 and EMA to 8. The Higuchi-paper thresholds (1.4 / 1.6) are intentionally classical — tighten only if you find the regime classification too sensitive on your instrument.
Originality / what's reused
The Higuchi fractal-dimension algorithm is the textbook 1988 method — a public-domain piece of applied mathematics, implemented from the paper. The implementation here — the bounded-loop Higuchi pipeline with minimum-pairs guard and warmup gate, the two-threshold regime classifier with extreme-tail alerts, the pastel-palette regime tint, the pin-to-scale D-line companion logic, the right-side floating label, and the dashboard — is JOAT-original. No third-party code reused.
Open source
Published open-source under the default Mozilla Public License 2.0. The Higuchi loop, the regime classifier, the alert logic, and the dashboard are isolated modules — adapt any single piece without reading the whole file. Forks welcome with credit.
Limitations
Higuchi D is statistical — it tells you about recent path complexity , not future direction. A trending regime (D < 1.4) does not say which way; it says momentum tools should work. Combine with a directional indicator. The algorithm uses bounded Pine loops; very large window values increase compile cost. D is smoothed (EMA-filtered) by default, which trades some lag for substantially reduced flicker; turn smoothing off to see raw D.
—
-made with passion by jackofalltrades
Penunjuk

Edo VWAP CoreEdo VWAP Core — Fair-Value Reading Built on Weekly and Monthly Anchored VWAP with Standard Deviation Bands, Premium/Discount States, Sigma Distance and Information Panel
The volume-weighted average price is, within any given period, the closest thing to an asset's fair value: it is the price every participant has actually paid, weighted by the volume traded on each candle. Whoever buys well above it is paying a premium relative to the market as a whole; whoever buys below is getting a discount. The session VWAP captures only one day and resets too often to be useful for swing work; anchoring the calculation to a higher horizon turns that same idea into a stable reference for positioning.
Edo VWAP Core builds on that principle by anchoring the VWAP to two horizons at once — the current week and the current month — and framing each line with standard deviation bands. On its own, an anchored VWAP is just a line. With Edo VWAP Core, that line gains a premium/discount state classification, a sigma-distance reading, deviation bands that delimit the cheap and expensive zones, a translucent fill between price and VWAP that switches colour with the active state, and an information panel that condenses the whole quantitative reading. Five coordinated layers on a single overlay, designed to answer one question continuously: is price trading expensive or cheap relative to what the market has actually paid?
WEEKLY AND MONTHLY ANCHORED VWAP
The indicator draws two anchored VWAPs simultaneously. The weekly line resets at the start of each new week and accumulates, candle by candle, the volume-weighted typical price up to the current moment; it is the main operational reference, plotted in blue. The monthly line resets at the start of each new month and accumulates the volume of the entire current month, so it runs slower and more stable, plotted in orange and providing the higher-horizon context. Both are calculated internally with the close of each candle of the active timeframe, so they do not depend on higher-timeframe functions and do not repaint: once a candle closes, its contribution to the VWAP is fixed. The default typical price source is hlc3, the standard input for VWAP.
The relationship between the two lines describes the value structure of the asset. Weekly above monthly with price above both reads as premium with buying pressure dominant across both horizons; weekly below monthly with price below both reads as sustained discount; price caught between the two lines is a transition zone with no clear value bias between the week and the month.
STANDARD DEVIATION BANDS
Around each VWAP the indicator draws two pairs of volume-weighted standard deviation bands, calculated consistently with the VWAP itself: the ±1σ pair delimits the normal fluctuation zone, and the ±2σ pair delimits the extreme zone, where price is statistically very far from fair value. The bands are what turn the VWAP from a simple line into a measurable value scale — they quantify how expensive or cheap price is trading in terms of standard deviations. The area between +1σ and +2σ is shaded warm (the premium zone), the area between −1σ and −2σ is shaded cool (the discount zone), and the central ±1σ band carries a faint tone of the VWAP colour to mark the equilibrium region. Band widths reflect the volatility of the period: the wider the bands, the more volatile the move.
PREMIUM / DISCOUNT STATE CLASSIFICATION
The indicator classifies each bar into one of five exclusive states according to the position of the close relative to the reference VWAP and its bands. Premium Extreme: close above +2σ, upside overextension. Premium: close between +1σ and +2σ, price trading expensive. Neutral: close within ±1σ, fair value around the VWAP. Discount: close between −1σ and −2σ, price trading cheap. Discount Extreme: close below −2σ, downside overextension. The colour code follows the classic premium/discount logic — warm tones for the expensive zone, cool tones for the cheap zone — and the state is reflected simultaneously in the price-VWAP fill, in the panel and, optionally, in the chart background and the candle colouring. The panel accompanies the state with a bar counter showing how many consecutive candles price has spent in it; a high counter inside Premium Extreme or Discount Extreme signals a sustained overextension.
By default the state is calculated over the weekly VWAP as the reference. If the corresponding input is disabled, the state is computed over the monthly VWAP instead, and the panel header indicates which one is in use with a "W ref" or "M ref" label.
SIGMA DISTANCE AND PRICE-VWAP FILL
Sigma distance is the central quantitative measure: it expresses how many standard deviations separate the current close from the reference VWAP, computed as the close minus the reference VWAP divided by the reference standard deviation. A positive value means price is above the VWAP (premium), a negative one below (discount). Because it is normalised, it behaves like a z-score — a reading of +2σ means the same on one asset as on any other, regardless of absolute price — which lets the degree of overextension be compared homogeneously across instruments. Between price and the reference VWAP the indicator draws a translucent fill in the colour of the active state, warm in premium, cool in discount, neutral around fair value, so the value condition of the asset is legible at a glance without consulting the panel; its opacity is configurable.
INFORMATION PANEL
The panel condenses the whole reading into a compact three-column table. Its header shows the active reference VWAP. It displays the current State with its colour and consecutive-bar counter; the σ Dist reading in standard deviations; the weekly VWAP value with an up/down arrow depending on whether price is above or below it, plus its ±1σ and ±2σ band levels; and the same block for the monthly VWAP with its own bands. The panel can be placed in any of the four chart corners and resized to Small or Medium, with Dark and Light themes to blend with the chart background. It can also be hidden entirely.
CONFIGURATION
The inputs are grouped by functional block. The Anchors block toggles the weekly and monthly VWAP independently, sets the price source (hlc3 by default) and the line width. The Bands block enables the deviation bands, sets the inner and outer multipliers (1.0 and 2.0 by default), the fill opacity, and which VWAP drives the state classification (weekly by default). The State block governs the visual translation of the state — background colouring, background opacity, candle painting, the price-VWAP fill and its opacity. The Style block exposes the five state colours, the weekly and monthly line colours and the Dark/Light theme, and the Panel block controls panel visibility, position and size. The defaults are calibrated to work without adjustment on stocks, crypto, forex, indices and futures; the only parameter most users touch is the band multipliers when adapting the value scale to a particularly volatile asset.
ALERTS
Nine predefined alert conditions cover every meaningful event: Premium Extreme, Premium, Neutral, Discount and Discount Extreme fire when price enters the corresponding state; Cross Above VWAP and Cross Below VWAP fire when price crosses the reference VWAP; and New Weekly Anchor and New Monthly Anchor fire when a new period begins and the corresponding VWAP resets. The two extreme-state alerts are the most useful for detecting overextensions, the VWAP cross alerts warn of bias changes relative to fair value, and the anchor-reset alerts flag when the reference has refreshed and the context should be reassessed. State-change alerts are best configured on bar close.
HOW TO READ IT
A clean reading combines the layers into common patterns. Mean reversion from an extreme: price reaches Premium Extreme or Discount Extreme beyond ±2σ and the bar counter grows — moves that far from fair value statistically tend to correct back toward the VWAP, so any entry against that direction starts from a high-risk zone. VWAP as dynamic support or resistance: in healthy trends price drifts toward the premium or discount zone, pulls back to the reference VWAP and bounces without losing it, the line acting as dynamic support in an uptrend or resistance in a downtrend, with the fill making the pullbacks visible. Weekly-monthly confluence: when both VWAPs and their bands overlap in the same price zone, that region gains weight — a discount that coincides with the weekly −1σ and the monthly VWAP is a far more solid value zone than one touching a single reference. VWAP reclaim after discount: price trading cheap reclaims the reference VWAP with an impulse candle, the fill flips colour and the state shifts from Discount to Neutral, marking the moment the asset stops trading cheap and returns to fair value — a value-bias change that often accompanies bullish resumptions.
OPEN SOURCE
Edo VWAP Core is published as a free open source indicator. The full Pine Script is publicly accessible on TradingView for study, adaptation and integration into any workflow. Part of the Edolab Markets free tools ecosystem alongside Edo SuperTrend Core, Edo Multi Stoch, Edo Liquidity Zones, Edo Ichimoku State and more available on TradingView.
This indicator is a technical analysis tool for educational and informational purposes only. It does not generate automatic buy or sell signals and should not be considered financial advice. Trading financial markets involves significant risk of capital loss. Past performance does not guarantee future results. Always use proper risk management. Penunjuk

Strategi

Penunjuk

Market Structure [Proozac]Market Structure — HH · HL · LH · LL
Labels every significant swing as a Higher High, Higher Low, Lower High, or Lower Low, then draws Break of Structure (BOS) and Change of Character (CHoCH) lines automatically. The result is a clean structural map of the market directly on the price chart, with no manual markup required.
How it works
The indicator uses Pine's built-in pivot detection to find confirmed swing highs and lows. A swing is only confirmed after `Swing Length` bars have closed on each side — meaning labels always appear slightly to the left of the current bar, which is the correct behavior for non-repainting detection.
Pivot High logic:
- If the new swing high is above the previous swing high → labeled **HH** (bullish continuation)
- If the new swing high is below the previous swing high → labeled **LH** (bearish continuation)
- When a HH forms after a bearish trend → a **CHoCH** line is drawn (first sign of structural flip)
- When a HH forms during an already-bullish trend → a **BOS** line is drawn (continuation confirmed)
Pivot Low logic:
- If the new swing low is below the previous swing low → labeled **LL** (bearish continuation)
- If the new swing low is above the previous swing low → labeled **HL** (bullish continuation)
- When a LL forms after a bullish trend → **CHoCH** (structural reversal signal)
- When a LL forms during a bearish trend → **BOS** (continuation confirmed)
The zig-zag line connects consecutive pivot points in chronological order, giving a quick visual read of the overall swing sequence.
Visual output
- 🟢 HH label (above bar) → Higher High — bullish structure
- 🟢 HL label (below bar) → Higher Low — bullish pullback held
- 🔴 LH label (above bar) → Lower High — bearish structure
- 🔴 LL label (below bar) → Lower Low — bearish continuation
- 🔵 Dashed line + BOS +/− label → Break of Structure (trend continuation)
- 🟠 Dashed line + CHoCH +/− label → Change of Character (potential reversal)
- Gray zig-zag line → swing sequence connector
- Subtle background tint → green during bullish bias, red during bearish bias
- Live label on last bar → current structural bias ("Bullish" / "Bearish" / "Undefined")
Configurable parameters
Detection
- Swing Length — number of bars required on each side to confirm a pivot (default 10). Lower values = more sensitive, more noise. Higher values = fewer but more significant pivots
- Show Zig-Zag — toggle the connecting line between swings
- Show BOS / CHoCH — toggle the structural break lines and labels
Labels
- Individual toggles for **HH**, **HL**, **LH**, and **LL** labels
Colors
- Bullish Structure — color used for HH and HL labels (default teal)
- Bearish Structure — color used for LH and LL labels (default red)
- Zig-Zag Line — color of the swing connector
- BOS — color for Break of Structure lines (default blue)
- CHoCH — color for Change of Character lines (default orange)
Recommended use
Start with the default swing length of 10 on your primary timeframe and only adjust if the swing count feels too noisy (lower it) or too sparse (raise it). On 15m and 1H charts, 10 works well for most instruments. On daily charts, consider dropping to 5–7.
CHoCH is the early signal — it's the first opposite-direction structural break after a trend. BOS confirms the new trend is continuing. The highest-probability setups occur when you see a CHoCH, then a pullback that holds as a HL or LH, followed by a BOS in the new direction.
Pair this indicator with the Liquidity Sweep Detector: a sweep of the last HL (in a bullish structure) followed by a BOS to the upside is one of the cleanest confluences available in price action trading.
Penunjuk

Penunjuk

Penunjuk

Penunjuk

High Volume Pivot Support & Resistance Zones [BigBeluga]High Volume Pivot Support & Resistance Zones is a market-structure indicator built for TradingView. It helps traders find key support and resistance levels by looking for major pivot points backed by institutional volume.
Instead of drawing simple unweighted lines, this tool tracks the volume of swing highs and lows. When a high-volume pivot is found, the script creates a dynamic zone box on your chart and fits a live Cumulative Volume Delta (CVD) trendline inside it. This lets you monitor real-time buying and selling pressure exactly where the market is most likely to reverse.
🔵 MAIN ENGINE & VOLUME ZONE LOGIC
1. Volume-Validated Pivots
Swing Isolation Fields: The tool uses customizable lookback settings ( Resistance/Support Pivot Length ) to find prominent structural swing highs and lows.
Institutional Volume Filters: Every new swing point is checked against a volume baseline ( Volume MA Length ). A zone is only plotted if the pivot bar's volume beats the baseline multiplier ( Volume Threshold Multiplier ), filtering out weak retail moves.
2. Embedded Zone CVD Lines
Intra-Box Order Flow Tracking: The script counts the volume delta (buying volume minus selling volume based on candle closes) from the exact bar the pivot formed.
Normalized Inside the Box: Using custom polylines, the script scales and plots the rolling CVD trend directly inside the height of the zone box. This lets you see order-flow accumulation without cluttering your screen with bottom dashboard panels.
Live Labels: A small text readout updates on the leading edge of the box, showing the current net CVD volume.
// Normalize and scale running CVD values perfectly inside the zone box coordinates
normalizeDeltaToBox(float currentDelta, float minDelta, float maxDelta, float boxBottom, float boxTop) =>
float rangeDelta = maxDelta - minDelta
float rangeBox = boxTop - boxBottom
rangeDelta == 0 ? boxBottom + rangeBox / 2 : boxBottom + (currentDelta - minDelta) / rangeDelta * rangeBox
🔵 DYNAMIC ZONE FLIPS & SIGNALS
1. Support and Resistance Flips
Automatic Re-Coloring: When a strong candle close breaks entirely through a zone, the script changes its role. Broken resistance boxes switch to your Support Zone Color (yellow), and broken support boxes turn into your Resistance Zone Color (blue).
Border Style Changes: The box outline instantly switches from a solid line to a dashed line the moment a zone is breached, flagging a clear shift in institutional liquidity.
2. Retest and Breakout Plots
Breakout Arrows: The system prints clean triangle up or down arrows ( ▲ or ▼ ) on your chart labeled "Res Breakout" or "Sup Breakdown" the exact bar a zone boundary fails.
Proximity Retest Shapes: It plots tiny circle markers when price pulls back to successfully test a normal support/resistance hold. If price tests a broken zone that has reversed roles, it prints a diamond marker to flag an advanced flipped S/R retest.
// Zone Breakout and Role Inversion Logic snippet
if close > rTop
box.set_bgcolor(lastResBox, color.new(supColor, 90))
box.set_border_color(lastResBox, supLine)
box.set_text_color(lastResBox, supLine)
box.set_border_style(lastResBox, line.style_dotted)
if not resBroken
triggerResBreak := true
resBroken := true
🔵 TRADING STRATEGIES & RISK
CVD Absorption Entries: When price rallies up into a blue resistance box, check the internal dotted CVD line.
If price pushes high into the box but the internal CVD trend slopes down, sellers are absorbing the buy orders. This sets up a high-probability short entry.
Flipped Support Re-Entries: When a bullish breakout triggers a "Res Breakout" arrow, wait for price to pull back to the top border of the broken box. A clean bounce marked by a diamond shape confirms the old resistance has flipped to support, offering a safe continuation trade.
Clear Risk Invalidation floors: You can use the exact borders of the generated boxes to place your stop loss. If you buy a support hold retest, your clear risk invalidation point sits right below the bottom line of that specific support box.
🔵 SETTINGS & CONFIGURATION
Pivot Geometry Controls: Easily fine-tune lookback lengths and volume multipliers to adapt the indicator for volatile crypto assets, indexes, or liquid forex pairs.
Visual Zone Overrides: Adjust background colors, transparency levels, and text label sizing to match your dark or light charting interface seamlessly.
Clean up your layout and trade with volume-weighted precision using the High Volume Pivot Support & Resistance Zones terminal. Penunjuk

US Sector Rotation vs SPY - Relative StrengthUS Sector Rotation vs SPY vergleicht die Performance der wichtigsten US-Sektor-ETFs mit dem S&P-500-Benchmark SPY.
Das Script dient dazu, relative Stärke und Schwäche einzelner Sektoren schneller zu erkennen. Dadurch lassen sich Marktrotationen besser einordnen und potenziell interessante Sektoren für die weitere Underlying-Auswahl identifizieren.
Enthalten sind unter anderem die großen US-Sektor-ETFs wie XLK, XLC, XLY, XLI, XLB, XLE, XLP, XLV, XLU, XLF und XLRE. SPY dient als Benchmark.
Das Script berechnet die Performance direkt im Pine Script. Deshalb sollte die TradingView-Skala regulär bleiben und nicht zusätzlich auf Prozent oder indexierte Darstellung umgestellt werden.
Funktionen:
Vergleich der absoluten Sektor-Performance
Darstellung der relativen Performance gegenüber SPY
wählbare Performance-Fenster: 21, 63, 126, 252 oder eigene Handelstage
Standardwert für eigene Handelstage: 90
Ranking-Tabelle nach relativer Stärke gegenüber SPY
Startpunkt-Markierung der Performance-Berechnung
optionale Endlabels mit Verbindungslinien
Interpretation:
Ein positiver Wert in der Spalte „vs SPY“ zeigt, dass der jeweilige Sektor den Gesamtmarkt im gewählten Zeitraum outperformt. Ein negativer Wert zeigt relative Schwäche gegenüber SPY.
Das Script ist kein Entry- oder Exit-Signal. Es ist als Analysewerkzeug gedacht, um Sektorrotation, relative Stärke und mögliche Underlying-Kandidaten besser vorzuselektieren.
Für Stillhalterstrategien wie Short Puts oder Bull Put Spreads kann die Ansicht helfen, Sektoren mit stabiler oder überdurchschnittlicher relativer Stärke zu identifizieren. Die finale Bewertung sollte jedoch immer zusätzlich Liquidität, IV Rank, Bid/Ask-Spreads, Unterstützungszonen, Earnings- und Eventrisiken sowie Positionsgröße berücksichtigen. Penunjuk

[ A L P H A X ] MERIDIAN - Session Intelligence EngineAlphaX MERIDIAN — Session Intelligence Engine: Multi-Session Range Tracking, Prior Session Break & Retest, Opening Range Breakout, Meridian Bounce & 7-Layer Confluence Scoring
AlphaX MERIDIAN is a professional-grade session-based trading system built around the foundational truth that institutional price delivery is not random across the clock — it is organized by session. The Asian session defines the overnight range. London breaks it. New York confirms the direction or reverses it. Every major intraday move originates from one of three specific events: a break and retest of the prior session's high or low, a breakout of the opening range, or a pullback to the session's meridian equilibrium level. MERIDIAN detects all three in real time across all three global trading sessions, scores every potential entry through a 7-layer confluence engine, and fires signals only when session bias, VWAP positioning, HTF alignment, volume, and setup quality all confirm simultaneously. The result is a system that puts every trade in its correct session context — not just where price is, but which session it is in , what the prior session established , and where the institutional session bias currently sits . Designed for active traders across forex, gold, indices, and crypto on M1 through H1 timeframes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌐 The Session Framework — Why Sessions Define Institutional Flow
Every liquid market is driven by three geographically separated groups of institutional participants operating in overlapping but distinct time windows: Asian banks and sovereign funds, European institutional desks and London market makers, and American institutional desks and New York banks. Each group has a characteristic trading behavior that shapes price during their active window.
Asian Session — The Range Builder:
During Asian hours, liquidity is thinner and price tends to consolidate or range within a defined high-low channel. The Asian session range represents the overnight consolidation — the zone where price equilibrates before the European open. The extremes of the Asian range are the first liquidity pools that London will target.
London Session — The Trend Initiator:
London is the world's most liquid trading session. European institutional desks frequently break the Asian range in the first hours of the London open — hunting the liquidity sitting above and below the overnight extremes before establishing the day's primary directional trend. The London opening range (the first N minutes of the session) frequently establishes the high or low of the day.
New York Session — The Confirmer or Reverser:
New York either confirms the London trend with continuation, or reverses the late-London move in the early New York hours. The London/NY overlap (typically 13:00–17:00 UTC) is the highest-volume period of the day and frequently produces the largest directional moves.
MERIDIAN is built around this three-session cycle. The prior session's high, low, and meridian are the key reference levels. The opening range of London or NY is the breakout reference. The session VWAP and meridian divide the current session into institutional premium (above) and discount (below). Every signal is evaluated in the context of which session it occurred in and what the prior session established.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⏱ Session Tracking Engine
MERIDIAN runs a fully independent session tracking system for all three global sessions simultaneously, configurable to any timezone.
Session detection:
Each session is defined by a configurable start and end hour in the selected timezone (default: UTC). The session engine detects the active session on every bar and correctly handles overnight sessions (sessions that span midnight). When no configured session is active, the system enters an OFF state and session-based calculations pause.
Session-by-session OHLC tracking:
From the first bar of each session, MERIDIAN tracks the rolling high, low, and open of the session in real time. Every new bar within the session extends these values — the session high and low expand with price, and the session meridian recalculates continuously as the range develops.
Session transition logic:
When a session changes, the completed session's high, low, and meridian are stored as the prior session reference. These prior session values persist until the next completed session overwrites them — giving you continuous access to the most recently completed session's key levels at all times.
Session VWAP (Volume Weighted Average Price):
A true session-anchored VWAP is computed from the first bar of each session — cumulative volume-weighted price divided by cumulative volume since the session open. This produces the purest possible VWAP calculation anchored to the correct institutional reference point: the session's opening bar.
Session Meridian (Equilibrium):
The midpoint of the current session's high-low range — (session high + session low) / 2. This level is the MERIDIAN line, plotted as a purple dotted line on the chart. It represents the current session's equilibrium — above is institutional premium, below is institutional discount, relative to where the session has traded.
Current session box:
The full range of the active session is visualized as a lightly tinted box extending from the session start bar to the current bar. Asian session boxes are gray, London boxes yellow-green tinted, and New York boxes red-tinted — providing immediate visual session identification across the chart.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📍 Prior Session Levels — The Institutional Reference Grid
The most important reference levels in intraday trading are the extremes established by the prior session. These are not arbitrary horizontal lines — they represent the boundaries of the range where an entire session's worth of institutional activity occurred. Breaking these levels is how one session's institutional participants establish control over the next session's price delivery.
Prior Session High (red dashed):
The highest price reached during the most recently completed session. This is the sell-side resistance level — the level above which bears were unable to sustain prices in the prior session. A close above this level in the current session is a significant break of prior institutional resistance.
Prior Session Low (yellow-green dashed):
The lowest price of the prior session. This is the buy-side support level — where buyers successfully defended price in the prior session. A close below this level represents a break of prior institutional support.
Prior Session Meridian (purple dotted):
The midpoint of the prior session's range. This level frequently acts as a magnet — price is drawn to the prior session's 50% level on pullbacks, retracements, and continuation moves. It represents the most-traded price zone of the prior session in range-position terms.
All three prior session levels are plotted as forward-extending lines covering the relevant history window. The prior session name (ASIAN / LONDON / NEW YORK) is displayed on the dashboard so you always know which session's levels you are referencing.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📦 Opening Range — The First N Minutes
The Opening Range (ORB) is one of the most consistently respected intraday reference structures across all liquid markets. It represents the range established in the first configurable number of minutes of the London or New York session (default: 30 minutes). Once the opening range is set, breakouts above and below its boundaries frequently produce the day's strongest directional moves.
How the opening range is built:
From the first bar of each London or New York session, MERIDIAN accumulates the highest high and lowest low across all bars that fall within the opening range time window. Once a bar falls outside the ORB time window, the range is locked — the ORB high and ORB low are fixed for the remainder of the session.
ORB visualization:
The completed opening range is rendered as an orange-tinted box on the chart, spanning from the first ORB bar to the last ORB bar. This box remains on the chart as a reference level for the session.
Dashboard ORB status:
The dashboard displays the ORB status as FORMING (while the range is still building) or SET (once locked), along with the exact ORB high and low prices. This gives you advance notice before the ORB is complete — you can watch it forming in real time and prepare for the Setup B breakout signal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Session Bias — VWAP and Meridian Positioning
MERIDIAN defines the current session's directional bias through two independent price positioning checks that together create a clear institutional bias reading.
VWAP bias:
Price above the session VWAP indicates institutional net-buying for the session — the volume-weighted average of all transactions favors the bull side. Price below indicates net-selling. The VWAP bias is updated on every bar as new volume flows in.
Meridian bias:
Price above the session meridian (the session range midpoint) means price is in the upper, premium half of the session range. Price below is in the discount half.
Combined session bias:
sessBull — price is both above VWAP and above the session meridian. Both the volume-weighted and range-position measures confirm bullish institutional bias
sessBear — price is both below VWAP and below the session meridian. Both measures confirm bearish institutional bias
This combined bias is the most important single dashboard reading in MERIDIAN. A bullish session bias means the institutional context favors long entries. A bearish session bias favors shorts. Entries against the combined session bias carry the highest failure rate of any MERIDIAN setup.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷 Three Setup Types — A, B, and C
MERIDIAN fires signals through three distinct setup configurations, each representing a different institutional entry scenario anchored to session-based reference levels. All three can be enabled simultaneously.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup A — Prior Session Break & Retest
The most institutionally significant setup type. Fires when:
The current session's price closes above the prior session high (long) or below the prior session low (short) — the structural break of the prior session's boundary
Within 30 bars of the break, price pulls back to within ATR tolerance of the broken level
A qualifying rejection candle forms at the retest — confirming the broken level has flipped from resistance to support (long) or support to resistance (short)
Why prior session break and retest is the highest-quality setup: When London breaks the Asian high and then retests it, the break has been confirmed as a genuine institutional breakout rather than a wick spike. The retest at the prior session level provides the optimal entry price — buying exactly at the prior resistance that has now become support, with the stop below the level and the continuation target above. This is the institutional "break, retest, continue" sequence that produces the cleanest risk/reward in session-based trading.
Break detection markers: Small semi-transparent circles appear above (prior high break) or below (prior low break) the bar that closes through the prior session boundary — alerting you that a pending retest setup is now active. The system tracks the pending retest for up to 30 bars. If no qualifying retest occurs within that window, the pending state expires.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup B — Opening Range Breakout
The high-momentum setup type. Fires when:
The opening range has been fully set (ORB locked after the opening range period has elapsed)
Price closes above the ORB high (long) or below the ORB low (short) — the first close-based break of the opening range boundary
The close is on the correct side of the prior bar's close relative to the ORB level — confirming the break is not a wick through and back
A qualifying bull or bear rejection candle (minimum 50% wick ratio) confirms the breakout bar's directional commitment
Why the ORB breakout is a high-conviction institutional signal: The opening range represents the indecision of the first N minutes of a session — the market testing price levels before committing to a direction. The first body close beyond the ORB boundary is the signal that the indecision has resolved and institutional order flow has committed to a direction. The rejection candle requirement ensures the break was not passive drift but a genuine directional conviction bar.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup C — Meridian Bounce
The continuation and trend-following setup type. Fires when:
The session bias is fully established (sessBull for long, sessBear for short)
Price pulls back to within ATR tolerance of the session meridian (the session range midpoint)
A qualifying rejection candle forms — confirming the meridian held and price is rejecting back in the bias direction
Why the meridian bounce is a reliable continuation entry: In a trending session where price is above VWAP and above the session midpoint (sessBull), the meridian represents the natural pullback target — the highest-volume price zone within the session's lower half. Institutional buyers who missed the initial move use meridian pullbacks to add to positions. The rejection at the meridian in a sessBull environment is the continuation entry that offers the tightest stop (just below the meridian) with the continuation toward the session high as the target.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 The 7-Layer Confluence Engine
Every potential entry across all three setup types is scored through the same 7-layer confluence engine. The minimum default is 5 of 7.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 1 — Session Bias (Combined)
Awards 1 point when the combined session bias (sessBull for long, sessBear for short) agrees with the signal direction. This requires both VWAP positioning and meridian positioning to be aligned — the strongest single session-level directional indicator available.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 2 — VWAP Positioning
Awards 1 point when price is on the correct side of the session VWAP — above for longs, below for shorts. The VWAP layer is available independently from the combined session bias layer. On bars where price is above VWAP but below the meridian (or vice versa), the session bias may not score but the VWAP layer still contributes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 3 — HTF Bias
Awards 1 point when the higher timeframe EMA structure (default: 60-minute, 21/55 EMA pair) agrees with the signal direction. Ensures the session-level setup is aligned with the macro institutional flow. A session setup against the HTF trend carries the highest failure rate of any setup type.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 4 — Trading Session Enabled
Awards 1 point when the current session is one of the configured tradeable sessions (London and NY on by default, Asian off by default). This layer enforces session selectivity — preventing signals from firing during sessions you have chosen not to trade. If the Asian session is disabled for trading, Asian session signals are blocked at this layer regardless of how strong the other confluences are.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 5 — Volume Expansion
Awards 1 point when the current bar's volume exceeds the volume moving average by the configured minimum multiplier (default: 1.1×). Confirms that the rejection candle or breakout bar has genuine institutional participation behind it — not a low-volume drift through a reference level.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 6 — Rejection Candle Quality
Awards 1 point when a qualifying bull or bear rejection candle is present. Bull rejection requires a bullish close with the close-to-low distance exceeding 50% of the bar range. Bear rejection requires a bearish close with the high-to-close distance exceeding 50%. This layer ensures the reference level produced a visible, decisive price rejection — not a passive touch.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 7 — Setup Type Trigger
Awards 1 point when any of the three enabled setup types fires on the current bar — a prior session retest (Setup A), an ORB breakout (Setup B), or a meridian bounce (Setup C). This layer is both a confluence score contributor and a hard prerequisite — no signal can fire without at least one setup type triggering.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🕯 Rejection Candle Confirmation
All three setup types require a qualifying rejection candle for a signal to fire. Two candle types qualify:
Bull rejection: A bullish close (close above open) where the distance from close to bar low exceeds 50% of the total bar range. The bar closed in its upper half — buyers dominated and rejected the level being tested.
Bear rejection: A bearish close where the distance from bar high to close exceeds 50% of the total range. The bar closed in its lower half — sellers dominated the rejection.
The same 50% wick threshold applies across all three setup types, ensuring every MERIDIAN signal has a consistent, minimum candle quality standard regardless of which session event triggered it.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Session-Anchored Stop Loss Placement
MERIDIAN places the stop loss at the most conservative of several session-based reference levels, plus an ATR buffer.
For bull signals: The stop is placed at the minimum of the current bar's low, the prior session high (the retested level), the ORB low (if applicable), and the session meridian — whichever is lowest — minus the configured ATR buffer (default: 1.0× ATR). This ensures the stop is beyond the level that would structurally invalidate the signal.
For bear signals: The stop is at the maximum of the current bar's high, the prior session low, the ORB high, and the session meridian, plus the ATR buffer.
Dynamic TP target: The take profit is computed as `risk × R multiple` (default: 2.5R) from the entry close — adapting to the actual stop distance rather than using a fixed ATR projection. On entries where the session reference stop is very close to entry, this naturally produces a tighter target; on wider stops, the target scales accordingly.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The 16-row real-time dashboard displays the complete internal state across five sections.
SESSION
Active — the currently active session: ASIAN, LONDON, NEW YORK, or OFF
VWAP Bias — ▲ ABOVE or ▼ BELOW, showing whether price is above or below the session VWAP. Color-coded yellow-green and red
Meridian — the exact price of the current session's equilibrium midpoint (session high + low / 2), color-coded purple
PRIOR SESSION
Prior Sess — which session completed most recently: ASIAN, LONDON, or NEW YORK
Prior Hi / Lo — the exact high and low of the prior session displayed as a price pair. These are the Setup A reference levels
OPENING RANGE
ORB Status — FORMING (still within the ORB time window) or SET (locked, breakout mode active). Orange when SET
ORB Hi / Lo — the exact opening range high and low prices once the range is locked
FILTERS
HTF Bias — higher timeframe EMA alignment: ▲ BULL, ▼ BEAR, or — FLAT
CONFLUENCE
Bull Score — live 0–7 score. Background highlights yellow-green when threshold is met
Bear Score — live 0–7 score. Background highlights red when threshold is met
Live confluence label: During active sessions, a small label near the session box displays B x/7 · S x/7 in real time, updated every bar — identical to ANCHOR, PIVOT, and the other systems in the AlphaX suite.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
Current Session Box — a lightly tinted box covering the full range of the active session from its first bar to the current bar. Gray for Asian, yellow-green tinted for London, red tinted for New York
Session VWAP (cyan) — the volume-weighted average price anchored to the session start, plotted as a solid cyan line. The most important intraday reference for institutional fair value
Session Meridian (purple dots) — the session range midpoint (50% of the current session's high-low range), continuously updated
Prior Session High (red dashed) — the completed prior session's high. Setup A reference level for long setups
Prior Session Low (yellow-green dashed) — the prior session's low. Setup A reference level for short setups
Prior Session Meridian (purple dotted) — the midpoint of the prior session's range
Opening Range Box (orange tinted) — the locked ORB from the session start to the end of the opening range period. Setup B reference box
● Break markers (semi-transparent circles) — appear above the bar (prior high break) or below (prior low break) at the moment of the structural break, signaling a pending retest opportunity
▲ Triangle (below bar, yellow-green) — long signal. All conditions confirmed across any of the three setup types
▼ Triangle (above bar, red) — short signal
Live confluence label — B x/7 · S x/7 near the current session range on the last bar
SL Guide (red dotted circles) — session-anchored stop loss reference level
TP Guide (yellow-green dotted circles) — dynamically computed reward target
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX MERIDIAN — Step by Step
Step 1 — Begin Each Session with a Reference Review
At the start of each London or NY session, check the dashboard for Prior Hi / Lo — these are your key Setup A reference levels for the session
Note the ORB Status — during the first 30 minutes of London or NY, watch the ORB forming. The ORB Hi / Lo will be your Setup B breakout reference once SET
Check HTF Bias — does the higher timeframe trend favor longs or shorts? This is the filter that determines which direction's signals you prioritize
Step 2 — Monitor Session Bias Development
As the session opens and develops, watch the VWAP Bias and Meridian rows on the dashboard. When both show ▲ ABOVE, the session bias is fully bullish — prioritize long setups. Both ▼ BELOW = prioritize shorts
Watch the live B/S score label near the session box. When the bull or bear score approaches the threshold, a signal may be imminent
Step 3 — Enter on the MERIDIAN Signal
A ▲ triangle below the bar confirms one of the three setup types has fired with sufficient confluence
Read the signal context: did price just retest the prior session high? Break the ORB? Bounce from the session meridian? The setup type determines which level your stop references
The SL and TP guides appear as dotted circles. The SL is the session-anchored structural stop. The TP is the R-multiple target
Setup A retests are the highest-quality entries — the prior session level has been validated as the new support/resistance. Setup B ORB breaks are highest-momentum. Setup C meridian bounces are best in strongly trending sessions
Step 4 — Manage Within the Session Context
Watch the session VWAP as the trade develops — price returning to VWAP during a long trade is a warning sign that session bias may be weakening
If the session meridian switches sides (price moves from above to below the session midpoint), the session bias has flipped. Consider tightening the stop or taking partial profit
Session transitions are exits: if London closes while you are in a trade, the session reference levels will update to New York levels on the NY open. Reassess the position in the context of the new session
Step 5 — End of Session Reset
At session end, the current session's high, low, and meridian become the prior session reference for the next session
The ORB resets for the new session's opening
Review the completed session's range and meridian before the next session opens — these become your Setup A reference levels going forward
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Low-Quality Conditions — When Not to Trade
Stand aside when:
Session shows OFF — no active session is being tracked. All signals are blocked and session reference levels may be stale
Session bias is split — VWAP and Meridian disagree — price above VWAP but below the session meridian (or vice versa) means the session has no clear institutional direction. The combined session bias layer will not score, reducing confluence quality
HTF Bias opposes the session bias — a bullish session bias against a bearish HTF means the current session is moving counter to the macro trend. These setups carry significantly higher reversal risk
ORB Status shows FORMING — the opening range has not been locked. No Setup B signals can fire. Do not anticipate the ORB breakout before the range is set
Prior Hi / Lo shows — on the dashboard — no completed prior session data is available. Setup A setups cannot fire. This occurs at the start of the first session after the chart loads
Confluence score is at minimum threshold exactly — when the score is at exactly the minimum and one or two filters are failing, the setup is borderline. Reduce position size or wait for a higher-quality signal
Multiple setup types firing simultaneously in the same direction — this is usually a positive signal, but verify the session context. If the ORB breakout, prior session retest, and meridian bounce are all triggering at the same time in the same bar, one of them is likely being triggered by coincidental price overlap rather than genuine session mechanics
The ideal MERIDIAN setup:
London or NY session active with tradeSessOk confirmed
HTF Bias and Session Bias both aligned in the same direction
Prior session high or low recently broken (Setup A pending) OR ORB locked and ready for Setup B
Price returning to the reference level with VWAP and Meridian both on the correct side
Strong rejection candle with volume above average
Confluence score at 6/7 or 7/7
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🌐 Three-session tracking engine — Asian, London, and New York sessions tracked simultaneously with configurable start/end hours and timezone support
📊 Session-anchored VWAP — true cumulative VWAP computed from the first bar of each session, providing the most accurate institutional fair value reference per session
📍 Prior session levels — high, low, and meridian of the most recently completed session maintained and displayed as dashed reference lines
📦 Opening Range Box — first N minutes of London/NY captured as an orange ORB box with live FORMING / SET status. Breakout reference for Setup B
⚖ Session Meridian (Equilibrium) — the session range midpoint plotted as a purple dotted line, the equilibrium level for Setup C bounces and the combined session bias divider
🏷 Three setup types — Setup A (Prior Session Break & Retest), Setup B (Opening Range Breakout), Setup C (Meridian Bounce) — all configurable independently
🔮 Pending retest tracking — 30-bar retest window after every prior session break, with break circle markers at the moment of the structural break
🧠 7-layer confluence engine — Session Bias, VWAP Position, HTF Bias, Trading Session Gate, Volume Expansion, Rejection Candle, and Setup Type Trigger scored independently every bar
📊 Live confluence label near the session box — B x/7 · S x/7 updating in real time on the current bar
🎯 Session-anchored stop loss — stop placed at the most conservative of multiple session reference levels, not a fixed ATR distance
💹 Dynamic R-multiple TP target — computed as risk × R multiple, adapting to the actual stop distance
📡 HTF EMA bias filter — dual-condition higher timeframe alignment (EMA crossover + price confirmation)
⏱ Session trading filter — independently enable or disable signal firing for each of the three sessions
🎨 Session-coded color system — session box tints differentiate Asian (gray), London (yellow-green), and New York (red) at a glance
📊 16-row live dashboard — Session, Prior Session, Opening Range, Filters, and Confluence sections updated in real time
🔔 6 alert conditions — long/short entry, prior high/low break, ORB long/short breakout
⚙ Fully configurable — all session hours, timezone, ORB duration, setup type enables, confluence minimum, HTF timeframe and EMAs, volume filter, session trading gates, SL buffer, R-multiple target, and all colors are independently adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Session Engine
Session Timezone — UTC / America/New_York / Europe/London / Asia/Tokyo. Set to your preferred reference timezone
Track Asian Session — toggle Asian session tracking on or off
Asian Start / End (hour) — hour boundaries for the Asian session in the selected timezone (defaults: 0 / 8)
Track London Session — toggle London session tracking
London Start / End (hour) — hour boundaries for London (defaults: 8 / 13)
Track NY Session — toggle New York session tracking
NY Start / End (hour) — hour boundaries for NY (defaults: 13 / 21)
Opening Range (mins) — the number of minutes from the session open used to build the ORB (default: 30)
Entries & Confluence
Setup A · Prior Session Break & Retest — toggle the break-and-retest setup type
Setup B · Opening Range Breakout — toggle the ORB breakout setup type
Setup C · Meridian Bounce — toggle the session equilibrium bounce setup type
Retest Tolerance (xATR) — maximum ATR distance from the reference level that still qualifies as a retest (default: 0.35)
Min Confluence Layers (of 7) — minimum score to fire a signal (default: 5)
Show Entry Signals — toggle signal triangles
Show Confluence Label — toggle the live B/S score label near the session box
Signal Cooldown (bars) — minimum bars between consecutive signals (default: 6)
Filters
HTF Trend Filter — toggle the higher timeframe EMA alignment requirement
HTF Timeframe — the higher timeframe for EMA data (default: 60-minute)
HTF Fast / Slow EMA — EMA periods on the HTF (defaults: 21 / 55)
Volume Confirm — when on, entry volume must exceed the average by the minimum multiplier
Min Volume vs Avg — minimum volume ratio (default: 1.1)
Volume Avg Length — SMA length for volume baseline (default: 20)
Trade London Session — when on, signals can fire during London hours
Trade NY Session — when on, signals can fire during NY hours
Trade Asian Session — when on, signals can fire during Asian hours (default: off — Asian sessions typically produce lower-quality setups)
Exit Guidance
ATR Length — ATR calculation lookback (default: 14)
Show SL / TP Guides — toggle stop and target dotted circle plots
SL Distance (xATR) — ATR buffer added beyond the session-anchored stop reference (default: 1.0)
TP Reward (R) — take profit as a multiple of the actual risk from entry to stop (default: 2.5)
Display
Show Current Session Box — toggle the session range box
Show Prior Session H/L — toggle prior session high, low, and meridian dashed lines
Show Session VWAP — toggle the session VWAP line
Show Opening Range Box — toggle the ORB orange box
Show Dashboard — toggle the full dashboard panel
Dashboard Position — Top Left / Top Right / Bottom Left / Bottom Right
Colors
Bull / Bull Bright — yellow-green family for all bullish signals and London session elements
Bear / Bear Bright — red family for all bearish signals and NY session elements
Opening Range — orange for ORB box and status indicators
Meridian / EQ — purple for session meridian, prior session meridian, and equilibrium elements
Session VWAP — cyan for the session VWAP line
SL Guide / TP Guide — stop and target circle colors
Dash Text / Dash BG / Dash Header / Dash Section / Dash Frame — full dashboard color control
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (6 total)
Entry Alerts
Meridian Long — all conditions confirmed. Long signal fired
Meridian Short — all conditions confirmed. Short signal fired
Structure Alerts
Meridian Break Prior High — price has closed above the prior session high. Setup A long retest window is now active — watch for the retest
Meridian Break Prior Low — price has closed below the prior session low. Setup A short retest window is now active
Opening Range Alerts
Meridian ORB Long — opening range broken to the upside with all setup and confluence conditions confirmed
Meridian ORB Short — opening range broken to the downside with all conditions confirmed
All alert messages are formatted as const strings for clean webhook and notification platform integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Recommended Settings by Instrument & Timeframe
The default configuration is optimized for XAUUSD, major forex pairs, and indices on M5–M15 in UTC timezone:
Session hours in UTC — gold and forex are most active during London (08:00–13:00) and NY (13:00–21:00) hours. Asian session trading is disabled by default for clean intraday setups
ORB at 30 minutes — the classic institutional opening range. The first 30 minutes of London and NY frequently establish the session's directional commitment
Retest tolerance at 0.35× ATR — sensitive enough to catch genuine retests on M5–M15 without requiring price to tick exactly at the level
TP Reward at 2.5R — session-based setups on gold and forex typically produce moves sufficient to achieve 2.5R when the session bias is correctly identified
For other instruments or timeframes, adjust:
M1–M3 scalping — reduce Cooldown to 3, reduce SL Buffer to 0.5, reduce TP Reward to 1.5–2.0, use tighter Retest Tolerance at 0.2
H1 intraday swing — increase ORB to 60 minutes (capturing the first full H1 candle), increase Retest Tolerance to 0.5, increase TP Reward to 3.5–4.0, set HTF to H4 or Daily
Crypto (BTC, ETH) — use UTC timezone, enable all three sessions (crypto trades 24/7), reduce retest tolerance to 0.25 for the narrower wicks typical of crypto support/resistance retests
Indices (NAS100, US30) — focus exclusively on NY session (13:30–20:00 UTC for US equity cash session), disable London trading for equity index instruments, tighten ORB to 15 minutes (the US equity opening range is frequently set in the first 15 minutes)
More signals — lower Min Confluence to 4, enable Asian trading, disable volume filter
Highest-quality only — raise Min Confluence to 6–7, enable only Setup A and B (disable meridian bounce), require London and NY only
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
⏱ Session traders and market structure players — MERIDIAN is the definitive session intelligence system. Every reference level, every bias indicator, and every signal type is anchored to the session clock
🥇 Gold (XAUUSD) and forex intraday traders — the three-session framework is most powerful on instruments where London and New York session transitions drive the most significant intraday moves. Default settings are calibrated for gold and major forex pairs
📊 Opening range traders — the ORB system provides a complete, rules-based opening range breakout framework with confluence scoring, volume confirmation, and rejection candle quality filtering
🎯 Break-and-retest traders — Setup A is the quantitative implementation of the prior session break and retest — the most reliable institutional intraday pattern across all liquid markets
🧠 Traders who use VWAP as a primary reference — the session-anchored VWAP and the VWAP-based bias scoring system make MERIDIAN the ideal companion for any VWAP-centric trading approach
📈 Traders who want session context on every trade — every signal label, every dashboard row, and every reference level in MERIDIAN tells you exactly where you are in the session cycle and what the institutional context is
⚠ Traders who struggle with time-of-day discipline — the session trading gates (enable/disable individual sessions) enforce time-of-day discipline automatically. If you do not trade the Asian session, disable it and no Asian signals will ever appear
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design. Session state, VWAP, meridian, ORB values, and confluence scoring all finalize on confirmed bars only
The session boxes and prior session lines are redrawn on the last bar only for chart performance. On very fast timeframes with long chart history, this redraw happens on every new bar's render — this is normal behavior for last-bar-only visual updates
The VWAP is a true session-anchored VWAP — it resets at each session's first bar and accumulates correctly through the entire session. It is not a daily VWAP or a rolling VWAP
The prior session data updates at session transitions. On the very first session after the chart loads, no prior session data may be available — the Prior Hi / Lo dashboard rows will show — until the first session completes
The 30-bar retest window for Setup A (prior session break and retest) starts from the bar of the break. If no retest occurs within 30 bars, the pending retest state expires. On slower timeframes (H1), 30 bars may cover many hours — consider reducing the window or accepting that H1 retests sometimes take longer to develop
Maximum 500 labels, 500 lines, and 50 boxes are rendered. With three sessions each potentially drawing boxes and lines, the limit is practically sufficient for standard chart history. On very long chart histories on very fast timeframes, the oldest visual elements may be removed by TradingView's rendering limits
The session timezone setting must match the timezone in which you want session boundaries defined. UTC is the default and recommended for instruments that trade globally. For US equity index traders, America/New_York may be more intuitive
The indicator does not connect to any broker or account — the dashboard and signals are purely analytical
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Disclaimer
This indicator is a technical analysis and visualization tool intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. All signals are generated from historical and real-time price data using mathematical calculations — their accuracy or profitability is not guaranteed. Past performance of any signal type does not guarantee future results. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before making any trading decisions. The author accepts no responsibility for any losses incurred from the use of this indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who understand that the market tells a different story in every session — and who want a system that reads each chapter in real time. Penunjuk

NLMS Volatility Trail [BackQuant]NLMS Volatility Trail
Overview
NLMS Volatility Trail is an adaptive trend-following overlay that combines a machine-learning style adaptive filter with a volatility-based trailing structure. It is built around the Normalized Least Mean Squares (NLMS) algorithm, then converts that adaptive estimate into an ATR-based trailing line designed to follow directional regimes while filtering out minor noise.
The indicator has two core layers:
An NLMS adaptive filter , which learns a dynamic price estimate from prior bars.
An ATR volatility trail , which converts that learned estimate into a step-like directional trailing structure.
The goal is to produce a trend line that is more adaptive than a traditional moving average and more structured than a raw adaptive filter. The NLMS engine learns the underlying price path, while the ATR trail adds volatility-aware confirmation so trend shifts only occur when the adaptive estimate moves meaningfully.
Core idea
Most trend filters use fixed smoothing rules. An EMA, SMA, WMA, or HMA always applies the same mathematical weighting scheme regardless of whether the market is trending, ranging, expanding, or compressing.
NLMS is different. It continuously updates its internal weights based on prediction error.
This means the filter is not just averaging price. It is constantly asking:
How well did the previous weighting structure predict the current bar?
How large was the error?
How should the weights adjust to reduce future error?
The second layer then takes that adaptive estimate and applies an ATR-based trailing mechanism around it. This creates a volatility-adjusted trend trail that reacts to confirmed shifts while ignoring smaller movements that do not exceed the range structure.
What NLMS is
NLMS stands for Normalized Least Mean Squares . It is an adaptive filtering algorithm from digital signal processing. It is closely related to the original LMS algorithm developed by Bernard Widrow and Ted Hoff, which became one of the foundational online learning methods used in adaptive systems.
Adaptive filters have historically been used in:
Noise cancellation
Echo cancellation
Telecommunications
Radar and sonar processing
Signal prediction
Control systems
The basic purpose is to estimate or predict a signal while continuously adapting to changing conditions.
In trading terms, this indicator uses NLMS to build a learned estimate of price from prior bars.
How the NLMS filter works
The filter uses a set of historical inputs called taps .
If taps = 72, the model uses the previous 72 bars:
source
source
source
...
source
Each tap has a learned weight.
The prediction is calculated as:
prediction = w1 × source + w2 × source + ... + wM × source
The filter then compares the prediction to the actual current source:
error = source - prediction
That error drives the weight update.
If the prediction was poor, the weights adjust more.
If the prediction was accurate, the weights adjust less.
This creates an adaptive estimate that evolves with market behavior.
Why it is normalized
The normal LMS algorithm updates weights based on the raw input and prediction error. The issue is that if the input signal becomes large or volatile, updates can become unstable.
NLMS solves this by dividing the update by the input power:
power = sum(source ²)
The update becomes:
w = w + (μ / (ε + power)) × error × input
This normalization makes the learning process more stable across different volatility environments.
When the input power is high:
Updates are scaled down.
The filter avoids overreacting.
When the input power is low:
Updates are allowed to remain meaningful.
This is why NLMS is better suited to markets than a basic adaptive filter. Markets constantly shift between quiet and volatile regimes.
Weight initialization
The script initializes all weights equally:
weight = 1 / M
This means the filter starts with an SMA-like prior. Before learning begins, every historical bar contributes equally.
Over time, the filter adapts away from that equal-weight baseline and learns its own weighting structure.
Inputs that control the NLMS engine
Filter Taps (M)
Controls how many historical bars the model learns from.
Higher taps:
More memory
Smoother adaptive estimate
Slower response to regime change
Lower taps:
Less memory
Faster reaction
More noise sensitivity
Step Size (μ)
Controls the learning rate.
Lower μ:
Slower learning
Smoother output
More stable
Higher μ:
Faster learning
More responsive
Can become noisy if too aggressive
This is one of the most important settings. It controls how quickly the model changes its internal weights.
Regularization (ε)
Prevents instability when input power is very low.
It acts as a stabilizer in the denominator:
ε + power
Higher values make updates more conservative.
Lower values allow stronger adaptation but can become less stable in quiet conditions.
From adaptive filter to volatility trail
The raw NLMS output is not plotted directly as the main trend line. Instead, it is passed into a volatility trailing structure.
The script builds an ATR band around the NLMS estimate:
Upper band = NLMS output + ATR × factor
Lower band = NLMS output - ATR × factor
Then it creates a trailing value that only updates when the NLMS band structure forces it to move.
This creates a trail that behaves similarly to a volatility stop, but the center is not price or hl2. It is the learned NLMS estimate .
ATR volatility trail logic
The trail starts from the NLMS output, then carries forward its previous value:
nlmsAtr := previous nlmsAtr
Then:
If lower band rises above the trail, the trail moves up.
If upper band falls below the trail, the trail moves down.
This creates a directional trailing structure:
In bullish regimes, the trail ratchets upward.
In bearish regimes, the trail ratchets downward.
It filters out small movements because price must move enough relative to ATR and the adaptive estimate to change the trail direction.
Why combine NLMS with ATR
NLMS alone gives an adaptive estimate, but it can still wiggle as the model learns.
ATR alone gives volatility structure, but it is usually tied to raw price and fixed smoothing.
Combining them gives:
Adaptive intelligence from NLMS.
Volatility confirmation from ATR.
Cleaner trend state transitions.
Less dependence on fixed moving-average assumptions.
The NLMS model learns the underlying price behavior, while ATR decides whether movement is large enough to matter.
Trend direction
Trend flips are detected from the trail itself:
Bullish when nlmsAtr crosses above its previous value.
Bearish when nlmsAtr crosses below its previous value.
This means signals are generated when the volatility trail changes direction, not when price simply crosses the line.
That is important because:
The trail must structurally move.
The signal is tied to confirmed trail direction.
Noise around the line does not automatically create a flip.
Visual design
The indicator includes several visual layers.
Main trail line
The central plotted line is the NLMS ATR trail. It changes color based on the current trend state:
Green for bullish trail direction.
Red for bearish trail direction.
Gray before a trend state is established.
Gradient fill
The script fills the space between price and the trail:
If price is above the trail, bullish fill is shown.
If price is below the trail, bearish fill is shown.
The fill is stronger near the trail and fades toward price, making the trail feel like the active structural reference.
Trail glow
A soft glow is drawn around the trail using a small ATR offset:
glow = ATR(14) × 0.06
This highlights the trail visually without cluttering the chart.
Trend candles
Candles are colored by trend state:
Bullish trend = bullish candles.
Bearish trend = bearish candles.
This allows the script to function as a complete regime overlay.
How to interpret the indicator
Bullish state
A bullish state occurs when the NLMS volatility trail turns upward.
This suggests:
The adaptive filter is shifting higher.
The ATR trail has confirmed upward structure.
Trend pressure has turned bullish.
Bearish state
A bearish state occurs when the NLMS volatility trail turns downward.
This suggests:
The adaptive estimate is shifting lower.
The volatility trail has confirmed downside structure.
Trend pressure has turned bearish.
Price above the trail
Generally indicates bullish structure.
Price below the trail
Generally indicates bearish structure.
But the most important signal is the direction of the trail itself, not every price touch.
How to use it in practice
1) Trend following
Use the trail direction as the primary bias:
Favor longs when the trail is bullish.
Favor shorts when the trail is bearish.
2) Dynamic support/resistance
The trail can act like a dynamic structural level:
In uptrends, pullbacks toward the trail can act as support.
In downtrends, rallies toward the trail can act as resistance.
3) Trade management
The trail can be used as:
A trailing stop guide.
A regime invalidation level.
A trend continuation reference.
4) Regime filtering
Because the line adapts using NLMS and only flips when the volatility trail turns, it can be used to filter other entries:
Take only long setups during bullish trail regimes.
Take only short setups during bearish trail regimes.
Avoid countertrend trades when the trail is strongly directional.
Difference from normal Supertrend or ATR trails
A normal ATR trail is usually built directly from price or hl2.
This indicator is different because the trail is built around an adaptive learned estimate.
That means:
The centerline is not raw price.
It is not a fixed moving average.
It is a continuously learned NLMS estimate.
So the trail has a different character:
More adaptive than a standard moving average trail.
More stable than a raw price-based ATR stop.
More responsive to changing market structure than fixed filters.
Difference from the NLMS Adaptive Trend Filter
The NLMS Adaptive Trend Filter plots the learned estimate directly and reads trend from its slope.
NLMS Volatility Trail goes one step further:
It uses the learned estimate as the base.
Then wraps it with ATR structure.
Then turns that into a trailing regime line.
So this version is more structure-oriented and better suited for trailing trend behavior.
Parameter tuning
Taps
Use higher taps for smoother trend structure.
Use lower taps for faster adaptation.
Step Size
Use lower step size for stability.
Use higher step size for responsiveness.
Regularization
Use higher regularization when the filter feels unstable.
Use lower regularization when the filter is too sluggish.
ATR Period
Controls volatility estimate:
Shorter = more reactive trail.
Longer = smoother trail.
ATR Factor
Controls band width:
Higher factor = wider trail, fewer flips.
Lower factor = tighter trail, more flips.
Strengths
Combines adaptive filtering with volatility trailing logic.
Learns from market structure instead of using fixed weights.
Uses ATR to reduce noise and confirm meaningful movement.
Good for trend following and trailing stop frameworks.
Visually clean with gradient fill and candle coloring.
Limitations
Still reactive, not predictive.
Can lag during violent reversals.
High learning rates may create noise.
Low ATR factors may cause whipsaws.
Requires tuning for timeframe and asset volatility.
Summary
NLMS Volatility Trail combines an adaptive NLMS predictor with an ATR-based trailing structure. The NLMS layer continuously learns a dynamic estimate of price from historical bars, while the ATR trail converts that estimate into a cleaner directional regime line. This makes the indicator more adaptive than a traditional moving average and more structured than a raw adaptive filter. It is best used as a trend-following overlay, dynamic support/resistance guide, and volatility-aware trailing framework.
Penunjuk

Penunjuk

Penunjuk

DAX Universe Relative Strength [JS]DAX Universe Relative Strength
This indicator compares the current stock with an equal-weighted German stock market benchmark consisting of DAX, MDAX, SDAX and TecDAX.
Instead of comparing a stock only with one single index, the script creates a broader DAX Universe benchmark by calculating the average performance of the four major German equity indices over a selected lookback period.
The goal is to identify whether a stock is showing relative strength or relative weakness versus the broader German stock universe.
How it works:
1. The script measures the performance of the current stock over the selected comparison period.
2. It measures the performance of DAX, MDAX, SDAX and TecDAX over the same period.
3. It calculates the equal-weighted average performance of these four indices.
4. It compares the stock’s performance with this benchmark.
5. The result is plotted as a relative strength line.
Interpretation:
- RS above 0:
The stock is outperforming the DAX Universe benchmark.
- RS below 0:
The stock is underperforming the DAX Universe benchmark.
- RS above its moving average:
Relative strength is improving.
- RS below its moving average:
Relative strength is weakening.
- Strong RS signal:
The stock is above the benchmark, above its RS moving average, and the RS moving average is rising.
This indicator is designed as a filter, not as a standalone buy or sell signal.
For pullback and swing trading, I use it to identify stocks that are stronger than the broader German market. A strong RS reading does not mean that a stock should be bought immediately. It only means that the stock deserves attention and may be worth adding to a watchlist.
A complete trade setup should also include:
- constructive trend structure
- price above important moving averages
- controlled pullback
- declining selling pressure
- clear pivot or trigger
- defined stop-loss
- attractive risk/reward ratio
The indicator includes:
- relative strength line
- moving average of the RS line
- zero line
- histogram
- background highlighting
- interpretation label
- alert conditions for RS changes
Suggested use cases:
- screening German stocks
- comparing DAX, MDAX, SDAX and TecDAX stocks
- identifying potential market leaders
- filtering pullback candidates
- avoiding stocks with persistent relative weakness
Important:
This script is for educational and analytical purposes only. It does not provide investment advice, buy signals or sell signals. Always combine relative strength analysis with your own chart analysis, risk management and trading plan. Penunjuk

Market Conditions Panel PRO (Multi-Market)Market Conditions Panel PRO ist ein manuelles Multi-Market-Dashboard für TradingView. Der Indikator zeigt direkt im Chart die vorher definierte Markteinschätzung für verschiedene Futures- oder CFD-Märkte an.
Das Panel dient als visuelle Checkliste für die Marktstruktur und unterstützt einen strukturierten Tradingprozess über mehrere Zeitebenen.
Funktionen
Automatische Erkennung des aktuellen Charts über Symbol-Filter
Unterstützung mehrerer Märkte, z. B. MES, ES, NQ, FDAX, YM
Frei definierbarer Markt-Bias: Bullish, Bearish oder Neutral
Drei individuell einstellbare Zeitebenen, z. B. Daily, 4H und 1H
Manuelle Klassifizierung der Marktbedingungen:
Trendy Long
Trendy Short
Choppy Long
Choppy Short
Seitwärts
Farbige Darstellung für schnelle Orientierung
Pfeilsymbole zur visuellen Richtungsanzeige
Optionales Notizfeld für Setup-Kommentare, Bias-Fenster oder wichtige Marktinformationen
Flexible Panel-Positionierung im Chart
Zweck
Der Indikator berechnet keine automatischen Signale und generiert keine Kauf- oder Verkaufsempfehlungen. Er ist als manuelles Analyse- und Entscheidungsdashboard gedacht.
Er hilft dabei, den eigenen Tradingplan konsequent umzusetzen, indem Bias, Marktstruktur und Zeitebenen direkt im Chart sichtbar bleiben.
Typischer Einsatz
Der Indikator eignet sich besonders für Trader, die mit einem mehrstufigen Entscheidungsprozess arbeiten:
Markt-Bias bestimmen
Marktstruktur auf mehreren Zeitebenen prüfen
Nur Setups handeln, die zum Bias und zur Struktur passen
Notizen und Kontext direkt im Chart sichtbar halten
Dadurch wird der Tradingprozess klarer, disziplinierter und besser dokumentierbar.
Hinweis
Alle Zustände im Panel werden manuell eingestellt. Der Indikator ist kein automatisches Handelssystem, sondern ein visuelles Framework zur Unterstützung der eigenen Marktanalyse. Penunjuk
