Buy-Sell with Adaptive Market Intelligence Engine
Adaptive Market Intelligence Engine - Structure and Trend Confluence
---------------------------------------
📊 Overview
Adaptive Market Intelligence Engine is a multi-layer market analysis indicator designed to interpret trend, market structure, momentum, volatility, participation, and higher-timeframe context through a unified weight-of-evidence framework.
The purpose of the indicator is not to predict every price movement or produce frequent trade signals.
Instead, it attempts to answer three practical questions:
• Is the market trending, ranging, compressing, or expanding?
• Which side currently has stronger technical evidence: buyers or sellers?
• Has a sufficiently strong new directional trend developed to justify a BUY or SELL signal?
The indicator combines several independent categories of technical evidence while attempting to reduce duplicated information and chart clutter.
Its primary components include:
• Major market structure
• HH/HL and LH/LL structural progression
• BOS and CHOCH detection
• Trend regime classification
• EMA trend structure
• Higher-timeframe confirmation
• VWAP / mean positioning
• RSI momentum
• MACD momentum
• ADX and directional movement
• Volume participation
• ATR volatility analysis
• Volatility compression detection
• Bullish and bearish confluence scores
• One-signal-per-trend state logic
• Structural retest identification
• Market intelligence dashboard
The indicator is intended to work as an analytical framework rather than as a standalone mechanical trading system.
---------------------------------------
🧠 Core Philosophy
Markets rarely move because of one technical condition.
An EMA crossover alone, RSI reading alone, volume spike alone, or isolated market-structure break can provide incomplete information.
This indicator therefore uses a weight-of-evidence approach.
Different technical categories contribute to a bullish or bearish score, and directional signals are generated only when several conditions align simultaneously.
The goal is to separate:
Trend from Temporary movement and Directional expansion from Range-bound market noise.
---------------------------------------
🔄 Market Regime Engine
Before evaluating directional signals, the indicator attempts to classify the current market environment.
The main regime states are:
• TRENDING
• TREND EXPANSION
• VOL EXPANSION
• RANGE
• COMPRESSION
• TRANSITION
The regime engine uses a combination of:
• ADX
• EMA separation relative to ATR
• ATR expansion
• Bollinger Bandwidth compression
This is important because the same technical signal can behave differently depending on market conditions.
For example, repeated structure breaks occurring inside a narrow range are intentionally treated differently from breaks occurring during an established directional expansion.
BOS and CHOCH detection is therefore suppressed when the engine identifies significant range-bound or compression conditions.
---------------------------------------
🟢 Bullish Market Structure
Bullish structural development is identified through sequences involving:
Higher Highs and Higher Lows.
Instead of placing HH and HL text labels across the chart, the indicator represents qualifying bullish structural progression using low-opacity green gradient bands.
The bands are designed to visually communicate directional structure without covering the underlying candles.
A structural band is not automatically created for every small pivot.
The movement must satisfy configurable structure-strength and ATR-distance requirements.
This helps reduce visual noise created by minor oscillations.
---------------------------------------
🔴 Bearish Market Structure
Bearish structure is evaluated through:
Lower Highs and Lower Lows.
Qualifying bearish sequences are represented using low-opacity red gradient bands.
As with bullish structure, minor swings are filtered using structural strength and ATR-based movement requirements.
The purpose is to highlight meaningful directional structure rather than drawing every short-term fluctuation.
---------------------------------------
🔀 BOS and CHOCH
The indicator also tracks external market structure.
BOS = Break of Structure
CHOCH = Change of Character
These events are displayed using dashed structural break lines.
A bullish BOS generally represents continuation of bullish external structure.
A bearish BOS represents continuation of bearish external structure.
CHOCH identifies a structure break occurring against the previously established structural direction.
However, BOS and CHOCH are not treated as automatic trade signals.
They are one component of the wider market intelligence engine.
BOS/CHOCH events are also filtered when the market is classified as significantly range-bound or compressed.
This is intended to reduce repeated structure-break markings inside sideways markets.
---------------------------------------
📈 Trend Engine
The default trend model uses:
Fast EMA: 21
Slow EMA: 50
A bullish trend condition requires bullish EMA alignment together with supportive price positioning.
A bearish trend condition requires bearish EMA alignment together with supportive price positioning.
The EMA ribbon provides a simple visual representation of the prevailing trend relationship.
These values are configurable.
---------------------------------------
🌐 Higher-Timeframe Confirmation
The engine can use a higher timeframe as an additional directional filter.
Higher-timeframe confirmation evaluates:
• Higher-timeframe price
• Higher-timeframe fast EMA
• Higher-timeframe slow EMA
Confirmed higher-timeframe data is used rather than the developing higher-timeframe candle.
This improves stability but introduces additional confirmation delay.
The selected higher timeframe must be greater than the chart timeframe.
For example:
15-minute chart → 1H or 4H confirmation
1H chart → 4H or Daily confirmation
Using the same or a lower timeframe as the HTF setting is intentionally prevented.
---------------------------------------
📍 VWAP / Mean Location
On intraday charts, the indicator uses session VWAP as a directional location reference.
Above VWAP supports bullish evidence.
Below VWAP supports bearish evidence.
On non-intraday charts, an EMA-based mean reference is used instead.
The purpose of this component is not to create VWAP crossover signals.
It provides context regarding where price is trading relative to an important market mean.
---------------------------------------
⚡ Momentum Engine
Momentum confirmation uses two separate measurements:
RSI
and
MACD Histogram.
The default bullish RSI threshold is above 52.
The default bearish RSI threshold is below 48.
The MACD histogram contributes additional directional momentum confirmation.
Momentum is intentionally only one component of the complete score.
A strong RSI reading by itself cannot produce a trade signal.
---------------------------------------
📊 ADX and Directional Movement
ADX and DMI are used to evaluate trend quality.
The engine considers:
ADX strength
*
+DI / -DI directional dominance.
Bullish directional confirmation requires sufficient ADX together with +DI dominance.
Bearish directional confirmation requires sufficient ADX together with -DI dominance.
This helps differentiate directional movement from weak oscillation.
---------------------------------------
⚡ Volume Participation
Where reliable volume data is available, the engine evaluates current volume relative to its average.
Bullish participation favors increased volume accompanying bullish price movement.
Bearish participation favors increased volume accompanying bearish price movement.
Volume can also be required as part of the final signal confirmation.
For symbols where meaningful volume information is unavailable, the engine does not automatically treat missing volume as bearish or bullish confirmation.
---------------------------------------
🌡️ Volatility Analysis
ATR is used throughout the indicator as a volatility-normalized measurement.
This allows several conditions to adapt more naturally across instruments with different price scales.
ATR is used in areas including:
• Structure strength
• Swing-leg measurement
• Volatility expansion
• Structural break buffering
• Retest tolerance
• Signal positioning
The indicator also compares current ATR against a longer ATR baseline to identify volatility expansion.
---------------------------------------
📉 Compression Detection
Bollinger Bandwidth is used internally to help identify volatility compression.
The Bollinger Bands themselves are not plotted.
When bandwidth contracts materially relative to its recent baseline, the engine can classify the environment as COMPRESSION.
During these conditions, new structural signals are filtered more aggressively.
---------------------------------------
🧮 Bull and Bear Confluence Scores
The engine independently calculates bullish and bearish scores from 0 to 100.
The current weighting framework is:
Current timeframe trend — 15 points
Higher-timeframe trend — 20 points
Major market structure — 20 points
Momentum — 15 points
VWAP / mean location — 10 points
Volume participation — 10 points
ADX / directional movement — 10 points
Total possible score:
100
Bullish and bearish evidence are calculated separately.
The difference between the two scores is also evaluated.
This prevents a high bullish score from automatically being considered strong when bearish evidence is simultaneously elevated.
---------------------------------------
🎯 One Signal Per New Trend
One of the most important features of the indicator is its trend-state signal engine.
The indicator is intentionally designed NOT to print BUY or SELL signals repeatedly throughout the same trend.
Once a new bullish trend satisfies the complete confirmation framework:
BUY is generated once.
Afterward:
• Additional BOS events do not create another BUY.
• Retests do not create another BUY.
• New momentum confirmations do not create another BUY.
• Continuation candles do not create another BUY.
The bullish trend remains active until the internal trend-state engine determines that the trend has genuinely deteriorated or a confirmed bearish trend takes control.
The same principle applies to SELL signals.
This produces a sequence closer to:
Neutral → New Bull Trend → BUY → Bull Trend Active
or
Neutral → New Bear Trend → SELL → Bear Trend Active
rather than repeatedly generating signals during the same directional move.
---------------------------------------
🏷️ A and A+ Signal Grades
Signals may display an A or A+ classification.
These labels refer only to the amount of technical confluence present at the time of confirmation.
They are NOT historical win-rate statistics.
They do NOT represent a guaranteed probability of success.
A+ simply represents stronger alignment within the indicator's internal scoring framework than the standard A condition.
---------------------------------------
🔁 Trend Reset Logic
The engine does not immediately reset a trend because of one weak candle.
Instead, it tracks sustained deterioration.
The default Trend Reset Bars value is:
6 bars.
A bullish trend remains active while bullish conditions remain sufficiently healthy.
If the structure deteriorates for the required number of confirmed bars, the state returns to neutral and becomes eligible to identify a future trend.
An opposite fully confirmed trend can also transition the state directly.
This helps prevent repeated BUY → BUY → BUY or SELL → SELL → SELL signals during ordinary pullbacks.
---------------------------------------
🔄 Structural Retests
After a valid structural break, the indicator can identify a return toward the broken level.
Bullish breaks may produce an R>S RETEST.
Bearish breaks may produce an S>R RETEST.
Retests require price to return within an ATR-based tolerance and subsequently close back on the expected side of the level.
Retest labels are analytical information.
They do not independently generate another trade signal when a trend signal has already been used.
---------------------------------------
🧭 Premium, Discount and Equilibrium
The latest confirmed major swing high and major swing low are also used to estimate the active structural range.
Price is classified as:
PREMIUM
DISCOUNT
EQUILIBRIUM.
These classifications are contextual only.
They should not be interpreted as automatic reversal zones.
For example, price can remain in premium during a strong uptrend or remain in discount during a strong downtrend.
---------------------------------------
⚙️ Suggested Starting Configuration
The default settings are designed as a balanced starting point rather than universally optimal parameters.
Major Swing Length: 8
Fast EMA: 21
Slow EMA: 50
ADX Trend Threshold: 22
Minimum Signal Score: 86
Minimum Bull/Bear Advantage: 25
Trend Reset Bars: 6
Consecutive Structure Pairs: 2
Users should evaluate different settings according to the instrument, timeframe, volatility characteristics, and their own trading methodology.
Avoid changing parameters simply to improve historical appearance.
---------------------------------------
✅ How to Use the Indicator
The preferred workflow is:
1. Check Market Regime.
If RANGE or COMPRESSION is displayed, directional signals should be treated cautiously.
2. Check Bull Score vs Bear Score.
Look for meaningful separation rather than nearly equal scores.
3. Check Major Structure.
Determine whether the external structure supports the intended direction.
4. Check HTF.
Higher-timeframe agreement generally represents stronger directional alignment.
5. Observe the gradient structure bands.
These provide visual context regarding recent bullish or bearish structural progression.
6. Check price relative to VWAP / Mean.
This adds location context.
7. Wait for a confirmed new-trend signal.
Avoid anticipating the BUY or SELL before the complete engine confirms it.
8. Perform independent risk analysis.
Entry price, stop placement, targets, position size, option strike selection, and portfolio risk should be determined separately.
---------------------------------------
🚫 When to Avoid Using Signals
You should generally avoid relying heavily on directional signals when:
• Market Regime shows RANGE or COMPRESSION.
• Bull and Bear scores are very close.
• Price is reacting violently around major news.
• Liquidity is poor.
• The instrument has irregular or unreliable price/volume data.
• The chosen timeframe produces excessive market noise.
• A signal appears too close to an important external event or known gap-risk period.
No technical indicator can eliminate these market risks.
---------------------------------------
⏱️ Important Pivot Confirmation Behavior
The market-structure engine uses confirmed pivot highs and pivot lows.
A pivot cannot be confirmed until the required number of bars has formed to its right.
With a Major Swing Length of 8, for example, a major pivot requires eight subsequent bars before confirmation.
After confirmation, structural graphics can be anchored visually to the original pivot bar.
This means the historical chart can show a structural band beginning at the earlier pivot even though that pivot was not known to the indicator in real time until later.
This is an important distinction.
The structure graphics should therefore be interpreted as a confirmed historical map of market structure, NOT as proof that the swing was identifiable at the exact pivot candle.
Trade signals themselves are evaluated on confirmed bars using information available to the signal engine at that time.
---------------------------------------
🕒 Higher-Timeframe Timing
Higher-timeframe confirmation intentionally uses completed higher-timeframe information.
This reduces instability associated with using a still-forming HTF candle.
The tradeoff is confirmation delay.
For example, a strong movement can begin before the previous completed higher-timeframe candle has confirmed the same direction.
This indicator intentionally favors confirmation over immediate reaction.
---------------------------------------
🔬 What Makes This Indicator Different
The intention behind Adaptive Market Intelligence Engine is not to combine unrelated indicators simply to produce more signals.
Each component has a defined analytical role:
EMA structure → trend
HTF → broader directional context
Market structure → price-action direction
RSI / MACD → momentum
VWAP / mean → location
Volume → participation
ADX / DMI → directional trend quality
ATR → volatility normalization
Bandwidth → compression / regime
State machine → signal frequency control
The final result is therefore based on agreement between multiple categories of market evidence rather than repeated confirmation from several indicators measuring essentially the same thing.
Another important design choice is that structural information and trade signals are separated.
BOS, CHOCH, gradient structure bands, retests, support/resistance information, and dashboard states can continue updating without generating repeated BUY or SELL labels.
---------------------------------------
🛡️ Risk Notice
This indicator is intended for technical analysis and educational use.
BUY and SELL labels represent conditions produced by the indicator's internal rules. They are not guarantees of future price movement and should not be interpreted as personalized investment advice.
Markets involve risk, and technical conditions can fail.
Users should independently evaluate price structure, liquidity, volatility, position sizing, stop placement, trading costs, and event risk before making any trading decision.
Past chart behavior does not guarantee future results.
Indicator

Round Number Rejection Planner [AGPro Series]# Round Number Rejection Planner
🧠 Core Idea
Is the round number acting as rejection, magnet, or failed reference?
📌 Overview / What it does
Round Number Rejection Planner is a psychological price level decision-support script built to evaluate how price reacts around nearby round numbers.
The script maps adaptive round-number bands, detects wick-based rejection behavior, separates rejection from magnet conditions, scores the context from 0 to 100, and summarizes the current state inside a compact AG Pro panel.
It does not predict price direction, automate trades, or provide guaranteed signals. It is designed to organize round-number context, rejection quality, distance, failure risk, and action state into a clean visual workflow.
🎯 Purpose & Design Philosophy
Round numbers often attract attention because they are easy reference points for traders, algorithms, stops, targets, and liquidity.
This script was built for traders who want to evaluate whether price is respecting a psychological level, getting pulled toward it, or failing to reject it cleanly.
The design supports structured observation instead of treating every round-number touch as a signal.
⚡ Why This Script Is Different
Most tools draw psychological levels or mark round numbers.
This script does NOT stop at drawing levels.
Instead, it evaluates the behavior around the level: wick rejection, close location, distance, reaction count, volatility fit, and failure risk.
⚙️ Methodology
1. Adaptive Round Level Detection
2. Psychological Band Mapping
3. Wick Rejection Evaluation
4. Magnet And Failure Risk Detection
5. 0-100 Rejection Score
6. Panel And Alert Output
🗺️ How to Read the Chart
The active round band marks the nearest psychological price zone.
Nearby round rails show the next upper and lower round references.
READY REJECTION labels appear when wick response, close location, and score quality align.
Magnet or failed-reference states appear when price interacts with the level without a clean rejection.
The panel summarizes Round Level, Rejection Score, Distance, Failure Risk, and Action.
🚦 Signals & States
• READY → A qualified round-number rejection has formed.
• MONITOR → Price is near the round number but rejection quality is not yet strong enough.
• WAIT → No active round-number context is close enough to evaluate.
• INVALIDATED → Price failed through the level instead of rejecting it.
• BLOCKED → The script cannot define a valid round-number context.
🔔 Alerts Logic
Bullish Round Number Rejection Ready triggers when price rejects upward from a round-number band with enough quality.
Bearish Round Number Rejection Ready triggers when price rejects downward from a round-number band with enough quality.
Round Number Magnet Warning triggers when price is close to the level but rejection quality is weak.
Round Number Rejection Invalidated triggers when price fails through the level instead of respecting it.
Alerts are attention markers, not trade instructions.
🧩 Confluence Logic
The rejection score combines wick strength, close distance from the level, proximity, recent reaction count, relative volume, and volatility fit.
When several of these conditions align, the context becomes stronger.
When they do not align, the script remains in WAIT, MONITOR, INVALIDATED, or BLOCKED state.
📊 When to Use
• Psychological level analysis
• Intraday price action workflows
• Round-number rejection setups
• Stop and liquidity reaction observation
• Support and resistance context around visible price levels
⚠️ When NOT to Use
Avoid relying on this script in extremely illiquid markets, very noisy symbols, holiday sessions, or conditions where round numbers are not meaningful to participants.
It should not be used as a standalone decision tool without broader market context, risk planning, and independent confirmation.
🎛️ Key Inputs
• Round Level Mode controls whether level spacing is automatic or manual.
• Manual Round Step defines custom level spacing when manual mode is selected.
• Round Band ATR controls the width of the psychological level band.
• Max Active Distance controls how close price must be before evaluation begins.
• Minimum Ready Score controls how strong the rejection must be before READY appears.
• Failure Risk Threshold controls when weak rejection or magnet behavior blocks READY.
• Visual settings control bands, rails, labels, right-side tags, panel location, and font size.
🖥️ Interface & Visual Design
The interface is designed to make the active psychological level readable without flooding the chart.
The chart shows the active round band, nearby round rails, failure shelf, and relevant rejection labels.
The AG Pro panel provides compact decision context while preserving chart visibility.
🧪 Practical Usage Workflow
1. Check the active round level in the panel.
2. Observe whether price is touching or rejecting the round band.
3. Read the rejection score and failure risk.
4. Check whether the action state is READY, MONITOR, WAIT, INVALIDATED, or BLOCKED.
5. Confirm the context with broader trend, liquidity, volatility, and risk structure.
🔍 Interpretation Guidelines
A higher rejection score means the round-number reaction is cleaner according to the script logic.
A high failure risk means the level may be acting more like a magnet or failed reference.
READY means the rejection context deserves attention, not that price must reverse.
MONITOR means price is near the level but the reaction is not yet clean enough.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not financial advice.
It is not an auto-trading system.
It does not provide guaranteed signals.
It does not replace risk management or independent analysis.
⚠️ Limitations & Transparency
Round-number behavior changes across markets, symbols, timeframes, volatility regimes, and liquidity conditions.
The score is rule-based and depends on wick behavior, close location, distance, relative volume, and ATR normalization.
Different symbols may require different round-step or sensitivity settings.
🧠 Market Context Notes
Round-number rejection can be more meaningful when aligned with liquidity response, trend context, session timing, volume participation, and nearby structure.
Weak rejection near a level can become magnet behavior instead of a clean turn.
🔐 Non-Promise Statement
No script can guarantee future price behavior.
This tool provides structured visual context only.
📉 Risk Disclosure
Trading involves risk.
Users remain responsible for their own decisions.
This script is for educational and analytical purposes only and does not provide financial advice or guaranteed trading outcomes.
Indicator

Gap Reclaim Readiness [AGPro Series]# Gap Reclaim Readiness
🧠 Core Idea
Can price reclaim a gap edge with enough acceptance to make the structure worth monitoring?
📌 Overview / What it does
Gap Reclaim Readiness is a chart-first gap edge decision-support script built to evaluate whether price has returned to a gap boundary and reclaimed it with enough structural quality.
The script maps active gap zones, identifies the reclaim edge, builds a focused reclaim pocket, scores the reclaim from 0 to 100, and summarizes the current state inside a compact AG Pro panel.
It does not predict price direction, automate trades, or provide guaranteed signals. It is designed to organize gap-edge context, reclaim quality, fill risk, and continuation state into a clean visual workflow.
🎯 Purpose & Design Philosophy
Many gap tools focus only on whether a gap exists or whether it has been filled.
This script was built for the more practical question: after a gap forms, does price respect and reclaim the edge strongly enough to deserve attention?
It helps traders who use price action, gap reactions, continuation structure, and intraday context, while supporting a patient decision-making process instead of impulsive reaction.
⚡ Why This Script Is Different
Most tools focus on detecting gaps or tracking gap fill.
This script does NOT behave like a generic gap fill tracker.
Instead, it focuses on the reclaim edge: whether price returns to the boundary, accepts it, loses it, or fails to develop a clean reclaim context.
⚙️ Methodology
1. Gap Context Detection
2. Reclaim Edge Mapping
3. Reclaim Pocket Construction
4. Reaction And Acceptance Evaluation
5. 0-100 Reclaim Score
6. Fill Risk And Continuation State
7. Visual Output And Panel Summary
🗺️ How to Read the Chart
The gap zone marks the structural area created by a qualifying gap or displacement-style gap event.
The reclaim edge marks the key boundary price must respect to form a valid reclaim context.
The reclaim pocket highlights the area around the edge where reaction quality is evaluated.
READY RECLAIM labels appear when the reclaim context meets the required score threshold.
Target rails show projected continuation references after a qualified reclaim.
The panel summarizes Gap Edge, Reclaim Score, Fill Risk, Continuation, and Action.
🚦 Signals & States
• READY → A qualified gap edge reclaim has formed.
• MONITOR → A gap structure exists and the script is watching for reclaim behavior.
• WAIT → No active reclaim context is currently valid.
• INVALIDATED → Price failed back through the reclaim edge.
• EXPIRED → The reclaim window closed without a qualified reclaim.
🔔 Alerts Logic
Bullish Gap Reclaim Ready triggers when price reclaims a bullish gap edge with enough score.
Bearish Gap Reclaim Ready triggers when price reclaims a bearish gap edge with enough score.
Gap Reclaim Invalidated triggers when price fails back through the reclaim edge.
Gap Reclaim Expired triggers when the reclaim window closes without a qualified reclaim.
Alerts are attention markers, not trade instructions.
🧩 Confluence Logic
The reclaim score combines edge interaction, close acceptance, time quality, relative volume, gap size, and available continuation room.
When several of these conditions align, the context becomes stronger.
When they do not align, the script remains in WAIT, MONITOR, INVALIDATED, or EXPIRED state.
📊 When to Use
• Intraday price action workflows
• Gap reaction analysis
• Breakout and reclaim structures
• Continuation after displacement
• Markets where gap edges or price void boundaries matter
⚠️ When NOT to Use
Avoid relying on this script in extremely illiquid markets, very noisy low-volume symbols, holiday sessions, or conditions where gaps and displacement structures are not meaningful.
It should also not be used as a standalone decision tool without broader market context.
🎛️ Key Inputs
• Gap Mode controls how strict the gap detection logic is.
• Minimum Gap Size filters weak structures.
• Displacement Gap Fallback helps continuous markets where classic open gaps are rare.
• Reclaim Pocket ATR controls the depth of the reclaim pocket.
• Minimum Ready Score controls how strong the reclaim must be before READY appears.
• Fill Risk Threshold controls when a reclaim context becomes too filled or exhausted.
• Visual settings control labels, zones, right-side tags, panel location, and font size.
🖥️ Interface & Visual Design
The interface is designed to keep the chart readable while making the active reclaim structure easy to understand.
The panel uses the AG Pro blue header style and summarizes the current state without covering the whole chart.
Zones, pockets, labels, and target rails are designed to show structure first and avoid unnecessary noise.
🧪 Practical Usage Workflow
1. Identify whether the panel shows an active gap edge.
2. Check the reclaim pocket and nearby price reaction.
3. Read the reclaim score and fill risk.
4. Confirm whether the action state is READY, MONITOR, WAIT, INVALIDATED, or EXPIRED.
5. Combine the output with broader structure, liquidity, trend, and risk context.
🔍 Interpretation Guidelines
A higher reclaim score means the gap edge reaction is cleaner according to the script logic.
A high fill risk means the gap context may already be too consumed.
READY means the reclaim condition deserves attention, not that price must continue.
WAIT means there is no valid active reclaim context.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not financial advice.
It is not an auto-trading system.
It does not provide guaranteed signals.
It does not replace risk management or independent analysis.
⚠️ Limitations & Transparency
Gap behavior changes across markets, timeframes, liquidity conditions, and volatility regimes.
Continuous markets may create fewer classic gaps, so adaptive displacement logic is included to support broader usability.
Different symbols and timeframes may require different sensitivity settings.
🧠 Market Context Notes
Gap reclaim behavior is often stronger when aligned with trend, liquidity response, volume participation, and clean structure.
Weak reclaim attempts can fail quickly when price loses the edge or when the gap becomes fully consumed.
🔐 Non-Promise Statement
No script can guarantee future price behavior.
This tool provides structured visual context only.
📉 Risk Disclosure
Trading involves risk.
Users remain responsible for their own decisions.
This script is for educational and analytical purposes only and does not provide financial advice or guaranteed trading outcomes.
Indicator

Opening Range Retest Planner [AGPro Series]# Opening Range Retest Planner
## Core Idea
Did the opening range breakout return to its boundary and hold with enough quality to deserve attention?
## Overview / What It Does
Opening Range Retest Planner is an intraday opening range decision-support script built for traders who want to evaluate the quality of the first meaningful retest after an opening range breakout.
The script builds the opening range, tracks the first bullish or bearish breakout, maps a focused retest pocket around the broken boundary, grades the retest from 0 to 100, and displays a clear action state in a compact AG Pro panel.
It does not predict price direction, automate execution, or provide guaranteed outcomes. Its purpose is to organize structure, acceptance, invalidation, and retest quality in a clean visual workflow.
## Purpose & Design Philosophy
Many opening range tools focus only on the initial break. In practice, the first retest after the break is often where the structure becomes more meaningful.
This script was built for traders who want to separate a clean retest hold from a weak pullback, failed breakout, or expired setup. The design supports structured observation instead of impulsive reaction.
## Why This Script Is Different
Most opening range tools stop at the range or breakout itself.
This script does not stop there.
Instead, it focuses on what happens after the break: whether price returns to the broken boundary, respects it, fails back inside the range, or runs out of time before a qualified retest appears.
## Methodology
1. Opening Range Mapping
2. Breakout Detection
3. Retest Pocket Construction
4. Retest Quality Scoring
5. Acceptance, Invalidation, or Expiration State
6. Panel and Alert Output
## How To Read The Chart
The opening range remains the main session reference.
The retest pocket marks the area where the script evaluates whether the broken boundary is being respected or rejected.
Labels highlight qualified retests, invalidations, and key state changes.
Target rails project possible continuation space after a qualified retest.
The panel summarizes OR state, retest score, acceptance side, failure risk, and current action.
## Signals & States
READY -> A retest touched the pocket, held the broken boundary, and met the minimum quality threshold.
MONITOR -> A breakout occurred and the script is tracking whether a qualified retest develops.
WAIT -> The opening range is still building, has just locked, or is waiting for a valid post-break condition.
INVALIDATED -> Price failed back inside the opening range after the breakout.
EXPIRED -> The retest window closed without a qualified retest.
BLOCKED -> The opening range is not valid enough to evaluate.
## Alerts Logic
Bullish Opening Range Retest Ready triggers when a bullish breakout retest holds the broken range high with enough score.
Bearish Opening Range Retest Ready triggers when a bearish breakout retest holds the broken range low with enough score.
Opening Range Retest Invalidated triggers when price fails back inside the opening range after a breakout.
Opening Range Retest Expired triggers when the retest window expires without a qualified hold.
Alerts are attention markers, not trade instructions.
## Confluence Logic
The retest score combines pocket touch quality, close response, retest timing, relative volume, opening range volatility fit, and available target room.
When these conditions align, the context becomes stronger. When they do not align, the panel remains in MONITOR, WAIT, INVALIDATED, or EXPIRED state.
## When To Use
This script is most useful in liquid intraday markets where the opening range matters and session structure is clear.
It fits breakout-retest workflows, opening drive continuation, failed breakout monitoring, and structured intraday planning.
## When NOT To Use
Avoid relying on this script in very low-liquidity symbols, extremely noisy sessions, holiday trading, or chart conditions where the opening range session cannot be represented cleanly.
## Key Inputs
Opening Range Mode controls whether the script uses an exact session window or the first chart bars of each day.
Auto mode uses session-window logic on lower intraday charts and switches to first-bars-of-day logic on higher timeframes.
Retest Pocket ATR controls the depth of the retest zone around the broken boundary.
Minimum Ready Score controls how strong the 0-100 retest score must be before READY appears.
Panel and label controls let users adjust position, theme, and visual density.
## Interface & Visual Design
The visual design is chart-first.
The opening range stays readable, the active retest pocket becomes the focus area, and the panel provides compact decision context without covering the whole chart.
The first panel row uses the AG Pro blue header style and shows only the script name.
## Practical Usage Workflow
1. Wait for the opening range to lock.
2. Watch for a breakout beyond the range boundary.
3. Observe whether price returns to the retest pocket.
4. Check the retest score and action state.
5. Treat alerts as attention markers and confirm context with your broader process.
## What This Script Is NOT
This script is not a prediction engine.
It is not financial advice.
It is not an auto-trading system.
It does not guarantee outcomes.
It does not replace independent risk management or market context.
## Limitations & Transparency
Opening range behavior changes across markets, sessions, liquidity conditions, and timeframes.
The score is rule-based and depends on the configured session, ATR normalization, volume behavior, and retest window.
Different chart timeframes may display session structure differently.
## Risk Disclosure
Trading involves risk.
Users remain responsible for their own decisions.
This script is for educational and analytical purposes only and does not provide financial advice or guaranteed trading outcomes.
Indicator

ATC Adaptive MA RibbonWhat It Is
The ATC Ribbon is a four-line moving average ribbon that automatically adjusts its sensitivity to match current market conditions. Unlike standard moving average ribbons that use fixed settings regardless of what the market is doing, the ATC Ribbon detects whether the market is trending, ranging, or transitioning — and tightens or widens the ribbon accordingly. The result is a cleaner, more responsive trend tool that reduces whipsaw in choppy conditions and stays tight to price during directional moves.
This is not a signal generator. It is a visual context engine — designed to answer one question at a glance: what is the market doing right now, and how strong is it doing it?
________________________________________
Who It's Built For
The ATC Ribbon is built for active traders working intraday to swing timeframes on futures, equities, and forex. It serves traders who use moving averages as part of their directional bias toolkit but are frustrated by the classic tradeoff: fast MAs that whipsaw in ranges, or slow MAs that lag behind trends.
If you've ever wished your moving average ribbon would behave differently in a trending market than a choppy one — without you having to manually change settings — this is what that looks like.
________________________________________
Core Concept
At its foundation, the ATC Ribbon plots four moving averages: one Hull Moving Average (HMA) as the fast lead line, and three Exponential Moving Averages (EMAs) at medium, slow, and anchor lengths. This fixed architecture — HMA + EMA + EMA + EMA — never changes. The MA types stay consistent so you always know what you're reading.
What adapts is the length configuration. The indicator runs a manual ADX calculation in the background to classify the current environment into one of three regimes:
Trend — ADX is elevated, confirming strong directional movement. The ribbon tightens by applying a multiplier below 1.0 to all lengths, making the MAs more responsive and keeping them close to price during runs.
Range — ADX is low, confirming a lack of directional conviction. The ribbon widens by applying a multiplier above 1.0, smoothing out noise and reducing false crossover signals during chop.
Transition — ADX sits between the two thresholds. The ribbon uses its base (default) lengths, representing a neutral stance while the market decides its next move.
All three ribbon configurations are precomputed on every bar. The indicator doesn't recalculate on the fly — it simply selects the appropriate pre-built set based on the current regime. This eliminates the instability and repainting issues that plague most "adaptive" moving average tools.
________________________________________
ATC Ribbon Upgrades Over Standard MA Ribbons
HMA Lead Line — The fast MA uses a Hull Moving Average instead of a standard EMA or SMA. HMA delivers significantly less lag at equivalent smoothing depth, giving you an earlier read on momentum shifts without adding noise.
Regime-Adaptive Lengths — Instead of one static ribbon that traders manually adjust for different conditions, the ATC Ribbon precomputes three discrete configurations and transitions between them using hysteresis-gated ADX classification. You get one ribbon that acts like three, without ever needing to touch your settings.
Hysteresis on Everything — Both the regime state and the alignment bias label are protected by hysteresis buffers. This means the indicator won't flicker back and forth at boundary values. A regime must clear its threshold by a user-defined margin before the indicator acknowledges the transition. The same logic applies to the bullish/bearish alignment label — it must hold its new state for a configurable number of bars before the HUD updates. This is the difference between a tool you can trust and one that makes you second-guess it.
Alignment Scoring — The ribbon doesn't just show four lines. It calculates a composite alignment score (0–100) based on two components: stack order (are the MAs properly sequenced from fast to slow?) and slope agreement (are all four MAs rising or falling together?). This score drives the ribbon color intensity and gives you a single number that quantifies how clean the current trend structure is.
________________________________________
Chart Visuals — What You'll See
The Four MA Lines — The fast HMA leads in a slightly thicker line. The medium and slow EMAs follow in thinner lines. The anchor EMA plots in a distinct darker blue, thicker line — it acts as your structural reference, similar to a 200 EMA.
Gradient Ribbon Fill — Between each adjacent pair of MAs, a semi-transparent fill creates a layered gradient effect. The fill between the fast and medium MA is the most opaque; the fill between the slow and anchor MA is the most transparent. This produces a ribbon that visually "fades" from the leading edge to the structural anchor, giving you an intuitive sense of ribbon width and separation at a glance.
Color — The entire ribbon shifts color based on the current alignment bias. Green when the stack and slope structure favors bullish. Red when it favors bearish. Blue when the alignment is neutral or transitional. The color intensity scales with the alignment score — a strong, well-ordered trend produces rich, saturated color; a weak or mixed alignment produces a muted, faded ribbon.
Regime Background Wash — A subtle background tint appears during confirmed Trend and Range regimes. In Trend, the background takes on the current ribbon color at very low opacity. In Range, it shifts to a neutral blue tint. This ambient visual cue lets you see the regime classification without looking at the HUD.
Regime Change Pulse — When the market transitions from one regime to another, a single-bar accent-colored background pulse fires. This is your visual alert that the ribbon just switched configurations.
________________________________________
The HUD — Your Dashboard at a Glance
The HUD is a compact table displayed in your chosen chart corner (default: top right) that reports five real-time data points:
Regime — Displays the current regime label (Trend, Range, or Transition) alongside the live ADX value. This tells you both what the indicator thinks the market is doing and why it thinks that.
Alignment — Shows the current directional bias: Bullish, Bearish, or Neutral. Color-coded to match the ribbon.
Score — The composite alignment score expressed as a value out of 100. A +87/100 in bullish alignment means 87% of the stack order and slope criteria favor upside. This number lets you gauge trend quality, not just trend direction.
Config — Displays the active regime multiplier and the four MA lengths currently in use (e.g., 0.70x | 6/15/35/140). This makes the adaptive behavior completely transparent — you always know exactly what settings the ribbon is running.
Price — Reports whether the current close is Above Anchor, Below Anchor, or Neutral relative to the anchor EMA. This is a fast structural reference — above anchor generally favors longs, below anchor generally favors shorts.
________________________________________
Logic Layers — How the Indicator Thinks
Layer 1: ADX Regime Detection — The indicator runs a full manual ADX calculation (not a black-box wrapper) and classifies the result against two user-defined thresholds. Below the Range threshold, the market is classified as ranging. Above the Trend threshold, it's classified as trending. Between the two, it's in Transition. A hysteresis buffer prevents the regime from flickering at the boundary.
Layer 2: Precomputed Ribbon Selection — All three ribbon configurations (Trend, Transition, Range) are computed on every bar. When the regime state changes, the indicator simply swaps which set of MA values it displays. There is no recalculation lag, no repainting, and no series-length instability.
Layer 3: Alignment Scoring — Eight binary criteria are evaluated: four for stack order (is fast above medium? medium above slow? slow above anchor? fast above anchor?) and four for slope (is each MA rising or falling compared to its prior bar?). Bullish criteria accumulate into a bull score, bearish criteria into a bear score. The higher score determines the bias, and the magnitude drives color intensity.
Layer 4: Hysteresis Gating — Both the regime label and the alignment bias label pass through hysteresis filters before updating. The regime requires ADX to clear its threshold by a configurable buffer before flipping. The alignment bias requires the new state to persist for a configurable number of bars before the HUD acknowledges it. This ensures that everything you see on the chart represents a confirmed state, not a marginal one.
________________________________________
Alerts
The ATC Ribbon includes seven configurable alert conditions:
• Entered Trend Regime — Fires when the market transitions into a confirmed Trend state.
• Entered Range Regime — Fires when the market transitions into a confirmed Range state.
• Entered Transition Regime — Fires when the market moves into the neutral Transition zone.
• Bullish Alignment — Fires when the ribbon alignment flips to Bullish after hysteresis confirmation.
• Bearish Alignment — Fires when the ribbon alignment flips to Bearish after hysteresis confirmation.
• Price Crossed Above Anchor — Fires when the close crosses above the anchor EMA.
• Price Crossed Below Anchor — Fires when the close crosses below the anchor EMA.
All alerts are one-per-event — they fire on the bar where the state change is confirmed, not on every bar where the condition is true.
________________________________________
How to Trade with the ATC Ribbon
Step 1 — Read the Regime. Before anything else, check the HUD or the background wash. If the market is in Trend regime, you're looking for continuation setups. If it's in Range regime, you're looking for mean-reversion or waiting for a breakout. If it's in Transition, stay patient — the market hasn't committed yet.
Step 2 — Check the Alignment. A Bullish alignment with a high score (above 70) tells you the ribbon is well-ordered and all four MAs are rising together. That's a clean trend structure. A Bearish alignment with a high score tells you the same thing to the downside. Neutral or low-score readings mean the trend structure is messy — be selective or wait.
Step 3 — Use the Anchor EMA as Your Structural Line. The anchor EMA (default 200-period, adjusted by regime) serves as your macro bias filter. Price above the anchor favors long setups. Price below favors shorts. This is not a signal — it's a filter that keeps you on the right side of the larger structure.
Step 4 — Look for Pullbacks into the Ribbon. In a confirmed Trend regime with strong alignment, the highest-probability entries come when price pulls back into the ribbon (toward the medium or slow EMA) and then resumes in the direction of the alignment. The ribbon acts as a dynamic support/resistance zone during trends.
Step 5 — Respect Range Regime Behavior. When the ribbon is in Range mode, it automatically widens to filter out noise. During these periods, the ribbon is telling you that directional conviction is low. Use this as a signal to reduce position sizing, tighten stops, or wait for a regime change. Forcing trend trades during a confirmed Range regime is fighting the indicator.
Step 6 — Watch for Regime Change Pulses. The single-bar background pulse that fires on regime transitions is one of the most actionable features. A shift from Range to Trend, confirmed by rising alignment score, is often the early signal that a new directional move is underway. These transitions are where the best risk/reward setups tend to form.
Step 7 — Combine with Your Edge. The ATC Ribbon is a context and bias tool, not a standalone entry signal. It's designed to be layered with your existing strategy — whether that's price action, volume analysis, key levels, or other indicators. Let the ribbon tell you what kind of market you're in and which direction it favors, then use your primary method to time the entry.
________________________________________
Settings Reference
Source — The price series used for all four MAs. Default: Close.
Base Lengths (Transition Regime) — The default MA lengths used during the Transition regime. Fast HMA: 9. Medium EMA: 21. Slow EMA: 50. Anchor EMA: 200. These are the "home base" settings that the Trend and Range multipliers adjust from.
ADX Length — The smoothing period for the ADX calculation. Default: 14. Higher values produce a slower, smoother regime classification.
Range Threshold — ADX below this value classifies the market as Range. Default: 15.0.
Trend Threshold — ADX above this value classifies the market as Trend. Default: 25.0.
ADX Hysteresis Buffer — The additional ADX distance required to exit a confirmed regime. Default: 2.0. Higher values make regime states stickier and reduce flicker.
Trend Regime Multiplier — Applied to all base lengths during Trend regime. Default: 0.70 (tightens the ribbon by 30%).
Range Regime Multiplier — Applied to all base lengths during Range regime. Default: 1.30 (widens the ribbon by 30%).
Alignment Hysteresis — Number of bars a new alignment bias must persist before the HUD and color update. Default: 2. Set to 0 for immediate updates.
Visual Toggles — Show/hide ribbon fill, MA lines, and regime background independently. All default to on.
________________________________________
Recommended Instruments and Timeframes
The ATC Ribbon is built and tested for: ES, NQ, YM, CL, GC, SPY, QQQ, major FX pairs, and large-cap stocks.
Recommended timeframes: 15-minute, 1-hour, 4-hour, and Daily. The regime detection and alignment scoring are calibrated for these intervals. Lower timeframes (1m, 5m) will produce more frequent regime changes and may require adjusted ADX thresholds. Higher timeframes (Weekly, Monthly) will work but regime transitions will be infrequent.
Indicator

ATC Bollinger Band Percentile v1.1What It Is
The ATC Bollinger Band Percentile (ATC BBP) is a dual-layer oscillator that tells you two things simultaneously: where price sits inside its Bollinger envelope right now, and whether the current volatility environment is compressing, neutral, or expanding — measured against real historical data, not a hardcoded threshold.
Most Bollinger Band tools give you the bands. This one gives you the context behind the bands.
________________________________________
Who It's Built For
ATC BBP is designed for retail traders who already use Bollinger Bands or have tried them but found the raw %B reading too noisy or too vague to act on. If you've ever looked at a squeeze setup and wondered whether the bands were actually tight or just tighter than yesterday, this indicator was built to answer that question directly.
It works best for traders who use volatility as a filter before entering trend or breakout trades, want a cleaner and less reactive version of %B, or are building toward understanding normalized, statistically-grounded indicators.
________________________________________
Core Concept
Bollinger Bands place price in a dynamic envelope built from a moving average and standard deviation. The %B reading converts that envelope into a 0–100 scale: 100 means price is sitting on the upper band, 0 means price is on the lower band, and 50 means price is at the midpoint.
That's useful, but the raw reading is noisy and the bands themselves don't tell you whether they're wide or narrow relative to history. A band can look visually compressed on your chart and still be wider than it's been 75% of the time — or vice versa.
ATC BBP solves both problems. It smooths %B with a Hull Moving Average to reduce reactive noise, and it scores the current bandwidth as a percentile against a rolling window of its own history — so you always know objectively whether compression is real.
________________________________________
ATC Upgrades Over Standard %B
HMA Smoothing on %B The raw %B line reacts sharply to every candle. ATC BBP applies a Hull Moving Average to %B before it's plotted, cutting noise while preserving responsiveness. The raw %B is still available in the data window for comparison, but the smoothed version drives everything you see. You can adjust the smoothing length or disable it entirely.
Bandwidth Percentile Scoring This is the core ATC enhancement. Instead of asking "are the bands narrow?", ATC BBP asks "are the bands narrow relative to the last 125 bars of bandwidth history?" The bandwidth percentile is computed by ranking the current bandwidth against every value in the lookback window. A reading of 8% means the bands are tighter right now than they've been on 92% of recent bars. That's a real squeeze signal — not an eyeball call.
Empirical Zone Thresholds with Hysteresis The %B zone boundaries are not hardcoded round numbers. The defaults are set at empirically sensible levels and are fully adjustable. More importantly, every state transition — both the squeeze state and the %B zone — uses a configurable hysteresis band so the indicator doesn't flicker at the edges. Once a state is entered, it takes a meaningful move to exit it.
________________________________________
What's on the Chart
ATC BBP plots in a separate pane below your price chart.
The %B Line The smoothed %B oscillator on a 0–100 scale. The line changes color dynamically to reflect the current zone: green shades when price is in the lower portion of the bands, red shades in the upper portion, neutral grey for mid-range. When price tags or exceeds either band, the color deepens to full intensity. A fill between the %B line and the 50-level midline gives an immediate read on whether price is in the upper or lower half of the range.
Horizontal Reference Lines Five levels mark the key zones: lower extreme (0), lower quartile (20), midline (50), upper quartile (80), and upper extreme (100). Low-opacity colored background shading tints each zone — red above the upper quartile, green below the lower quartile, neutral in the middle.
Squeeze Pressure Bar Along the bottom of the pane, a colored bar marks the current squeeze state. Amber indicates a tight squeeze — bandwidth in the lowest percentile tier. Light yellow indicates a developing or loose squeeze. Blue indicates active volatility expansion. When no state is active, the bar disappears — the absence of color is meaningful. Diamond markers appear at the bar when a squeeze begins and again when expansion starts, so state transitions are never missed on a busy chart.
________________________________________
HUD Breakdown
The corner HUD (top right by default) gives you a live read of both indicator layers without having to inspect chart values:
Volatility — current squeeze state label: Tight Squeeze, Loose Squeeze, Expansion, or Neutral, color-coded to match the pressure bar
BW %-ile — the bandwidth percentile as a number, followed by a 10-block progress bar showing where current bandwidth sits on a visual scale from fully compressed to fully expanded
%B Zone — a text label for where price is in the envelope: Below Lower Band, Lower Quartile, Mid Range, Upper Quartile, or Above Upper Band
%B Reading — the smoothed %B value as a number
The HUD supports dark and light themes and can be repositioned to any corner of the pane.
________________________________________
Logic Layers
The indicator runs two independent state machines, each with its own hysteresis logic.
Squeeze State Machine Four states: Tight Squeeze (bandwidth percentile below the tight threshold), Loose Squeeze (between tight and loose thresholds), Neutral (mid-range bandwidth), and Expansion (above the expansion threshold). State transitions require the bandwidth percentile to move beyond the threshold by the hysteresis amount before the state flips. This prevents toggling at the boundary on marginal readings.
%B Zone State Machine Five zones tracking price location within the envelope: Below Lower Band, Lower Quartile, Mid Range, Upper Quartile, and Above Upper Band. The same hysteresis logic applies — once price enters a zone, it stays classified there until it moves decisively into the next zone.
The two machines run independently. You can be in a tight squeeze while price is in the upper quartile — which is a very different setup than a tight squeeze with price at the midline. The HUD shows both readings simultaneously so you always have the full picture.
________________________________________
Alerts
Seven alert conditions are built in.
BBP: Tight Squeeze Started — fires when the squeeze state first enters the tight tier. Use this to monitor compression setups across instruments before they break.
BBP: Tight Squeeze Released — fires when the tight squeeze breaks. This is the exit from compression, which may precede expansion or resolve back to neutral — both are meaningful.
BBP: Expansion Started — fires when bandwidth percentile crosses above the expansion threshold, confirming that volatility is breaking out of compression.
BBP: Price Above Upper Band — fires when %B reaches or exceeds 100, meaning price has tagged or broken through the upper band.
BBP: Price Below Lower Band — fires when %B reaches or falls below 0, meaning price has tagged or broken through the lower band.
BBP: %B Cross Above 50 — fires when smoothed %B crosses above the midline. Price location bias has shifted to the upper half of the envelope.
BBP: %B Cross Below 50 — fires when smoothed %B crosses below the midline. Price location bias has shifted to the lower half.
________________________________________
How to Trade With It
ATC BBP is a context indicator, not a signal generator. It tells you the volatility environment and price location so you can filter and frame your setups — it does not issue buy or sell signals on its own.
Step 1 — Check the Squeeze State First Before anything else, look at the HUD Volatility row and the pressure bar. Tight Squeeze means the market is coiling. Expansion means it's already moving. Neutral means neither is happening. This single read tells you what kind of market you're in before you look at anything else.
Step 2 — Use Squeeze Context to Filter Breakout Setups A tight squeeze is the setup condition for a potential expansion — it does not tell you which direction. When bandwidth is in the lowest 8–10 percentile of its history, start watching price action for the break, but wait for directional confirmation from your primary setup criteria before trading it. The squeeze tells you energy is building. Your edge tells you which way it breaks.
Step 3 — Use %B to Read Location Within the Setup Once you have a directional bias, %B tells you where price currently sits in the envelope. If you're looking for a long entry and %B is already above 80, price is extended toward the top of the range — it may be better to wait for a pullback toward the 50 midline. If %B is mid-range or lower quartile heading into a long setup, there's more room to run before hitting band resistance.
Step 4 — Look for Squeeze-Plus-Zone Confluence The highest-value reads come when both layers line up. A tight squeeze with %B at mid-range or lower quartile means compression is present and price has room to move higher if the break is bullish — watch for expansion to confirm with %B rising through 50. Expansion with %B crossing above 50 means volatility is moving and location bias is shifting bullish simultaneously — often the clearest confirmation that a breakout is real. Expansion with %B above 100 means price is already through the upper band in an expanding environment — valid in strong trends, a caution flag in range conditions.
Step 5 — Use Alerts for Multi-Instrument Monitoring If you're running ATC BBP across multiple instruments or timeframes, set the Tight Squeeze Started and Expansion Started alerts. These fire the moment a state changes so you're never watching the wrong chart while a setup develops elsewhere.
________________________________________
Settings Reference
Bollinger Bands BB Length (default 30) — period for the moving average and standard deviation calculation. Optimized default for QQQ. Increase for slower, more structural readings; decrease for more reactive readings on faster instruments.
BB StdDev Multiplier (default 1.6) — number of standard deviations for the band width. Optimized default for QQQ. Lower values tighten the bands and will increase the frequency of upper/lower extreme readings.
BB Source (default Close) — price source for the band calculation.
Smoothing %B HMA Smoothing (default 8) — Hull Moving Average length applied to %B. Set to 1 to disable smoothing and plot the raw %B line.
Squeeze Quality Bandwidth Percentile Window (default 125) — rolling lookback used to rank the current bandwidth. Larger windows produce more stable percentile readings against longer historical context.
Tight Squeeze Threshold (default 8) — bandwidth percentile below this level is classified as a tight squeeze.
Loose Squeeze Threshold (default 25) — bandwidth percentile between the tight threshold and this level is classified as a developing squeeze.
Expansion Threshold (default 75) — bandwidth percentile above this level is classified as active expansion.
State Hysteresis (default 3.0) — neutral band around each threshold. A state must be exceeded by this amount before the classification changes, preventing flicker on marginal readings.
%B Zones Upper Quartile (default 80) — %B above this is classified as Upper Quartile zone.
Lower Quartile (default 20) — %B below this is classified as Lower Quartile zone.
Upper Extreme (default 100) — %B at or above this is classified as Above Upper Band. Lower
Extreme (default 0) — %B at or below this is classified as Below Lower Band.
Visuals Shade %B Zones — toggles the background zone tinting on the oscillator pane. Show Squeeze Pressure Bar — toggles the colored state bar and diamond markers at the bottom of the pane. Color inputs for all states are fully adjustable if you prefer a different palette.
________________________________________
Recommended Instruments and Timeframes
ATC BBP is tested and validated on ES, NQ, CL, GC, SPY, QQQ, major equities, and major FX pairs. Recommended timeframes are 5m, 15m, 1h, 4h, and 1D. Default settings are optimized for QQQ. When applying to other instruments, the BB Length, StdDev Multiplier, and Bandwidth Percentile Window are the primary settings to adjust for the instrument's typical volatility profile.
________________________________________
Indicator

ATC Keltner Channel Breakout System v1.3.0What It Is
The ATC Keltner Channel Breakout System (ATC KCBS) is a breakout detection indicator built on one of the most reliable structural tools in technical analysis — the Keltner Channel — and rebuilt from the ground up to meet a higher quality standard.
Most retail Keltner indicators do one thing: draw a channel and let you guess when a breakout means something. The ATC KCBS does something different. It filters every breakout signal through a volume confirmation gate built on Z-score normalization, so the only breakouts that get flagged are the ones backed by real, statistically significant participation — not routine price noise pushing outside the bands on low volume.
The result is a cleaner, higher-quality signal set that respects your time and your capital.
________________________________________
Who It's Built For
The ATC KCBS is designed for active traders focused on momentum breakouts — particularly on U.S. equities, index ETFs (QQQ, SPY), and futures (ES, NQ, CL, GC) during regular trading hours. It performs best on the 1-minute through 15-minute timeframe for intraday traders, and scales cleanly up to the 1-hour, 4-hour, and daily timeframes for swing traders. Default settings are optimized for QQQ on the 1-minute chart during RTH (Regular Trading Hours).
________________________________________
The Core Concept: What Is a Keltner Channel?
A Keltner Channel consists of three lines plotted directly on your price chart:
• A basis line — a smoothed moving average of price, acting as the channel's center of gravity
• An upper band — the basis plus a multiple of the Average True Range (ATR)
• A lower band — the basis minus that same ATR multiple
When price is inside the channel, the market is respecting the channel's structure and typically moving in a mean-reverting or consolidating mode. When price closes outside either band, it signals that a breakout condition may be developing. The distance of the bands from the basis is dynamic — they widen during volatile markets and compress during quiet ones.
The Keltner Channel is a better volatility envelope than Bollinger Bands for many breakout applications because ATR measures directional price movement rather than raw price deviation, which makes the channel walls more responsive to real market conditions.
________________________________________
The Upgrade: What Makes This Different
Retail Keltner indicators treat all breakouts the same. A close above the upper band is a signal — end of story. The problem is that the majority of Keltner band breaks are low-conviction moves driven by thin conditions, choppy price action, or noise — not real directional momentum.
The ATC KCBS adds two meaningful upgrades over the generic version:
1. HMA-Smoothed Basis
The channel's center line uses a Hull Moving Average (HMA) instead of the standard simple moving average (SMA) or exponential moving average (EMA) found in most retail Keltner tools. HMA smoothing reduces lag without sacrificing responsiveness, so the basis line tracks price structure more accurately — and the channel bands it drives are positioned more precisely as a result.
2. Z-Score Normalized Volume Gate
This is the core enhancement. Before any breakout gets confirmed, volume on that bar is measured against a rolling statistical baseline — specifically, a Z-score calculated against the trailing volume mean and standard deviation. A breakout only gets flagged if volume is sufficiently elevated above that baseline in statistical terms.
This matters because a price close above the upper band with average or below-average volume is a very different event than the same close accompanied by a volume spike that is statistically exceptional relative to recent conditions. The volume gate filters the noise and focuses your attention on breakouts that have real conviction behind them.
You can toggle the volume gate on or off and adjust the Z-score threshold directly in the indicator settings.
________________________________________
What You See on the Chart
The ATC KCBS overlays directly on your price chart and renders the following:
The Channel
Three lines form the Keltner structure: the HMA basis in gold, and the upper and lower bands flanking it. The interior of the channel fills with a subtle color that reflects the current market state, making it easy to see at a glance whether conditions are bullish, bearish, compressing, or expanding.
Regime Color Coding
The channel fill, band colors, and background tint all update dynamically to communicate the current market regime:
• Green tones indicate an active bullish breakout bias
• Red tones indicate an active bearish breakout bias
• Blue tones indicate a channel expansion regime (rising volatility)
• Grey tones indicate a channel compression regime (contracting volatility, potential coiling before a move)
• Gold (default) indicates a neutral, ready state
This color system means you can scan your chart and immediately understand the context without reading anything. Green channel = bullish momentum active. Grey channel = market coiling.
Breakout Markers
When a confirmed breakout fires — meaning price has closed beyond the band AND volume has passed the Z-score threshold — the indicator places labeled markers directly on the chart at that bar. Bullish breakouts receive a green triangle and an "LONG" label. Bearish breakouts receive a red triangle and an "SHORT" label.
These markers only appear when both conditions are met. If the volume gate doesn't pass, no marker appears, even if price is outside the band.
Breakout Tags
In addition to the edge markers, the indicator plots branded "LONG CONFIRM" and "SHORT CONFIRM" labels near the breakout bar for additional visual clarity. You can control how many recent tags stay visible on the chart at one time via the settings.
Bar and Background Tinting
During an active breakout bias, candle bars are tinted with the direction color (green for bullish, red for bearish) to help you maintain context as the bias holds. A subtle background tint reinforces the same state. Both are individually toggleable if you prefer a cleaner look.
________________________________________
The HUD (Heads-Up Display)
The ATC KCBS contains a HUD panel that surfaces live data without cluttering your chart. The ATC KCBS HUD displays:
• Live State — the current overall status of the indicator, displayed prominently in the header row. Possible values: BULLISH, BEARISH, COMPRESSION, EXPANSION, or READY.
• Bias — whether a breakout bias is currently active, and how many bars remain in the bias hold window.
• Regime — the current channel regime (Compression, Expansion, or Neutral).
• Location — where price is relative to the channel right now: Inside Channel, Outside Upper, or Outside Lower.
• Price vs Basis — whether price is currently above or below the HMA basis, expressed in ticks for precision.
• Vol Gate — the real-time status of the volume gate. Shows PASS with the current Z-score when the threshold is met, or WAIT with the current Z-score when it is not. This is one of the most useful readouts in the HUD — it tells you exactly how close volume is to confirming the next breakout signal.
• Width — current channel width expressed in ticks.
• Width Z — the Z-score of current channel width relative to its own rolling history. Negative values indicate the channel is narrower than usual (compression). Positive values indicate it is wider than usual (expansion).
The HUD is available in dark and light themes and can be positioned in any corner of the chart.
________________________________________
The Regime Engine
Beneath the visual layer, the ATC KCBS tracks a volatility regime state based on where the channel width Z-score sits relative to empirically-derived thresholds. This is not a binary switch — the regime uses a hysteresis band to prevent false flickering at the threshold boundaries.
• Compression is flagged when channel width drops significantly below its historical
average, indicating the market is coiling. Compression is often a precursor to a sharp directional move. When you see COMPRESSION on the HUD and in the grey channel, the market is telling you it is building energy.
• Expansion is flagged when channel width rises significantly above its historical average, indicating volatility is increasing. Expansion during an active breakout is a confirmation of momentum. Expansion during a neutral bias can signal that conditions are becoming active.
• Neutral is the default state between compression and expansion.
These regime states are displayed in the HUD, reflected in the channel color, and feed directly into the overall live state displayed in the header row.
________________________________________
The Breakout Bias Hold
When a confirmed breakout fires, the indicator does not simply mark the bar and reset. It sets an active directional bias that persists for a configurable number of bars (default: 5). During the bias hold window, the HUD shows the direction and the bars remaining in the hold. The channel and background colors reflect the active bias throughout.
The bias clears early if price returns inside the channel before the hold window expires. This gives you a simple, clean way to track whether post-breakout price action is confirming the move or reversing it.
________________________________________
Alerts
The ATC KCBS includes two configurable alert conditions:
• Alert on Bullish Breakout — fires when a confirmed bullish breakout occurs (price closes above the upper band with volume gate passed)
• Alert on Bearish Breakout — fires when a confirmed bearish breakout occurs (price closes below the lower band with volume gate passed)
Both can be toggled independently. To use them, set up your alert in TradingView and select the appropriate condition. The alert message includes the ticker and timeframe for easy identification in multi-alert setups.
________________________________________
How to Trade With It
The ATC KCBS is a breakout signal tool. Its primary job is to tell you when a channel break has real participation behind it, and to maintain context about the market's current volatility regime. Here is a practical framework for using it:
Step 1 — Read the Regime First
Before anything else, check the regime. If the HUD says COMPRESSION and the channel is grey, the market is coiling. This is a waiting state — not a trading state. Watch for a breakout to develop as the regime transitions.
If the HUD says EXPANSION and the channel is blue, volatility is already elevated. Breakouts in expansion regimes tend to be more energetic but can also be more erratic. Confirmation from your other confluence tools matters more here.
Step 2 — Watch the Volume Gate
The Vol Gate row in the HUD is your pre-signal radar. When the market starts approaching the upper or lower band, watch the Vol Gate reading. If volume is already elevated (Z-score approaching or above the threshold), a breakout with confirmation is more likely. If volume is flat, a band touch is more likely to be noise.
Step 3 — Wait for the Confirmation Marker
Do not trade the touch of the band. Trade the confirmed close. A confirmed breakout is defined as: price closes beyond the band AND the volume Z-score exceeds the threshold. The "LONG CONFIRM" or "SHORT CONFIRM" label on the chart is your signal.
Step 4 — Assess Post-Breakout Price Action Within the Bias Hold
Once a confirmed breakout fires, monitor the bias hold countdown in the HUD. If price holds above the band (bullish) or below the band (bearish) during the hold window, the breakout is showing follow-through. If price returns inside the channel before the hold expires, treat it as a failed breakout and step aside.
Step 5 — Use the Channel as a Reference After Entry
After entering on a confirmed breakout, the HMA basis becomes your key reference level. The basis is a smoothed representation of where the market's center of gravity is. Price above the basis on a bullish breakout is good. Price that retreats to the basis quickly after the breakout is a warning.
________________________________________
Settings Reference
The indicator's settings are organized into clearly labeled groups:
Channel Configuration — Controls the HMA basis length, ATR length, and ATR multiplier. The defaults are optimized for QQQ on the 1-minute chart. Increase the basis length for smoother, slower channel response on higher timeframes.
Volume Gate — Toggle the volume confirmation requirement on or off. Adjust the Z-score lookback window and threshold. The default threshold (3.6) is calibrated for the optimized QQQ 1-minute profile. On other instruments or timeframes, a threshold between 1.0 and 2.0 is typically a reasonable starting point.
Session — Set the trading session and timezone. Defaults to the U.S. Regular Trading Hours session (9:30 AM — 4:00 PM Eastern). Extended hours users should adjust accordingly.
Visuals — Control all color settings, fill opacity, glow opacity, background tint, and bar tinting. Every visual element is independently adjustable. ATC's default palette (green, red, gold, grey, blue) is applied by default.
Signal Styling — Set the breakout tag text color and the maximum number of recent breakout tags kept on the chart.
Alerts — Toggle bullish and bearish alert conditions independently.
________________________________________
Intended Instruments and Timeframes
Validated for: ES, NQ, CL, GC (futures), SPY, QQQ (ETFs), major FX pairs, large-cap equities
Recommended timeframes: 1-minute, 5-minute, 15-minute, 1-hour, 4-hour, Daily
Default profile optimized for: QQQ, 1-minute, Regular Trading Hours
Indicator

Hysteresis VWAP Regime Bands [ATC]Hysteresis VWAP Regime Bands is a VWAP-based market context indicator designed to help traders read price location, VWAP extension, and volatility structure more clearly.
This script plots an anchored VWAP with ±1SD and ±2SD bands, then adds two differentiating context layers:
1. A hysteresis-based price-location classifier that helps reduce noisy zone flicker around VWAP band boundaries.
2. A rolling Z-score VWAP bandwidth regime classifier that identifies whether the VWAP envelope is compressed, normal, or expanded compared to recent conditions.
This is not a buy/sell signal generator. It is a structured VWAP context tool intended to help traders understand where price is trading relative to volume-weighted value.
________________________________________
What Makes This Different From Standard VWAP Bands
Most VWAP band indicators simply plot VWAP and deviation bands. This script adds stabilized interpretation logic on top of the bands.
1. Hysteresis-Based Price Zones
Standard band logic can become noisy when price hovers near +1SD, -1SD, +2SD, or -2SD. A simple raw comparison may flip the displayed state back and forth every few bars.
This script uses a configurable Price-Zone Hysteresis Buffer. Price must clear a VWAP band boundary by a defined margin before the zone state updates. This helps create cleaner, more stable zone readings.
2. VWAP Bandwidth Regime Classification
The script also measures the current width of the VWAP envelope and compares it to its own rolling baseline using a Z-score.
This creates three bandwidth regimes:
• Compressed Width — the VWAP envelope is unusually narrow.
• Normal Width — the VWAP envelope is near its recent baseline.
• Expanded Width — the VWAP envelope is unusually wide.
This helps traders distinguish whether the market is operating in a tighter value structure or a wider, more volatile structure.
Together, these two additions turn VWAP bands from simple plotted levels into a more complete VWAP context framework.
________________________________________
Core Components
VWAP Line
The VWAP line is the central volume-weighted value reference for the selected anchor period. It represents the average price weighted by traded volume.
Price above VWAP means price is trading above volume-weighted value.
Price below VWAP means price is trading below volume-weighted value.
A rising VWAP suggests value is moving higher.
A falling VWAP suggests value is moving lower.
VWAP can act as a trend anchor, mean-reversion reference, or decision level depending on the structure of the session.
________________________________________
±1SD Bands
The ±1 standard deviation bands define the inner VWAP value envelope.
Price between +1SD and -1SD is closer to central VWAP value.
Price holding above +1SD shows upper-side acceptance.
Price holding below -1SD shows lower-side acceptance.
These bands are often useful for identifying whether price is still trading near value or
beginning to move directionally away from value.
________________________________________
±2SD Bands
The ±2 standard deviation bands define the outer VWAP envelope.
Price beyond +2SD is in an upper extension area.
Price beyond -2SD is in a lower extension area.
These zones can indicate strong directional movement or stretched price location. They should not be treated as automatic reversal signals. Strong trend sessions can continue to hold near or beyond outer VWAP bands for extended periods.
________________________________________
Price-Location Zones
The script classifies price into five VWAP location zones:
Above +2SD — Upper Extreme
Price is trading beyond the upper outer VWAP band. This is an extended upper location relative to VWAP.
This may represent strong upside momentum, but it can also mean the move is becoming stretched. Traders should avoid assuming that upper extreme automatically means reversal.
________________________________________
Above +1SD — Upper Bias
Price is trading above the inner upper VWAP band but below the outer upper band.
This shows price is accepting above central value. In a strong session, this can support a bullish continuation context.
________________________________________
Mid-Band — Neutral
Price is trading between +1SD and -1SD.
This is the central VWAP value zone. Price is closer to volume-weighted fair value, and directional conviction may be weaker unless there is clear price action confirmation.
________________________________________
Below -1SD — Lower Bias
Price is trading below the inner lower VWAP band but above the outer lower band.
This shows price is accepting below central value. In a weak session, this can support a bearish continuation context.
________________________________________
Below -2SD — Lower Extreme
Price is trading beyond the lower outer VWAP band. This is an extended lower location relative to VWAP.
This may represent strong downside pressure, but it can also mean price is stretched to the downside. It should be interpreted with confirmation.
________________________________________
Bandwidth Regime
The bandwidth regime measures the width between the outer VWAP bands and normalizes it against recent conditions.
The script calculates the current VWAP envelope width as a percentage of VWAP, then compares that value to its own rolling mean and standard deviation.
This creates a normalized bandwidth Z-score.
Compressed Width
The VWAP envelope is unusually narrow compared to recent conditions.
This may suggest a more balanced, contained, or compressed environment. Compression does not predict direction by itself. It simply tells you that the VWAP structure is tighter than normal.
________________________________________
Normal Width
The VWAP envelope is near its recent baseline.
This suggests that current VWAP band width is within a typical range relative to recent conditions.
________________________________________
Expanded Width
The VWAP envelope is unusually wide compared to recent conditions.
This may suggest increased price dispersion, volatility, or stronger directional movement. Expanded width also means risk can be wider, so chasing late moves may become less attractive.
________________________________________
Color and Visual Interpretation
The color system is designed to make the VWAP structure easier to read at a glance. Colors are not standalone trade signals. They are visual context cues.
________________________________________
Cyan / Blue — VWAP and Central Value
The bright cyan VWAP line is the central fair-value reference.
How to interpret it:
• Price above VWAP = trading above volume-weighted value
• Price below VWAP = trading below volume-weighted value
• Rising VWAP = value is moving higher
• Falling VWAP = value is moving lower
The blue/cyan fill between +1SD and -1SD represents the central VWAP value area.
________________________________________
Green / Mint — Upper VWAP Structure
Green or mint colors represent upper VWAP structure.
This includes:
• Upper VWAP bands
• Upper-side price zones
• Upper extension areas
• Bullish or upside location context
How to interpret it:
• Price above +1SD shows upper-side acceptance.
• Price between +1SD and +2SD shows price is elevated above value.
• Price above +2SD shows upper extension.
Green does not automatically mean buy. It means price is trading in the upper VWAP structure.
________________________________________
Pink / Red — Lower VWAP Structure
Pink or red colors represent lower VWAP structure.
This includes:
• Lower VWAP bands
• Lower-side price zones
• Lower extension areas
• Bearish or downside location context
How to interpret it:
• Price below -1SD shows lower-side acceptance.
• Price between -1SD and -2SD shows price is depressed below value.
• Price below -2SD shows lower extension.
Red does not automatically mean short. It means price is trading in the lower VWAP structure.
________________________________________
Blue / Cyan Fill — Neutral Value Zone
The area between +1SD and -1SD is lightly filled with a blue/cyan tint.
How to interpret it:
• Price inside this area is closer to volume-weighted value.
• This zone often reflects more balanced conditions.
• Directional conviction may be weaker unless price breaks and holds outside the inner bands.
• Traders may use this area to identify chop, mean reversion, or developing acceptance near VWAP.
________________________________________
Green Fill — Upper Extension Zone
The area between +1SD and +2SD may be filled with a green tint.
How to interpret it:
• Price holding in this area shows upper-side acceptance.
• During strong sessions, pullbacks toward +1SD can act as continuation areas.
• If price loses +1SD and cannot reclaim it, upper-side acceptance may be weakening.
________________________________________
Red Fill — Lower Extension Zone
The area between -1SD and -2SD may be filled with a red tint.
How to interpret it:
• Price holding in this area shows lower-side acceptance.
• During weak sessions, pullbacks toward -1SD can act as continuation areas.
• If price reclaims -1SD and holds above it, lower-side pressure may be weakening.
________________________________________
Violet / Purple — Compressed Width
Violet or purple represents a compressed VWAP bandwidth regime.
How to interpret it:
• VWAP bands are tighter than normal.
• Price may be in a more balanced or contained structure.
• Volatility is relatively compressed.
• Compression can precede expansion, but it does not predict direction.
Compression means the VWAP envelope is narrow, not necessarily bullish or bearish.
________________________________________
Amber / Orange — Expanded Width
Amber or orange represents an expanded VWAP bandwidth regime.
How to interpret it:
• VWAP bands are wider than normal.
• Price dispersion has increased.
• Volatility or directional movement may be elevated.
• Risk may be wider because price is moving across a larger structure.
• Late entries after a large move may require more caution.
Expansion means the VWAP envelope is wide. It does not automatically mean the move is over.
________________________________________
Background Tints
The script can apply subtle background tints for extreme price zones or bandwidth regimes.
How to interpret them:
• Green tint = upper extreme or strong upper-side context
• Red tint = lower extreme or strong lower-side context
• Violet tint = compressed bandwidth regime
• Amber tint = expanded bandwidth regime
If an extreme price zone and a bandwidth regime occur at the same time, the script prioritizes the more immediate price-location context so the chart remains readable.
________________________________________
HUD Display
The HUD provides a compact summary of the current VWAP structure.
It includes:
• VWAP Regime — current anchor mode and source price
• VWAP — current VWAP value
• +1SD / -1SD — current inner band values
• +2SD / -2SD — current outer band values
• Price Zone — current hysteresis-confirmed VWAP location
• Band Regime — current bandwidth regime and width Z-score
• Use — reminder that this is a context tool and should be confirmed with price action
The two most important HUD fields are Price Zone and Band Regime.
________________________________________
Price Zone
This shows where price is trading relative to the VWAP bands.
Because the zone logic uses hysteresis, it does not flip on every minor touch of a band. Price must move beyond the band boundary by the configured buffer before the state changes.
________________________________________
Band Regime
This shows whether the VWAP envelope is compressed, normal, or expanded compared to recent conditions.
This helps traders understand whether price is moving inside a tight VWAP structure or a wider volatility structure.
________________________________________
Anchor Modes
The script supports three anchor modes.
Session
VWAP resets at the selected regular trading session. This is the default mode and is best suited for intraday trading.
The default session is 0930–1600 New York time.
The session reset logic is designed to work whether extended-hours bars are visible or hidden. This helps keep the session VWAP behavior consistent on regular-hours-only charts.
________________________________________
Week
VWAP resets at the start of a new week.
This can be useful for traders who want broader weekly value context on intraday or lower-timeframe charts.
________________________________________
Month
VWAP resets at the start of a new month.
This can be useful for traders monitoring broader monthly value structure.
________________________________________
Source Price Options
The VWAP source can be configured as:
• hlc3 — average of high, low, and close
• hl2 — average of high and low
• ohlc4 — average of open, high, low, and close
• close — close-only source
For most intraday use, hlc3 is a balanced default.
________________________________________
Alerts
The script includes alert conditions for:
• VWAP Cross
• +1SD Cross
• -1SD Cross
• +2SD Cross
• -2SD Cross
• VWAP Zone Change
• VWAP Bandwidth Regime Change
The zone-change and regime-change alerts are the most specific to this script’s added logic. They are based on stabilized state models rather than raw band touches alone.
________________________________________
How to Use It
Use this indicator as a VWAP context layer, not as a standalone trading system.
A practical workflow:
1. Start with the VWAP line to identify whether price is above or below volume-weighted value.
2. Use the Price Zone to determine whether price is neutral, biased above value, biased below value, or extended.
3. Use the Band Regime to determine whether the VWAP envelope is compressed, normal, or expanded.
4. Use price action, structure, volume, or your own entry model to confirm trades.
________________________________________
Practical Interpretation Examples
Example 1
Price Zone: Above +1SD — Upper Bias
Band Regime: Expanded Width
This means price is trading above the central VWAP value area while the VWAP envelope is wider than normal.
The context is bullish in location, but risk may also be wider because price dispersion has expanded. In this environment, traders may prefer pullback confirmation instead of chasing after a large move.
________________________________________
Example 2
Price Zone: Mid-Band — Neutral
Band Regime: Compressed Width
This means price is near VWAP value and the bands are unusually tight.
This often represents a balanced or compressed environment. Traders may wait for price to break and hold outside the inner VWAP bands before treating the move as directional.
________________________________________
Example 3
Price Zone: Below -2SD — Lower Extreme
Band Regime: Expanded Width
This means price is extended below VWAP while the VWAP envelope is wider than normal.
This may reflect strong downside pressure, but it may also mean short-side chase risk is elevated. Confirmation from price action is important.
________________________________________
Recommended Markets and Timeframes
This indicator is designed for liquid instruments where VWAP is meaningful, including:
• Equity index futures
• Major ETFs
• Liquid large-cap stocks
• Major FX pairs
• Liquid crypto markets
Recommended intraday timeframes:
• 1-minute
• 3-minute
• 5-minute
• 15-minute
Session anchor mode is intended primarily for intraday charts. Weekly and monthly anchors may be useful when viewing broader value structure.
________________________________________
Important Notes
This indicator does not predict future price movement. It does not issue buy or sell signals. It provides a structured view of VWAP location, VWAP extension, and VWAP bandwidth regime so traders can make more informed decisions within their own strategy.
VWAP bands, price-location zones, and bandwidth regimes should be interpreted as context. Always confirm with price action, volume, risk controls, and your own trading plan.
Indicator

High-Momentum Option Breakout(MastersinMarkets)Overview
The High-Momentum Option Breakout is a technical tool designed to identify high-probability volatility expansions in equity indices. By combining price action breakouts with trend, strength, and volume filters, it aims to pinpoint specific windows where momentum is likely to accelerate.
How It Works
The script utilizes a multi-layered confirmation process to reduce "fakeouts" often found in standard breakout systems:
Breakout Engine: It monitors a user-defined lookback period to establish dynamic upper and lower bands based on recent price extremes.
Trend Hierarchy: A 200-period Exponential Moving Average (EMA) acts as a high-timeframe filter, ensuring signals align with the broader market regime.
Strength Filter (ADX): To confirm momentum, the script requires the Average Directional Index (ADX) to be above a specific threshold (default 20), indicating a trending environment rather than a sideways churn.
Volume Confirmation: Signals are only triggered when current volume exceeds the 20-period average, suggesting institutional participation in the move.
Dynamic Risk Management: The indicator plots a trailing exit level based on the Average True Range (ATR), which adjusts to market volatility to help protect capital.
How to Use
Long Bias (BUY CE): Triggered when price crosses above the upper band while trading above the 200 EMA with rising ADX and high volume.
Short Bias (BUY PE): Triggered when price crosses below the lower band while trading below the 200 EMA with rising ADX and high volume.
Momentum Exit: While the ATR-based stop is the primary defense, the script also suggests an exit if ADX begins to fall, signaling that the immediate momentum "steam" may be dissipating.
Originality and Value
This script is unique because it integrates momentum decay (falling ADX) as a specific exit trigger tailored for option buyers who need to manage time decay (Theta). It automates the confluence of four distinct technical pillars into a single, non-repainting visual interface.
Risk Disclaimer
Trading involves significant risk. This indicator is a tool for analysis and does not guarantee future profits. Past performance, including the visual signals shown on this chart, is not indicative of future results. Users should always use independent judgment and proper position sizing.
Indicator

SMC Alpha Engine [PhenLabs]📊 SMC Alpha Engine
Version: PineScript™ v6
📌 Description
The SMC Alpha Engine is a comprehensive Smart Money Concepts indicator that automates institutional trading pattern recognition. Built for traders who understand that confluence is king, this indicator stacks multiple SMC elements together and scores them in real-time, allowing you to focus exclusively on high-probability setups.
Rather than manually tracking HTF bias, market structure, liquidity levels, order blocks, and fair value gaps separately, the SMC Alpha Engine consolidates everything into a unified scoring system. When enough factors align, you get a signal. When they don’t, you wait. This systematic approach removes emotion and subjectivity from SMC trading.
The indicator is designed around one core principle: only trade when the probabilities are stacked in your favor. By requiring multiple confluence factors before generating signals, it filters out the noise and keeps you focused on setups that institutional traders actually care about.
🚀 Points of Innovation
Automated confluence scoring system that evaluates 6 distinct SMC factors in real-time
HTF-to-LTF bias alignment ensuring trades flow with institutional direction
Intelligent liquidity sweep detection using wick-ratio analysis for confirmation
ATR-based FVG quality filtering that eliminates noise and shows only significant imbalances
Anti-spam signal logic preventing overtrading during volatile market conditions
Session-aware killzone integration timing entries with institutional activity windows
🔧 Core Components
HTF Bias Engine: Analyzes higher timeframe swing structure to establish directional bias using pivot high/low comparisons
Market Structure Module: Detects BOS (Break of Structure) and CHoCH (Change of Character) with real-time confirmation
Premium/Discount Calculator: Dynamically maps price zones relative to recent swing range equilibrium
Liquidity Tracker: Monitors swing points as liquidity targets and identifies sweep events with rejection confirmation
POI Detector: Identifies valid Order Blocks with displacement requirements and Fair Value Gaps with ATR filtering
Confluence Scorer: Aggregates all factors into bull/bear scores displayed on real-time dashboard
🔥 Key Features
Multi-timeframe analysis combining HTF directional bias with LTF precision entries
Customizable confluence threshold from 1 (low filter) to 5 (sniper mode)
Three killzone sessions: London (02:00-05:00), NY AM (08:30-11:00), NY PM (13:30-16:00)
Flexible mitigation options for OBs and FVGs: Wick, Close, 50%, or None
Visual structure labeling for BOS and CHoCH events on chart
Real-time info dashboard showing all current market conditions and scores
Built-in alert conditions for BOS, liquidity sweeps, and high-confluence signals
🎨 Visualization
Premium Zone: Red-tinted box above equilibrium indicating sell-side interest areas
Discount Zone: Green-tinted box below equilibrium indicating buy-side interest areas
Equilibrium Line: Dotted gray line marking the 50% level of current range
Order Blocks: Color-coded boxes (green for bullish, red for bearish) showing institutional candles
Fair Value Gaps: Teal boxes for bullish FVGs, maroon boxes for bearish FVGs
Killzone Backgrounds: Blue (London), Orange (NY AM), Purple (NY PM) session highlighting
Info Table: Top-right dashboard displaying HTF bias, LTF trend, zone, killzone status, and scores
📖 Usage Guidelines
HTF Settings
HTF Timeframe - Default: 60 - Controls higher timeframe for directional bias
HTF Swing Length - Default: 10, Range: 3+ - Determines pivot sensitivity for HTF trend
Market Structure Settings
LTF Swing Length - Default: 3, Range: 1-10 - Controls swing detection sensitivity
Show BOS/CHoCH - Default: Off - Toggles structure labels on chart
Show Strong/Weak Points - Default: Off - Displays swing point classifications
POI Settings
Show Valid Order Blocks - Default: Off - Displays OBs that caused displacement
Show Unmitigated FVGs - Default: On - Shows active fair value gaps
Filter FVG by ATR - Default: On - Only shows FVGs larger than 0.5x ATR
OB Mitigation Type - Options: Wick, Close, None - Determines when OBs are invalidated
FVG Mitigation Type - Options: Wick, Close, 50%, None - Determines when FVGs are filled
Confluence Settings
Minimum Score for Signal - Default: 4, Range: 1-5 - Required confluence level for entries
Show Entry Signals - Default: On - Toggles LONG/SHORT labels on chart
✅ Best Use Cases
Trend continuation trades during active killzone sessions with HTF alignment
Discount zone entries on bullish HTF bias with recent liquidity sweep below
Premium zone shorts on bearish HTF bias after liquidity grab above recent highs
Reversal identification following CHoCH with POI confluence in optimal zone
Filtering existing strategy signals by requiring minimum confluence score
⚠️ Limitations
HTF bias detection requires sufficient price history for accurate pivot identification
Liquidity sweep detection depends on wick-ratio settings and may miss some events
Order blocks require displacement confirmation which may exclude some valid zones
Confluence scoring is probabilistic and does not guarantee profitable outcomes
Killzone times are based on EST/EDT and require timezone adjustment for other regions
Signal spam prevention may delay valid signals by up to 10 bars after previous signal
💡 What Makes This Unique
Unified SMC Framework: Combines all major SMC concepts into one cohesive indicator rather than requiring multiple tools
Objective Scoring System: Removes subjectivity by quantifying confluence into measurable scores
Institutional Timing Integration: Built-in killzone awareness ensures signals align with high-volume sessions
Quality Filtering: ATR-based FVG filtering and displacement-required OBs eliminate low-quality setups
Anti-Overtrading Logic: Smart signal spacing prevents emotional trading during choppy conditions
🔬 How It Works
Step 1: HTF Bias Determination
Analyzes higher timeframe pivot highs and lows
Compares consecutive pivots to identify HH/HL (bullish) or LH/LL (bearish) sequences
Establishes directional filter that all signals must respect
Step 2: LTF Structure Mapping
Detects swing points on execution timeframe
Identifies BOS when price closes beyond confirmed swing level
Recognizes CHoCH when structure break occurs against current trend
Step 3: Confluence Calculation
Awards +1 for HTF bias alignment
Awards +1 for active killzone timing
Awards +1 for optimal zone positioning (discount for longs, premium for shorts)
Awards +1 for price at unmitigated POI
Awards +1 for recent liquidity sweep in trade direction
Awards +1 for recent supportive structure break
Step 4: Signal Generation
Compares total score against user-defined minimum threshold
Requires candle confirmation (bullish close for longs, bearish close for shorts)
Applies 10-bar spacing filter to prevent signal clustering
💡 Note:
This indicator is designed for traders already familiar with Smart Money Concepts. While it automates detection and scoring, understanding why each factor matters will significantly improve your ability to filter signals and manage trades effectively. Use the minimum confluence setting to match your risk tolerance, higher values mean fewer but higher-quality signals. Indicator

Indicator

Indicator

Support & Resistance AI LevelScopeSupport & Resistance AI LevelScope
Support & Resistance AI LevelScope is an advanced, AI-driven tool that automatically detects and highlights key support and resistance levels on your chart. This indicator leverages smart algorithms to pinpoint the most impactful levels, providing traders with a precise, real-time view of critical price boundaries. Save time and enhance your trading edge with effortless, intelligent support and resistance identification.
Key Features:
AI-Powered Level Detection: The LevelScope algorithm continuously analyzes price action, dynamically plotting support and resistance levels based on recent highs and lows across your chosen timeframe.
Sensitivity Control: Customize the sensitivity to display either major levels for a macro view or more frequent levels for detailed intraday analysis. Easily adjust to suit any trading style or market condition.
Level Strength Differentiation: Instantly recognize the strength of each level with visual cues based on how often price has touched each one. Stronger levels are emphasized, highlighting areas with higher significance, while weaker levels are marked subtly.
Customizable Visuals: Tailor the look of your chart with customizable color schemes and line thickness options for strong and weak levels, ensuring clear visibility without clutter.
Proximity Alerts: Receive alerts when price approaches key support or resistance, giving you a heads-up for potential market reactions and trading opportunities.
Who It’s For:
Whether you're a day trader, swing trader, or just want a quick, AI-driven way to identify high-probability levels on your chart, Support & Resistance AI LevelScope is designed to keep you focused and informed. This indicator is the perfect addition to any trader’s toolkit, empowering you to make more confident, data-backed trading decisions with ease.
Upgrade your analysis with AI-powered support and resistance—no more manual lines, only smart levels! Indicator

Entropy-Based Adaptive SuperTrendOverview:
Introducing the Entropy-Based Adaptive SuperTrend – a groundbreaking trading indicator designed to adapt dynamically to market conditions using market entropy. This enhanced SuperTrend indicator adjusts its sensitivity according to the level of chaos (or order) in price movements, providing more stable signals during volatile periods and more responsive signals when the market becomes orderly.
Key Features:
Entropy-Adaptive Mechanism: By incorporating an entropy measure, this indicator estimates the degree of unpredictability in the market. During high entropy periods (more chaotic), signals are made less sensitive, while during low entropy periods, the indicator reacts more quickly to price changes.
Adaptive ATR Multiplier: Unlike traditional SuperTrend indicators that use a fixed ATR multiplier, this version calculates a dynamic ATR multiplier based on the entropy score, ensuring more flexibility and adaptability in setting stop levels.
Visual Clarity: The indicator is overlayed on the price chart with customizable visual elements. The bullish and bearish trends are color-coded for ease of use, and optional entry signals ("L" for long and "S" for short) are plotted to clearly mark potential entry opportunities.
Alerts for Key Opportunities : Never miss an opportunity with built-in alerts for buy and sell signals. Traders can easily configure these alerts to be notified instantly when market conditions trigger a new trend.
How It Works:
Entropy Calculation: The entropy of the price data is calculated over a user-defined period, giving an indication of the degree of randomness in the price movements. The result is then smoothed to reduce noise and create a meaningful trend indication.
Dynamic ATR Adjustment: The ATR (Average True Range) multiplier, which controls the distance of the trailing stop, is adjusted based on the entropy score. This allows the SuperTrend line to widen in chaotic times, reducing false signals, while tightening in orderly times, allowing quicker trend captures.
Parameters Explained:
Entropy Settings: Control the sensitivity of entropy calculations, including the look-back period, number of bins for price distribution, and smoothing length.
Adaptive Settings: Adjust how the indicator adapts to different levels of entropy, including the adaptation period and the filtering weight.
SuperTrend Settings : Customize the ATR period and the dynamic multiplier range to fine-tune the trailing stops for your trading style.
Visual Settings: Choose your preferred colors for bullish and bearish trends, and decide if you want the entry labels displayed directly on the chart.
Use Cases:
Swing Traders can utilize the indicator to capture trend reversals while filtering out the noise during high entropy periods.
Intraday Traders can adapt the settings for shorter time frames to benefit from dynamic adjustments that reduce overtrading and false signals.
Risk Management: The entropy-based adaptive feature provides an edge in risk management by reducing sensitivity during times of increased chaos, thus helping to limit unnecessary trades.
How to Use It:
Look for entry labels ("L" for long, "S" for short) to identify potential opportunities.
Use the color-coded trendlines to determine market bias: greenish hue for bullish trends, reddish hue for bearish trends.
Customize the input settings to align with your preferred market timeframe and risk profile.
Alerts & Notifications:
Built-in alerts notify you of significant trend changes. Simply enable these alerts to receive updates when a new long or short opportunity is detected, helping you stay ahead without needing to watch the screen constantly.
Customization Tips:
Longer Timeframes : Increase the Entropy Period to better capture macro trends in high timeframe charts.
Higher Volatility Markets: Increase the ATR Max Multiplier to ensure stops are set farther away during high entropy.
Lower Volatility Markets: Use a lower ATR Base Multiplier and tighter entropy thresholds to capture rapid price movements.
Final Thoughts:
The Entropy-Based Adaptive SuperTrend indicator merges traditional trend-following logic with an adaptive mechanism driven by market entropy, aiming to address the challenges of whipsaws and false signals common in conventional SuperTrend setups. This indicator offers an intelligent and flexible way to track market trends, suitable for both beginners and experienced trade Indicator

Thrax - Intraday Market Pressure ZonesTHRAX - INTRADAY MARKET PRESSURE ZONES
This indicator identifies potential support and resistance zones based on areas of significant market pressure. It dynamically plots these zones and adjusts their visibility based on real-time price action and user-defined thresholds. The indicator is useful for traders seeking to understand intraday market pressure, visualize zones of potential price reversals, and analyze volume imbalances at critical levels.
1. Support/Resistance Zones: Wherever the price retraces significantly from its high a support zone is drawn and when it retraces significantly from it low a resistance zone is drawn. The significant retracing is measured by the wick threshold percentage. For instance, if set to 75%, it implies price retracement of 75% either from high or from low for a particular candel
Volume delat: Displays volume delta information where the zones are formed. This can be used by trader to consider only those zones where delta is significant.
2. Breakout Detection: Monitors for price breakouts beyond established zones, deleting zones that are invalidated by price movement. when the price breaks a given zone with the threshold, it is considered to be mitigated and chances of trend continuation is decent.
Candle Coloring: Uses color codes (green, red, and yellow) to represent bullish, bearish, and indecisive (doji) candles, aiding quick visual assessment.
INPUTS
1. Wick Threshold (%) : Sets the minimum wick percentage required for a candle to be considered a support or resistance candidate.
2. Breakout Threshold (%) : Determines the percentage above or below a support or resistance zone that defines a breakout condition. if breaks a zone with the set threshold then the zone will be considered mititgated.
3. Max Number of Support/Resistance Zones : Limits the maximum number of support/resistance zones displayed on the chart, ranging from 1 to 5.
4. Show Wick Percentage Labels : Toggles the display of percentage values for upper and lower wicks on each candle.
TRADE SETUP
Identifying Entry Points: Look for the formation of support or resistance zones. Wait for price to retrace to these zones. if you are willing to take risk, you can consider even zones with low delta. If you want to be more cautious you should consider zones with high delta.
Volume Confirmation: Use the volume information to confirm the strength of the zone. Strong volume differences (displayed as labels) can indicate significant market pressure at these levels.
Breakout Trades: If price breaks through a support/resistance zone by more than the breakout threshold, consider this a signal for a potential trend continuation in the breakout direction.
Risk Management: Set stop-loss levels slightly outside of the identified zones to minimize risk in case of false breakouts. This can be set in input setting for breakout threshold.
Bonus Tip : Mark your significant highs and lows from where prices have retraced multiple times in the near past and if the zone is near these levels it can serve s a strong candidate of support or resistance
Therefore, in conclusion monitor the zones, based on delta and volume presence filter out the zone, wait for price retracement to the zone, intiate the trade with stop loss below zone with a set percentage.
Indicator

Market Internals: VolumeThe indicator plots the total volume of the NYSE and NASDAQ exchanges and identifies periods with significant asymmetry between Up Volume and Down Volume. It can be used as an additional tool to confirm broad market sentiment.
Chart shows Total Volume (TVOL) bars for SPY daily chart. Green bars for UVOL>>DVOL, Red for DVOL>>UVOL. Neutral bars are gray. Blue line shows median TVOL.
Rationale:
Up Volume (UVOL) and Down Volume (DVOL) represent the total volume of stocks that have increased or decreased in price, respectively, compared to the previous session's closing price. The magnitude of the price change is irrelevant.
When UVOL is significantly higher than DVOL, it indicates a prevailing buying sentiment in the broad market. Conversely, when DVOL is higher, it signals prevailing selling sentiment.
Occasionally, the UVOL/DVOL (VOLD) ratio may be misaligned with the movement of the S&P index. The picture below illustrates an example of a day when the S&P declined, yet the UVOL was twice larger than DVOL. Such a divergence can suggest that the S&P was pulled down by a decline in a few large-cap stocks, while the broader market remained positive. In this case, the divergence led to a continuation of the rally.
Thus, VOLD, when combined with volume analysis, can be an effective tool for confirming market trends.
Parameters:
VOLD Ratio – minimum ratio of UVOL/DVOL or DVOL/UVOL. Indicator will color code volume columns when condition is true (“green” means buying; “red” selling).
Median Length – number of periods to calculate median TVOL.
Show Divergencies – indicator marks divergencies between price and volume sentiments on the main chart. Only works for SPY chart.
Users can also choose which exchanges (NASDAQ/NYSE) to use for volume calculation.
Notes:
Volume is shown in millions of contracts
Indicator should be used on the daily or higher timeframes. It won't work properly on the intraday charts
Disclaimer
This indicator should not be used as a standalone tool to make trading decisions but only in conjunction with other technical analysis methods.
Indicator

Indicator

Indicator

LNL Scalper ArrowsLNL Scalper Arrows
The indicator consist of various different types of candlestick patterns that are truly time tested by multiple veteran traders. These arrows are a combination of short-term scalping strategies taught by Linda Raschke & a trader that goes by name Quant Trade Edge. These strategies/patterns occur regularly within the markets. They offer high probability quick moves during the trending days. These four patterns are based on pure price action, no oscillators, no trend, no momentum indicators involved. Trend (ema) is there just as a simple trend gauge.
LNL Scalper Arrows were designed specifically for intra-day trading. Mostly useful for the futures but also stocks as well. These arrows can work anywhere between the fast-moving 512 or 1600 tick charts to a 1min, 2min and up to 5min or 10min charts.
Trend Gauge (Exponential Moving Average)
Nothing fancy just a classic EMA that can guide the direction of the short-term trend. I have added a custom coloring of the EMA that is based on a simple RSI filter. That should help to visualize the non-directional moments within the trend. Although the length is adjustable, for scalping it is better to focus on smaller periods such as 9, 13 or 20 or 34 but anything above 50 loses its purpose as a short-term trend gauge. Again, this is a scalping tool not a trend tool, you are not going to get rid of the fakeouts by increasing the period of the trend.
Tail Arrows (Eat the Tail Pattern)
Tail is a candlestick that is either a price rejection spike, or a flag continuation pattern on a lower time frame. A failed action. It is basically a candle with much bigger wick (shadow) of the candle than the actual body. Such candles are usually telling us about strong participation from the other side of the market. Eat the tail pattern occurs whenever the low of the Tail candle is immediately broken on a following candle "the tail is eaten alive". Such a breaks occurs in a most aggressive types of markets with a strong momentum. DO NOT try to trade this in a low volume or a ranging market. Tail Arrows are the most aggressive arrows & should be only used on the highest volume or a parabolic momentum markets.
Scalp Arrows (Scallop Pattern)
Known as Scallops or minor lows or highs, these patterns are the most common within the all scalper arrows. They occur regularly on 1min & 5min charts - basically everyday. Scallops provide the best possible risk to reward entry within the trend without the need of any indicators or oscillators. The Scallop Up 3 bar pattern consist of a high that is lower that the previous high but also low that is lower than the previous low. Scallop Up or a minor low triggers when the last high is broken, creating a three bar mountain or a peak within the 5 bar span.
Hoagie Arrows (Hoagie Pattern)
Hoagies occur way less often than any other scalping patterns. Hoagies represent two (or more) inside candles within the shadow of a first candle. Such a formation is creating a small compression or a range that sooner or later breaks out. The hoagie is triggered whenever the high or low of the shadow (first) candle is broken. The great thing about the hoagies is that they can work either way despite the trend direction. Although this indicator is coded for the 2 bar hoagies, there are no limitations on how much inside bars can hoagie include.
Umbrella Arrows (Umbrella Pattern)
Another really awesome 3 bar pattern that is really fun to trade. Umbrella occurs when the candle before the previous candle is a pin bar or a tail bar and the body of the previous candle is within the shadow or a wick of the candle before. The umbrella is triggered once the high or low of the previous bar is broken. Umbrellas are more frequent than Hoagies but occur much less than the Scallops.
Outside Bar Wedges (Outside Bar Pattern)
Pretty much self-explanatory candlestick pattern. Outside Bar is basically any bar that peaks outside of the both ends of the previous candle. So the range of the candle is higher & it looked beyond the high and beyond the low of the previous candle. These candles are signalizing the potenial momentum change. Ouside Bars usually occur at the tops or bottoms of the moves. I decided to add them because they can serve as a great addition to these scalping patterns.
Signal vs. SignalBreak Mode
The trigger can be viewed in two different ways:
1. Signal: Plots the trigger before the trigger bar, basically right when the pattern is formed but NOT YET triggered. The signal is triggered once the next candle break the high or low of the current candle.
2. SignalBrake: Plots the trigger after the break of the high or low of the actual pattern. It is basically a candle after the signal candle. (Signal is better for trading because it gives you time to prepare for the actual break of the high or low = the actual signal. SignalBrake is great for looking back in history only for the patterns that actually traded).
Pin Bar BTW Ratio
Pin Bar (Body-To-Wick) Ratio represents the size of the body of a pin bar candle for Eat the Tail and Umbrella patterns. Pin Bar BTW Ratio measures the ratio between the wick & the body of the candle. Ref. interval is 2.0 - 5.0 (ideal pin bar is 2.0 - 3.0 = the wick or a shadow is 2x - 3x bigger than the body of the candle)
ATR Stop & Target Labels
I also created three simple labels (tables) that can show you the ideal target & stop as well as the current ATR. Since LNL Scalper Arrows consist of high probability scalping patterns, a good rule of thumb to follow is to use a half of the current ATR as a target and a current ATR as a stop (or two times the target). So if the current 7 period ATR is 30 the target would be 15 pts. and a stop around 30 pts. With such a risk management you should aim for a win rate 70% or higher. Obviously you can adjust the risk management in the settings to your personal preference.
Low Range vs. High Range Markets
There are two major downsides with the Scalper Arrows:
1. You need volume and a volatility. These patterns really do struggle in ranging "boring" sideways action. It is absolutely crucial to recognize the current market environment and really stay cautions and (or completely out) in case the chop continues. Adding something like DMI can help you recognize the potential flat markets.
2. Not only do you need volume & momentum, you also need a decent range. This indicator works better on a rangy market such as NQ futures or YM. But are much tougher to trade on lower range markets such as some stocks or ZB futures or basically any other lower range market.
Hope it helps. Indicator

PIVOT STRATEGY [INDIAN MARKET TIMING]
A Back-tested Profitable Strategy for Free!!
A PIVOT INTRADAY STRATEGY for 5 minute Time-Frame , that also explains the time condition for Indian Markets
The Timing can be changed to fit other markets, scroll down to "TIME CONDITION" to know more.
The commission is also included in the strategy .
The basic idea is when ,
1) Price crosses above ema1 ,indicated by pivot highest line in green color .
2) Price crosses below ema1 ,indicated by pivot lowest line in red color .
3) Candle high crosses above pivot highest , is the Long condition .
4) Candle low crosses below pivot lowest , is the Short condition .
5) Maximum Risk per trade for the intraday trade can be changed .
6) Default_qty_size is set to 60 contracts , which can be changed under settings → properties → order size .
7) ATR is used for trailing after entry, as mentioned in the inputs below.
// ═════════════════════════//
// ————————> INPUTS <————————— //
// ═════════════════════════//
Leftbars —————> Length of pivot highs and lows
Rightbars —————> Length of pivot highs and lows
Price Cross Ema —————> Added condition
ATR LONG —————> ATR stoploss trail for Long positions
ATR SHORT —————> ATR stoploss trail for Short positions
RISK —————> Maximum Risk per trade for the day
The strategy was back-tested on RELIANCE ,the input values and the results are mentioned under "BACKTEST RESULTS" below .
// ═════════════════════════ //
// ————————> PROPERTIES<——————— //
// ═════════════════════════ //
Default_qty_size ————> 60 contracts , which can be changed under settings
↓
properties
↓
order size
// ═══════════════════════════════//
// ————————> TIME CONDITION <————————— //
// ═══════════════════════════════//
The time can be changed in the script , Add it → click on ' { } ' → Pine editor→ making it a copy [right top corner} → Edit the line 25 .
The Indian Markets open at 9:15am and closes at 3:30pm .
The 'time_cond' specifies the time at which Entries should happen .
"Close All" function closes all the trades at 3pm, at the open of the next candle.
To change the time to close all trades , Go to Pine Editor → Edit the line 103 .
All open trades get closed at 3pm , because some brokers don't allow you to place fresh intraday orders after 3pm .
NSE:RELIANCE
// ═══════════════════════════════════════════════ //
// ————————> BACKTEST RESULTS ( 128 CLOSED TRADES )<————————— //
// ═══════════════════════════════════════════════ //
INPUTS can be changed for better back-test results.
The strategy applied to NIFTY ( 5 min Time-Frame and contract size 60 ) gives us 60% profitability y , as shown below
It was tested for a period a 6 months with a Profit Factor of 1.45 ,net Profit of 21,500Rs profit .
Sharpe Ratio : 0.311
Sortino Ratio : 0.727
The graph has a Linear Curve with consistent profits .
The INPUTS are as follows,
1) Leftbars ————————> 3
2) Rightbars ————————> 5
3) Price Cross Ema ——————> 150
4) ATR LONG ————————> 2.7
5) ATR SHORT ———————> 2.9
6) RISK —————————> 2500
7) Default qty size ——————> 60
NSE:RELIANCE
Save it to favorites.
Apply it to your charts Now !!
↓
FOLLOW US FOR MORE !
Thank me later ;)
Strategy

Indicator

Indicator

Indicator
