CandelaCharts - Order Blocks📝 Overview
The CandelaCharts - Order Blocks indicator identifies high-probability supply and demand zones based on ICT (Inner Circle Trader) and Smart Money Concepts (SMC) . An ICT Order Block represents the specific candle where institutional liquidity was injected to reverse the market, acting as a magnet for future price action. This indicator not only highlights these crucial institutional footprints but dynamically tracks how deeply they have been mitigated by future price action.
📦 Features
Precision Detection : Identifies both Bullish and Bearish Order Blocks using advanced pivot tracking and multi-timeframe logic.
Dynamic Mitigation Tracking : Displays the precise percentage of the unmitigated zone remaining. The block visually updates as price pierces deeper into the zone, leaving a solid background on the unmitigated portion and a faded background where price has already traded.
Wick vs Close Logic : Customize exactly how mitigation is calculated. Choose to invalidate and measure mitigation depth using candle wicks or strict candle closes.
Clean Chart Mechanics : Built-in filtering removes overlapping blocks, keeping your chart tidy and focusing on the most relevant levels.
Customizable Aesthetics : Full control over block borders, mean lines (mid-lines), text formatting, and alignment settings (Full, Middle, Accurate, Precise, Sequence).
⚙️ Settings
Show : Toggles the visibility of the entire indicator.
History : Adjust the maximum number of historical Order Blocks to display simultaneously.
Alignment : Controls how the top and bottom bounds of the block are calculated (e.g., Full Candle, Accurate, Precise, Sequence).
Mitigation Toggle & Mode : Enable or disable the visual percentage display. Choose Wick or Close to determine how mitigation depth and block invalidation are calculated.
Timeframe : Lock the Order Blocks to a specific timeframe, or leave it dynamic.
Show Border : Toggle borders and customize their style/width.
Show Mean : Toggle the mean line (midline) of the blocks and customize its style/width.
Text Size : Toggle the text display and choose the desired text size. When toggled off, the block type label is hidden, but the mitigation percentage cleanly aligns to the right.
Hide Overlap : When enabled, removes redundant order blocks that share the same price region.
⚡️ Showcase
Order Blocks
Mitigation
Mean Line
🚨 Alerts
The indicator includes fully integrated dynamic alerts that can be captured using the "Any alert() function call" condition, as well as standard alert conditions:
New Bullish/Bearish Order Block : Triggers the moment a new valid order block is confirmed.
Order Block Touch : Triggers when a candle pierces or enters an active, unmitigated order block.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
مؤشر

مؤشر

FVG Toolkit [Smart Money]A Fair Value Gap is a 3-candle imbalance: a candle runs hard and leaves a void that the candles around it never fully cover. But the version most tools draw is only one of three the price-action crowd actually watches. There is the visible Classic gap, the Implied gap hidden inside a single oversized candle, and the Inversion gap that appears when a broken FVG flips and starts acting as support or resistance. Tracking these one type at a time means three layers of clutter and a lot of switching back and forth. FVG Toolkit detects all three on one overlay and merges their overlap into a single confluence zone, so the chart shows structure instead of noise.
HOW IT WORKS
Three FVG families, each independently toggleable, are detected on confirmed bars only:
- **Classic FVG** — the standard visible 3-candle imbalance: the wicks of candle 1 and candle 3 do not overlap, leaving an open gap (bullish `low > high `, bearish `high < low `).
- **Implied FVG** — a hidden imbalance carried by a single large candle whose outer wicks overlap. The gap is measured between the Consequent Encroachment (the 50% level) of those outer wicks. This is ElisTools' operational definition of an Implied FVG; the ICT community uses several variants, so this one is stated openly rather than presented as the only version.
- **Inversion FVG** — a Classic FVG whose boundary gets broken flips polarity and becomes a support/resistance zone: a bearish FVG broken upward becomes a bullish IFVG, and a bullish FVG broken downward becomes a bearish IFVG.
Each gap is then managed through an honest lifecycle:
- **Classic / Implied** are shown as a full zone. When price reaches the far edge the gap is violated and removed (or kept, your choice). There is no partial-fill shading — a zone is either present or gone.
- **Inversion** runs on two independent axes. Validation is the flip itself (the Classic boundary is broken, by Wick or Body) and births the IFVG; Invalidation is the opposite boundary being broken (by Wick or Body) and removes it. Because the two axes are separate, you can flip strictly and invalidate loosely, or any other mix.
- **Cluster** — when a fresh same-direction Classic FVG forms over an existing IFVG (a common displacement byproduct), the two are merged into one reinforced union zone spanning their full combined extent. This is confluence, not a BPR. Cluster priority is direction-aware: a cluster takes precedence only over overlapping standalone zones of the same direction — an opposite-side gap is never touched.
A `Min gap size (ATR x)` filter skips trivial micro-gaps, and Inversion inherits it (a filtered-out Classic can never flip). Every zone can carry an optional 50% (CE) line and label, with its own per-type and per-side colors.
1) A confirmed bar is scanned for Classic, Implied, and Inversion conditions (each only if enabled)
2) Surviving gaps are drawn as full zones; a same-direction Classic over an IFVG is merged into a cluster
3) Price reaching a far edge violates Classic/Implied; a broken boundary validates or invalidates an Inversion
HOW TO READ
- A Classic zone is a visible 3-candle imbalance; an Implied zone marks the void inside one oversized candle; an Inversion zone is a former gap now flipped to the other side.
- A cluster (its own color) is a same-direction Classic and IFVG stacked together — overlap collapsed into one zone rather than two competing ones.
- The optional 50% line is the Consequent Encroachment, the midpoint many price-action traders watch inside a gap.
- "Bullish" and "Bearish" describe the direction of the pattern, not a buy or sell instruction. Marking any of these zones says nothing about whether price will fill it, hold there, or reverse. The tool maps the structure; the read is yours.
INPUTS
- Max zones / Extend right — how many zones to keep on chart, and how far to project them.
- Min gap size (ATR x) — skip gaps smaller than this multiple of ATR(14); 0 turns the filter off. Inversion inherits it.
- Show Classic / Show Implied / Show Inversion — enable each family independently; each has its own color(s).
- Middle body >= ATR x (Implied) — how large the single middle candle must be to qualify as an Implied gap.
- Validation (flip) — how a Classic flips into an IFVG: Body (a body closes beyond the boundary, ICT-strict, default) or Wick (a wick beyond it, looser).
- Invalidation — how a formed IFVG is removed: Wick (a wick beyond the opposite boundary, default) or Body (a body close beyond it, ICT-strict).
- Remove on violation / Violation by — drop a Classic/Implied zone when its far edge is reached; Wick (intrabar) or Close (bar close).
- Merge same-dir overlap — fuse a same-direction Classic + IFVG into one cluster zone; with its own cluster color.
- Style — show labels, show 50% (CE) line and its width, zone border and its width.
ALERTS
Two layers, set up separately in the alert dialog.
- Detection (four conditions: New bullish/bearish Classic FVG and New bullish/bearish Implied FVG) are picked from the condition dropdown and fire on closed bars — use "Once Per Bar Close."
- Lifecycle (FVG inverted, Inversion FVG invalidated, FVG mitigated) fire through alert() function calls — create them with "Any alert() function call." Use "Once Per Bar" when the matching axis is set to Wick, and "Once Per Bar Close" when it is set to Body or Close.
NOTES & LIMITS
This is an observation tool, not a forecast. Marking a Classic, Implied, or Inversion FVG says nothing about whether the gap fills, holds, or reverses — it only shows where the structure sits. The Implied FVG uses ElisTools' operational definition (a large middle body, overlapping outer wicks, and the gap measured between their 50% levels); the ICT community uses several variants, so this one is stated openly rather than claimed as the single canon. The cluster is a confluence union of a same-direction Classic and IFVG, not a Balanced Price Range, and it never removes an opposite-side gap. No repaint, no lookahead: zones are created on confirmed (closed) bars only and their levels never move. Wick-based lifecycle rules update intrabar but stay exact, because a bar's high and low are running extremes that are never revised; Body and Close rules act only on bar close. No profit, win-rate, or guarantee claim. Open-source under CC BY-NC-SA 4.0 — non-commercial use, attribution to ElisTools required for reuse or derivatives. TradingView (Pine v6) only.
مؤشر

HTF Session Sweep ModelHTF Session Sweep Model
The HTF Session Sweep Model is a session-based market structure tool designed to help traders observe how price interacts with the previous confirmed higher-timeframe candle during active trading sessions.
This script was created because session trading can become messy when traders manually mark multiple highs, lows, opens, boxes, sweeps, breakouts, and traps across different timeframes. Instead of adding unrelated indicators together, this model uses one central reference point: the previous confirmed HTF candle. Once an enabled session begins, the script maps that HTF candle’s high, low, midpoint, and optional session open level onto the chart. Price action during that session is then classified around that reference range.
The purpose of the script is not to predict price. The purpose is to provide a clean framework for reading session behaviour around a higher-timeframe range.
Core Concept
The script is built around the idea that the previous higher-timeframe candle can provide useful reference levels for intraday price behaviour. Its high and low can act as areas where liquidity may be taken, where breakouts may develop, or where failed breakouts may occur.
The model does not project the HTF candle before the session opens. It activates when an enabled session opens. At that point, it takes the most recent fully confirmed HTF candle and uses it as the active session reference.
This creates a consistent question for the trader:
How is price reacting around the previous confirmed HTF candle during the current session?
What Makes This Script Original
This script is not designed as a simple combination of unrelated indicators. The components are connected through one session-based model:
1. Session engine
The script allows users to enable Asia, London, and New York sessions. Each session can use its own time window and timezone setting.
2. HTF reference map
At the start of an enabled session, the script maps the previous confirmed HTF candle. This includes the HTF high, low, midpoint, optional candle body, and optional session open level.
3. Sweep model
The script checks whether price sweeps above the HTF high or below the HTF low. Users can choose between a basic wick sweep or a stricter sweep that requires price to close back inside the HTF range.
4. Delivery shift confirmation
After a sweep occurs, the script can wait for a delivery shift confirmation before marking a sweep entry. A bearish confirmation requires price to break below a recent low range after a high sweep. A bullish confirmation requires price to break above a recent high range after a low sweep.
5. Breakout model
If price closes and holds outside the HTF range, the script can classify the move as a breakout. Users can set how many bars price must hold beyond the range.
6. Displacement filter
The breakout model can optionally require stronger candle movement by comparing the candle body against ATR. This helps filter weaker breaks that do not show meaningful displacement.
7. Failed breakout trap model
If price breaks beyond the HTF high or low and then returns back inside the range, the script can classify that move as a failed breakout trap. A Bull Trap means price broke above the HTF high and failed back inside. A Bear Trap means price broke below the HTF low and failed back inside.
These parts work together because they all answer the same question: did price sweep the HTF range, accept beyond it, or fail after breaking it?
How The Script Calculates The Model
When a new enabled session begins, the script requests the previous confirmed candle from the selected higher timeframe. The selected HTF may be adjusted by the user, such as 1H, 2H, 4H, Daily, or Weekly.
The script then stores the following values:
* Previous HTF open
* Previous HTF high
* Previous HTF low
* Previous HTF close
* Previous HTF midpoint
* Current session open
These values become the session reference map.
During the active session, the script checks price against the HTF high and low.
High Sweep:
A high sweep is detected when price trades above the previous HTF high.
Low Sweep:
A low sweep is detected when price trades below the previous HTF low.
Close Back Inside Sweep Mode:
When this stricter mode is selected, a high sweep requires price to close back below the HTF high. A low sweep requires price to close back above the HTF low.
Sweep Entry:
A sweep entry is not triggered by the sweep alone. After a sweep, the script waits for a delivery shift confirmation using the selected lookback length.
Breakout Long:
A breakout long is detected when price closes above the HTF high and holds above it for the selected number of bars.
Breakout Short:
A breakout short is detected when price closes below the HTF low and holds below it for the selected number of bars.
Bull Trap:
A bull trap is detected when price breaks above the HTF high but later closes back below the HTF high.
Bear Trap:
A bear trap is detected when price breaks below the HTF low but later closes back above the HTF low.
Volume Filter:
The optional volume filter compares current volume against a moving average of volume multiplied by the selected volume multiplier. When enabled, sweep and breakout conditions must also pass the volume filter.
Bar Close Confirmation:
The script includes an option to confirm signals only after the bar closes. This is enabled by default to make signals more stable for alerts and historical review.
How To Use This Script
1. Choose the reference timeframe
Select the HTF candle you want to use as the session reference. Intraday traders may use 1H, 2H, or 4H. Higher-timeframe traders may prefer Daily or Weekly.
2. Enable the sessions you trade
The script supports Asia, London, and New York sessions. Users can enable or disable each session and adjust the session window and timezone.
3. Watch the HTF range during the session
Once the session opens, the script draws the previous confirmed HTF candle range. The high and low are the main reaction levels.
4. Read price behaviour around the range
If price sweeps a level and returns inside, it may indicate a liquidity sweep.
If price closes and holds outside the range, it may indicate breakout continuation.
If price breaks outside and then returns inside, it may indicate a failed breakout trap.
5. Use the labels as classifications, not automatic trade commands
The labels are designed to classify price behaviour. They are not guaranteed buy or sell signals.
6. Combine with your own confirmation
Users should combine this model with their own market context, risk management, higher-timeframe bias, and execution plan.
Main Visual Elements
HTF Range Box:
Shows the previous confirmed HTF candle range during the active session.
HTF Candle Display:
Optionally displays the previous HTF candle body and wick on the chart.
High and Low Lines:
Marks the previous HTF high and low.
Midpoint Line:
Marks the midpoint of the HTF range.
Session Open Line:
Marks the price at the open of the active session.
Sweep Marks:
Marks when price sweeps above or below the HTF range.
Sweep Entry Marks:
Marks when a sweep is followed by delivery shift confirmation.
Breakout Marks:
Marks when price closes and holds outside the HTF range.
Trap Marks:
Marks failed breakout conditions as Bull Trap or Bear Trap.
Dashboard:
Optional compact dashboard showing the current session, HTF reference, confirmation mode, state, high, low, and midpoint.
Important Settings
Reference HTF Candle:
Controls which higher timeframe is used for the previous confirmed candle reference.
Sweep Mode:
Choose between Wick Sweep or Wick Sweep + Close Back Inside.
Confirm Signals On Bar Close:
When enabled, signals confirm after candle close. This is recommended for cleaner historical review and alerts.
Delivery Shift Lookback:
Controls how many bars are used to confirm a shift after a sweep.
Breakout Hold Bars:
Controls how many bars price must remain outside the HTF range before a breakout is confirmed.
Displacement Filter:
Requires the candle body to be large enough compared with ATR before confirming a breakout.
Volume Filter:
Optional filter requiring current volume to exceed average volume by the selected multiplier.
Keep Historical Sessions:
When disabled, the chart stays cleaner by only showing the current/latest session map. When enabled, historical session maps can remain visible, with a limit to reduce chart clutter.
Visual Modes:
Clean mode is designed for normal use.
Stealth mode reduces visual intensity.
Debug mode makes internal reference levels easier to inspect.
Alerts
The script includes alert conditions for:
* HTF high swept
* HTF low swept
* Sweep short
* Sweep long
* Breakout long
* Breakout short
* Bull trap
* Bear trap
* Master alert for any model event
The master alert is included so users can create one alert condition instead of setting up many separate alerts.
Recommended Use
This script is best suited for traders who use session timing, higher-timeframe ranges, liquidity sweeps, breakout continuation, and failed breakout concepts.
It may be useful on intraday charts where Asia, London, and New York session behaviour matters. It can also be adjusted for different markets and timeframes by changing the reference HTF and session settings.
Limitations
This script does not predict future price movement. It classifies how price behaves around the previous confirmed HTF candle during active sessions.
A sweep does not guarantee a reversal.
A breakout does not guarantee continuation.
A trap does not guarantee a full trend change.
Volume data may behave differently depending on the market and symbol.
Session behaviour can vary across forex, crypto, futures, indices, and stocks.
This tool should be used as a market structure framework, not as a standalone trading system.
Originality And Usefulness Statement
The originality of this script is in how it combines session timing, previous confirmed HTF candle mapping, sweep classification, breakout confirmation, and failed breakout detection into one connected workflow.
The script is useful because it gives traders a structured way to observe whether price is taking liquidity, accepting outside a higher-timeframe range, or failing after a breakout attempt. Each component supports the same central model rather than acting as an unrelated indicator mashup.
Disclaimer
This indicator is for educational and analytical use only. It is not financial advice and does not guarantee trading results. Users are responsible for their own trading decisions, testing, and risk management.
مؤشر

مؤشر

Adaptive Stochastic with Colored Lines and ZonesAdaptive Stochastic with Colored Lines and Zones
"Adaptive Stochastic with Colored Lines and Zones" is an enhanced Stochastic Oscillator designed to improve trend visualization and market momentum analysis through dynamic color changes and clearly defined overbought/oversold zones.
The indicator automatically adjusts the color of the main Stochastic line according to prevailing market conditions:
**Blue** indicates bullish momentum and strengthening upward pressure.
**Red** indicates bearish momentum and increasing downward pressure.
This visual feedback helps traders quickly assess market direction without adding additional trend-following tools to the chart.
Overbought and Oversold Zones
The indicator highlights key momentum extremes:
* **Above 80** – Strong Overbought Zone
* **Below 20** – Strong Oversold Zone
These areas can help identify periods of extended market movement, potential pullbacks, or possible reversal conditions when combined with price action and other forms of technical analysis.
Applications
* Trend identification
* Momentum analysis
* Confirmation of market direction
* Detection of overbought and oversold conditions
* Support for entry and exit timing
Suitable Markets
The indicator can be used across multiple asset classes, including Forex, Cryptocurrencies, Stocks, Indices, and Futures, and is compatible with various trading styles ranging from intraday trading to longer-term trend analysis.
Notes
As with any technical indicator, Adaptive Stochastic with Colored Lines and Zones should be used as part of a broader trading strategy and not as a standalone signal generator. Combining momentum readings with market structure, support and resistance levels, and risk management techniques may improve decision-making.
مؤشر

SMC Supply & Demand Probability Engine (Legacy Open Source)DESCRIPTION:
Introduction
Welcome to the Legacy Open Source Edition of the SMC Supply & Demand Probability Engine. In the spirit of contributing to the Pine Script community, I have decided to open the source code of this previous iteration (V16) completely. This allows developers and advanced traders to study, modify, and dissect the underlying array-based logic and scoring mechanics.
Please note that this is a legacy version. For our highly optimized, distraction-free execution engine, check out the newly released SMC PRO (V18) and SMC PRO MAX (V19) on my profile.
Core Architecture & Proprietary Logic Inside:
1. Institutional Accumulation Engine (0 - 100%)
Not all demand zones are created equal. This open-source script contains the full logic for calculating institutional buying phases by analyzing 5 specific criteria (scoring up to 20 points each):
a. Sequence: Checks if the demand correctly formed after a supply mitigation.
b. Validity: Ensures the demand zone hasn't been structurally violated.
c. Time-Based Inventory: Measures the duration of the accumulation phase (the longer the base, the stronger the potential expansion).
d. Supply Pressure Absence: Scans for any immediate opposing supply zones that might suppress the price.
e. Pre-BOS Support: Evaluates structural momentum before the breakout.
- Output States: "NO INTEREST" ➔ "PROBING" ➔ "EARLY ACCUM" ➔ "COMMIT" ➔ "EXPANSION".
2. Probability Engine V2 (0 - 100%)
Before entering a trade, the dashboard assesses the setup's win probability based on:
b. Range Quality: Measures the entry position relative to the SMC High/Low logarithmic range.
c. Demand Distance: Proximity of the entry to the absolute bottom of the demand zone.
d. Supply Risk: Detects immediate danger areas (Supply Near EX) that could act as roadblocks.
e. Momentum Continuity: Ensures the trend aligns with the structural break.
3. Advanced Trade Management & Auto-Killswitch
- Dynamic TP & SL: Calculates Take Profit levels using Logarithmic Fibonacci scaling to map targets accurately on chart visualizations.
- Auto-Killswitch Protection: If the calculated Risk:Reward ratio for TP2 falls below 0.60 due to a massive stop-loss distance, the script will automatically invalidate the setup.
- Scale-In (Avg Up) Protocol: Identifies opportunities to add to a winning position once the structure confirms momentum, complete with a visual "Danger Area" risk box (±25% risk boundary).
How to Read the Legacy Dashboard
- SIDE & ACCUM: Direction of the trade and the current institutional accumulation percentage.
- ENTRY & SL: Exact price levels for execution and protection.
- TP (Skip Aware): Dynamic targets based on Logarithmic Fibonacci extensions.
- CONFIDENCE & PROBABILITY: A star-rating system (1 to 5 stars) interpreting the setup's strength.
- STATUS & ACTION: Tells you exactly what stage the trade is in ("WAIT", "ACTIVE", "AVG UP").
Usage Note
As this code is now fully Open Source, feel free to use snippets for your own Pine Script utilities. Always use strict risk management. Past performance mapped by the script does not guarantee future market behavior. مؤشر

Wyckoff Accumulation HunterSurfaces potential accumulation setups in deep-drawdown names where demand may be absorbing supply — built around classic Wyckoff structure (selling climax, spring, accumulation range) with a scored, rules-based filter.
How eligibility works
A name becomes eligible only when it's at least 30% off its 2-year high and meets a liquidity floor. Eligible names are then scored 0–10 across eight conditions: drawdown depth, position relative to the 21 and 55 EMAs, selling-climax recency, range compression, volume dry-up, StochRSI reset, and proximity to the structural demand floor.
How an entry prints
An entry marker appears only when the score clears the threshold you set AND structure confirms — either a spring (an undercut-and-reclaim of the structural low) or a retracement into the 0.618–0.786 zone at EMA confluence. A base-maturity check prevents firing during waterfalls (it requires the broken low to have actually held), and signals confirm on bar close.
Conviction tagging
A filled green triangle marks a spring at the demand floor (highest conviction — invalidation sits right at the floor). A hollow gray triangle marks a spring up in the range, with the floor still open below.
On-chart structure
Three liquidity bands map the markdown: green demand, gray range, red supply. A fibonacci ladder (0.236 → 1.272) projects from the base low as a reference for managing a position, and a red line marks the invalidation level at the spring low — volume-gated, so a low-volume test poke doesn't count, only a genuine high-volume break.
Inputs
Adjustable threshold (set your own conviction level), lookback lengths (scale to any timeframe), and all display toggles.
Notes
Works on any timeframe once lookbacks are scaled; designed and tuned on the weekly. Repaint-free — all signals confirm on close, no lookahead. This is a discretionary analysis tool to surface setups for your own research. It is not a recommendation or financial advice, and prior structure does not guarantee future behavior. مؤشر

Smart Risk ManagerSmart Risk Manager is a visual risk-planning and position-sizing indicator designed to help traders build a structured trade plan directly on the chart.
The script calculates and displays:
* Account risk
* Risk amount
* Planned entry
* Stop level
* Stop distance
* Position size
* Position value
* Exposure percentage
* Risk:Reward
* Up to three target zones
* Target confluence sources
* Auto BOS setup status
* Manual trade plan status
* Entry / Stop / Target lines
* A customizable risk dashboard
This is an indicator, not a strategy. It does not place orders, does not execute trades, and does not produce TradingView Strategy Tester backtest results. The tool is intended for trade planning, educational risk management, and chart-based analysis only.
Important note
Smart Risk Manager does not guarantee profitable trades.
It does not predict future price movement.
It does not provide financial advice.
It does not replace a broker, a trading plan, or professional risk management.
All values are calculated from the user’s selected inputs and the chart’s price data. Users should always verify position size, tick value, contract multiplier, margin requirements, spread, commission, slippage, and broker-specific rules before using any calculated value in live trading.
Main purpose
The purpose of Smart Risk Manager is to help traders answer practical planning questions before entering a trade, such as:
* Where is the planned entry?
* Where is the stop?
* How much money is at risk?
* What position size matches the selected risk percentage?
* What is the approximate exposure?
* Where are possible targets?
* Which target levels have confluence?
* What is the approximate Risk:Reward profile?
The indicator is designed to make risk planning more visible and easier to review on the chart.
1. Account & Risk
The Account & Risk section allows the user to define the basic risk model.
Account Size
The user enters the total account size in the account currency.
Risk per Trade %
The user selects the maximum percentage of the account to risk if the stop level is reached.
For example, if Account Size is 10,000 and Risk per Trade is 1%, the planned risk amount is 100.
Instrument Type
The script includes instrument selection for:
* Stocks / Shares
* Forex / Units
* Crypto / Coins
This affects the display wording for the calculated position size.
Round size to whole units
When enabled, the calculated position size is rounded down to whole units. This is useful for stocks and shares.
When disabled, the script can display fractional sizing, which may be more suitable for crypto or some forex/CFD planning workflows.
Important limitation
The position-sizing calculation is generic. Some markets use contract multipliers, tick values, lot sizes, minimum order quantities, leverage, margin rules, spread costs, and currency conversions. Users must confirm the final order size with their broker or exchange.
2. Entry Logic Modes
The script includes two planning modes:
* Auto BOS
* Manual Plan
Auto BOS Mode
Auto BOS mode uses market structure to create a logical planning setup when price breaks a confirmed structure level.
The script detects confirmed pivot highs and pivot lows using the selected Structure Pivot Left and Structure Pivot Right settings.
A bullish Auto BOS setup can appear when price closes above the last confirmed structure high.
A bearish Auto BOS setup can appear when price closes below the last confirmed structure low.
The Auto BOS mode can be used to automatically create:
* Auto entry level
* Auto stop level
* Direction
* Setup reason
* Risk and target plan
Auto Direction
The user can choose:
Both
Allows both long and short Auto BOS planning setups.
Long Only
Allows only bullish Auto BOS planning setups.
Short Only
Allows only bearish Auto BOS planning setups.
Candle Confirmation
When enabled, the breakout candle must confirm direction:
* Long setup requires a bullish candle.
* Short setup requires a bearish candle.
Max Breakout Distance %
This filter helps avoid planning entries when price has already moved too far away from the broken structure level.
A value of 0 disables this filter.
Min Structure Range %
This filter helps avoid very small structures that may produce noisy or low-quality Auto BOS events.
Auto Stop Style
The script includes two Auto Stop styles:
Recent Pullback
Uses a recent pullback area for a closer stop.
Structure Swing
Uses the broader structure swing for a wider structural stop.
Auto Stop Buffer %
Adds a small buffer beyond the selected auto stop level.
Minimum R:R Filter
When enabled, Auto BOS setups appear only if the projected setup Risk:Reward is equal to or above the selected minimum value.
One active setup at a time
When enabled, the script prevents repeated same-direction Auto BOS setups until an opposite setup appears.
Show Auto BOS signals
This setting is OFF by default. When enabled, the script displays Auto Long BOS and Auto Short BOS markers on the chart.
Important note about Auto BOS
Auto BOS is a planning event based on confirmed structure. It is not an automatic buy or sell recommendation. It should be used as a planning reference and combined with the user’s own analysis.
3. Manual Plan Mode
Manual Plan mode allows the user to create a custom trade plan.
The user selects:
* Manual Direction
* Manual Entry Price
* Manual Stop Mode
* Target methods
Manual Direction
The user can choose:
Long
Creates a long-side plan.
Short
Creates a short-side plan.
Manual Entry Price
The user enters the planned entry price manually.
Manual Plan mode is useful when the trader already has a specific entry level and wants the script to calculate position size, risk, exposure, and target levels.
4. Stop Loss Methods
The script supports several stop calculation methods in Manual Plan mode.
Swing Structure
Uses the recent swing low for long plans or recent swing high for short plans.
ATR
Uses an ATR-based stop distance from the manual entry price.
For long plans, the stop is placed below entry.
For short plans, the stop is placed above entry.
Percent
Uses a percentage-based stop from the manual entry price.
Manual
Allows the user to enter a custom stop price.
Important stop placement rule
For a valid long plan, the stop must be below the entry.
For a valid short plan, the stop must be above the entry.
If the stop is placed incorrectly, the dashboard will show an invalid stop status.
5. Position Size Calculation
The script calculates position size from:
* Account Size
* Risk per Trade %
* Entry Price
* Stop Price
* Stop Distance
The general logic is:
Risk Amount = Account Size × Risk %
Position Size = Risk Amount ÷ Stop Distance
The script then displays:
* Risk Amount
* Stop Distance
* Position Size
* Position Value
* Exposure %
Risk Amount
The estimated amount that would be lost if the planned stop is reached, before considering real-world execution costs such as spread, slippage, commission, and broker rules.
Position Size
The calculated quantity based on the selected risk amount and stop distance.
Position Value
The approximate value of the planned position.
Exposure %
The position value compared with account size.
If exposure is above 100%, the dashboard highlights it as a potential leverage or overexposure condition.
6. Target Methods
The script can create target candidates from several sources.
The user can enable or disable each target method.
Available target methods:
* Swing Highs / Lows
* Fibonacci Extension
* Liquidity Equal Highs / Lows
* R-Multiple
* Manual prices
Swing Highs / Lows
For long plans, the script uses previous swing highs as potential target levels.
For short plans, it uses previous swing lows.
Fibonacci Extension
The script uses the selected swing lookback and Fibonacci extension levels to calculate possible target levels.
Default extension levels include:
* 127.2%
* 161.8%
* 261.8%
These levels can be changed in settings.
Liquidity Equal Highs / Lows
When enabled, the script looks for approximately equal highs or equal lows using the selected tolerance.
For long plans, equal highs can be used as possible upside liquidity targets.
For short plans, equal lows can be used as possible downside liquidity targets.
R-Multiple Targets
The script can calculate targets based on the risk distance.
Default R-Multiple targets include:
* 1R
* 2R
* 3R
Manual Targets
The user can enter up to three custom target prices manually.
7. Target Confluence
The script groups target candidates that are close to each other.
Confluence tolerance controls how close target levels must be to be grouped together.
If multiple target methods point to approximately the same area, the script marks the target as a confluence zone.
Examples of target confluence:
* Swing + Fibonacci
* R-Multiple + Fibonacci
* Liquidity + Swing
* Manual + R-Multiple
Targets with stronger confluence are visually highlighted differently from single-method targets.
Important note about targets
Targets are planning references only. They do not guarantee that price will reach them. They should be used as possible reference zones, not as guaranteed outcomes.
8. Dashboard
Smart Risk Manager includes a customizable dashboard.
The dashboard displays:
Account
The account size entered by the user.
Risk %
The selected percentage of account risk.
Risk Amount
The estimated risk amount based on position size and stop distance.
Entry
The planned entry price.
Stop
The planned stop price.
Stop Distance
The distance between entry and stop, displayed in price units and percentage.
Position Size
The calculated quantity for the selected risk.
Position Value
The approximate value of the planned position.
Exposure
The position value as a percentage of account size.
Risk : Reward
The approximate Risk:Reward to the furthest selected target.
Setup Logic
Shows whether the plan is based on Auto BOS or Manual Plan.
Reason
Shows the current reason or status of the setup.
Targets From
Shows which target methods are enabled.
T1 / T2 / T3
Shows up to three calculated target levels.
Status
Shows the current planning status, such as:
* Waiting for BOS setup
* Set manual entry price
* Invalid stop placement
* No targets - enable method
* Leverage > 100%
* High risk per trade
* OK to plan
9. Dashboard Themes
The script includes several dashboard themes:
* Luxury Dark
* Midnight Blue
* Graphite Gold
* Classic Dark
The user can also choose:
* Dashboard position
* Dashboard size
* Alternate row shading
10. Entry / Stop / Target Lines
When enabled, the script draws visual lines on the chart:
Entry Line
Shows the planned entry level.
Stop Line
Shows the planned stop level.
Target Lines
Shows up to three target levels.
Target labels can include:
* Target price
* R-Multiple
* Estimated potential gain
* Target source method
* Confluence marker when multiple methods align
Line Length
Controls how far the planning lines extend to the right.
11. Alerts
The script includes alert conditions for:
Auto Long BOS
Triggered when a bullish Auto BOS planning setup is detected.
Auto Short BOS
Triggered when a bearish Auto BOS planning setup is detected.
STOP hit
Triggered when price reaches the displayed stop level.
Target 1 reached
Triggered when price reaches Target 1.
Target 2 reached
Triggered when price reaches Target 2.
Target 3 reached
Triggered when price reaches Target 3.
Important alert note
Alerts are notifications only. They do not place orders and do not confirm broker execution.
12. How to use Smart Risk Manager
A practical workflow:
1. Enter your account size.
2. Select your risk per trade.
3. Choose the instrument type.
4. Choose Auto BOS or Manual Plan.
5. If using Manual Plan, enter the planned entry price.
6. Choose a stop method or enter a manual stop price.
7. Enable the target methods you want to use.
8. Review position size, risk amount, exposure, and Risk:Reward in the dashboard.
9. Review Entry / Stop / Target lines on the chart.
10. Confirm all values with your broker before placing any real trade.
Suggested use cases
Smart Risk Manager can be useful for:
* Position sizing
* Pre-trade planning
* Risk review
* Stop distance review
* Exposure control
* Target planning
* Risk:Reward comparison
* Auto BOS setup planning
* Manual trade planning
* Educational risk-management study
13. Important limitations
This script does not execute trades.
This script is not a trading strategy.
This script does not provide Strategy Tester results.
This script does not guarantee profitable outcomes.
This script does not account for all broker-specific rules.
The calculated position size is a generic estimate.
Forex, futures, CFDs, and leveraged products may require contract-size, tick-value, pip-value, margin, and currency conversion adjustments.
Commissions, spreads, slippage, taxes, borrow fees, funding costs, and order execution differences are not included in the generic calculation.
Auto BOS setups are structure-based planning events, not automatic trade recommendations.
Pivot-based structure requires confirmation bars, so structure levels are confirmed after the selected pivot settings.
Target levels are possible planning references, not guaranteed price destinations.
Stop and target alerts are chart-level events, not broker fills.
Users are responsible for verifying all calculations and managing their own risk.
14. Originality and purpose
Smart Risk Manager combines several trade-planning tools into one organized dashboard:
* Account risk calculation
* Position size calculation
* Auto BOS planning mode
* Manual trade planning mode
* Multiple stop methods
* Multiple target methods
* Target confluence grouping
* Exposure monitoring
* Visual Entry / Stop / Target lines
* Customizable dashboard themes
* Alert conditions for planning levels
The purpose of the script is to help traders build a clearer and more structured risk plan before making a trading decision.
Educational disclaimer
Smart Risk Manager is for educational and chart-analysis purposes only. It is not financial advice, investment advice, or a recommendation to buy or sell any financial instrument. Users should perform their own analysis and confirm all position-sizing and risk calculations with their broker or exchange before trading.
مؤشر

FVG Sigma [Smart Money]A Fair Value Gap is a 3-candle imbalance: the middle candle runs hard and leaves a void between candle 1 and candle 3. The problem with marking them is that gaps come in every size — most tools draw every single one, and the chart fills with noise where trivial micro-gaps sit next to the ones that actually mattered. FVG Sigma measures each gap's width and keeps only the statistically unusual ones.
HOW IT WORKS
Every gap's geometric width is fed into a rolling sample pool, with separate pools for bullish and bearish gaps. A new gap is z-scored against its own pool *before* it is added (no look-ahead into its own sample):
`z = (gap width − mean) / standard deviation`
Only gaps with `z >= threshold` (e.g. 2 sigma) are drawn — "unusually large for this symbol on this timeframe." Because a z-score is scale-free (the mean and the standard deviation share the gap's own units), there is no ATR or point normalization to tune; sigma absorbs symbol and timeframe scale on its own. The pool still collects *every* gap, so the baseline stays honest — but only the outliers reach the chart. Until a pool has gathered Min Samples gaps, nothing is drawn (warm-up).
Each surviving gap is then tracked for mitigation. The zone splits into a vivid *fresh* band and a faded *consumed* band at the deepest penetration so far (a high-water mark that never retreats), and an in-zone label reports consumption as a live percentage. When the consumed front reaches the far edge, the gap is fully mitigated and removed (or kept faded, your choice).
1) A confirmed 3-candle gap is measured and z-scored against its side's pool
2) If `z >= threshold`, the zone is drawn; otherwise it is only added to the pool
3) Price penetration splits the zone fresh/consumed and updates the live percentage
HOW TO READ
- A vivid band is the fresh, un-touched portion of a significant gap.
- The faded band behind it is the part price has already traded through.
- The in-zone label is the live consumed percentage (how much of the gap is gone).
- "Significant" means statistically large — an unusual imbalance, not a buy or sell instruction. A large gap is just a large gap; it does not predict fill, reversal, or direction. The tool marks the area; the read is yours.
INPUTS
- Sample Size N — how many recent gap widths each side's pool holds.
- Z-Score Threshold (sigma) — how extreme a gap must be to be drawn. Higher = fewer, stronger gaps.
- Min Samples — warm-up; filtering starts only once the pool has this many gaps.
- Mitigation — Wick (penetration tracked by bar high/low, live but exact) or Close (only confirmed closes count).
- Remove Mitigated / Avoid Overlap — drop fully-consumed zones; skip a new gap that overlaps a same-side one.
- Bullish FVG / Bearish FVG — enable each side independently.
- Show Last Bullish / Bearish — per-side display caps.
- Extend Right / Show Consumed % — projection length; toggle the live label.
- Style — bullish/bearish fills and text colours, fresh and mitigated transparency.
ALERTS
Two separate conditions: New significant Bullish FVG and New significant Bearish FVG. Both fire on closed bars — use "Once Per Bar Close."
NOTES & LIMITS
This is a statistical observation, not a forecast: the filter flags gaps that are unusually large for the current symbol and timeframe, nothing more. It does not say a gap will be filled, hold, or reverse. Scale-free by design — the z-score normalizes symbol and timeframe scale, so there is no ATR or point setting to calibrate. No repaint, no lookahead: gaps are created on confirmed (closed) bars only and their levels never move. Mitigation in Wick mode updates the consumed percentage live but stays exact, because a bar's high/low is a running extreme that is never revised; Close mode updates only on bar close. Open-source under CC BY-NC-SA 4.0 — non-commercial use, attribution to ElisTools required for reuse or derivatives. TradingView (Pine v6) only.
مؤشر

Effort vs Result [Wyckoff]Wyckoff's "effort vs result," quantified. Effort = volume (how much trading took place). Result = how far price actually travelled. When a bar shows heavy effort but little result, supply/demand is being absorbed — a battle worth marking.
HOW IT WORKS
Effort and result are turned into z-scores over a rolling window, so "high" and "low" mean high/low for this symbol on this timeframe — not a fixed number.
Absorption (high effort, low result) does not give direction — it only marks an important area where effort got absorbed. The indicator draws that area as a zone and waits. The zone develops, growing to include every following bar. The moment price closes beyond the developing range — either side, any volume — the level has given way. That break, in its own direction, is the signal.
1) Absorption seeds a zone (its high–low)
2) Each following bar expands the range
3) A close beyond the range = breakout (within N bars), otherwise the zone is discarded
HOW TO READ
- Grey dashed box: a developing absorption zone (directionless).
- Green triangle below a bar: bullish breakout (closed above the zone) — box turns green.
- Red triangle above a bar: bearish breakout (closed below the zone) — box turns red.
Zones that time out or get breached without a clean close disappear, so only meaningful areas remain.
INPUTS
- Z-Score Lookback — window for the rolling mean / standard deviation.
- Divergence Threshold (σ) — how extreme a bar must be to count as absorption. Higher = fewer, stronger zones.
- Result Source — Range (high−low), Body (|close−open|), or True Range (gap-aware).
- Detection Mode — Score (combined divergence, looser) or Strict (both legs extreme).
- Max Bars: Absorption → Breakout — how long a zone waits before being discarded.
- Visuals — show/hide zones, arrows, labels, colours.
ALERTS
Two separate conditions: Bullish Breakout and Bearish Breakout (use "Once Per Bar Close").
NOTES & LIMITS
Volume reliability depends on the symbol/feed — on spot FX it is tick volume, not real contracts; no volume = no signals. This is a statistical observation, not a forecast: a z-score flags an unusual bar, a breakout shows a level gave way — neither guarantees what price does next. No repaint, no lookahead: all calculations are on closed bars; z-scores use past bars only. مؤشر

مؤشر

XRS Order Blocks / Breaker BlocksXRS Order Blocks / Breaker Blocks is a market-structure tool designed to identify potential bullish and bearish order blocks, track invalidation, and convert broken zones into breaker blocks.
The script uses swing structure to detect order block zones after price breaks a prior swing high or swing low. It includes both a filtered engine and a raw engine, with optional overlap matching to mark stronger dual-engine zones.
Features include:
• Bullish and bearish order block detection
• Breaker block tracking after invalidation
• Dual-engine matching for overlapping zones
• Optional merging of confirmed zones
• ATR-based filtering to reduce oversized zones
• Body or wick-based zone boundaries
• Multiple invalidation modes
• First tap / reaction tracking
• Optional historical broken zones
• Optional 50% consequent encroachment line
• Custom zone colors, fills, and styling
• Alerts for new bullish/bearish order blocks
• Alerts when price enters bullish/bearish order blocks
This indicator is useful for traders who use market structure, order blocks, breaker blocks, liquidity sweeps, failed reactions, and auction-market context. It can help map potential reaction zones, invalidated supply/demand areas, and areas where price may retest prior institutional structure.
The indicator does not provide automatic buy or sell signals. It is designed as a discretionary charting and confluence tool.
Disclaimer: This script is for educational and informational purposes only and does not constitute financial advice. Trading involves risk. Use at your own discretion.
مؤشر

مؤشر

مؤشر

Previous Day Regular Session OHLC LevelsPrevious Day RTH OHLC Levels
This indicator displays the most recent completed regular trading session’s Open, High, Low, and Close levels on an intraday chart.
It was built for traders who keep extended-hours data visible but still want clean reference levels from the regular session only. For U.S. equities, the default regular session is set to 09:30 to 16:00, and the default after-hours session is set to 16:00 to 20:00.
What it shows
PDH: Previous regular-session high
PDL: Previous regular-session low
PDC: Previous regular-session close
PDO: Previous regular-session open
The indicator tracks the current regular session’s OHLC values during the day. When after-hours begins, it locks those values and displays them as the prior completed regular-session levels.
Why use it
These levels can be useful as reference points for intraday context, especially when viewing premarket or after-hours price action. They can help show whether price is trading above or below the prior regular-session range, open, or close.
Settings
Regular session: default 0930-1600
After-hours session: default 1600-2000
Show or hide solid OHLC lines
Show or hide right-side labels
Adjust label offset, label size, and line width
Important notes
This is not a buy or sell signal. It does not predict direction. It simply plots prior regular-session OHLC reference levels.
For best results, use it on intraday charts with extended-hours data enabled. It is designed around U.S. equity market hours. مؤشر

Price Action Structure
Price Action Structure is an open price-action toolkit designed to help traders read market structure, structural breaks, order block context, premium/discount zones, previous daily and weekly levels, qualified setup conditions, and optional Fair Value Gaps.
This is an indicator, not a strategy. It does not place trades, does not execute orders, and does not produce Strategy Tester results. The tool is designed for chart analysis, market-structure study, and visual context only.
Main modules
1. Market Structure
The indicator identifies both Internal Structure and Swing Structure.
Internal Structure
Internal Structure uses a shorter pivot length and is designed to show faster short-term structure changes. It can mark:
* Internal BOS
* Internal CHoCH
* Internal CHoCH+
Swing Structure
Swing Structure uses a longer pivot length and is designed to show higher-level market structure. It can mark:
* Swing BOS
* Swing CHoCH
* Swing CHoCH+
Label meaning
BOS means Break of Structure.
A bullish BOS appears when price closes above a confirmed structural high.
A bearish BOS appears when price closes below a confirmed structural low.
CHoCH means Change of Character.
A bullish CHoCH appears when price breaks upward after the previous structure was bearish.
A bearish CHoCH appears when price breaks downward after the previous structure was bullish.
CHoCH+ is a stronger change-of-character label. It appears when the change of character is supported by a stronger structural condition, such as a higher low for bullish context or a lower high for bearish context.
Internal BOS / CHoCH
These labels represent fast structure changes and are useful for short-term market reading.
Swing BOS / CHoCH
These labels represent higher-level structure and are generally more important for broader trend context.
Structure label text
The script includes two label text modes:
Full
Shows labels such as Internal BOS, Swing BOS, Internal CHoCH, and Swing CHoCH.
Short
Shows compact labels such as BOS, S-BOS, CHoCH, and S-CHoCH.
Important note about pivots
Market structure is based on confirmed pivots. Pivots require a selected number of bars to the left and right before they are confirmed. This means structure labels appear only after the pivot has been confirmed. Once a structure break is confirmed on bar close, the break label does not repaint after confirmation.
2. Volumetric Order Blocks
The indicator includes optional bullish and bearish order blocks.
Order Blocks are OFF by default.
Bullish Order Block
A bullish order block can be created after an internal bullish structure break.
The script scans the impulse leg and looks for the relevant candle zone that may represent demand context.
Bearish Order Block
A bearish order block can be created after an internal bearish structure break.
The script scans the impulse leg and looks for the relevant candle zone that may represent supply context.
Order Block visual design
Each order block can include:
* Main zone box
* Split buy/sell profile inside the zone
* Optional dashed mid-line
* Optional volume metrics label
The split-profile visual design is intended to give a quick view of how the bar’s volume was distributed inside the order block area.
Important note about volume split
The buy/sell split is an approximation. Pine Script does not provide historical tick-level buy/sell volume split. The script estimates the split from each candle’s close location inside its range and weights it by volume.
This should be understood as a visual approximation, not true bid/ask delta or true order-flow data.
Order Block mitigation
The script supports two mitigation methods:
Close
The order block is removed when price closes beyond the far edge of the zone.
Wick
The order block is removed when any wick moves beyond the far edge of the zone.
Hide Overlap
When enabled, the script avoids drawing overlapping order blocks on the same side. This is useful for keeping the chart clean.
Show Last
Controls how many active bullish and bearish order blocks remain visible on the chart.
Profile Width Bars
Controls the fixed width of the internal buy/sell profile inside the order block. The profile does not stretch with the full order block extension.
OB Body Transparency
Controls the background transparency of order block zones. Higher values make the order block background lighter.
3. Premium / Discount / Equilibrium Zones
The indicator includes optional Premium, Discount, and Equilibrium zones.
Premium / Discount Zones are OFF by default.
These zones are based on the active swing range.
Premium
The upper area of the current swing range.
Premium can help users identify where price is relatively high inside the selected swing range.
Discount
The lower area of the current swing range.
Discount can help users identify where price is relatively low inside the selected swing range.
Equilibrium
The middle area of the current swing range.
Equilibrium represents the middle reference area between the premium and discount zones.
Edge Zone Width
Controls the thickness of the Premium and Discount zones.
Equilibrium Half Width
Controls the width of the Equilibrium band around the midpoint.
Important note
Premium / Discount / Equilibrium zones are context tools only. They do not predict reversal or continuation by themselves.
4. Previous Day and Previous Week Levels
The indicator can display previous daily and weekly high/low levels.
These levels are OFF by default.
Previous Day High / Low
When enabled, the script plots:
* PDH: Previous Day High
* PDL: Previous Day Low
Previous Week High / Low
When enabled, the script plots:
* PWH: Previous Week High
* PWL: Previous Week Low
These levels are useful for identifying prior session liquidity areas, important reference levels, and possible reaction zones.
Daily levels are intended mainly for intraday charts.
Weekly levels are intended mainly for charts below the weekly timeframe.
5. Qualified Buy / Sell Setups
The indicator includes optional qualified BUY SETUP and SELL SETUP labels.
Buy/Sell Setups are OFF by default.
These are not automatic trade recommendations. They are conditional price-action setup labels based on the script’s structure and order block logic.
BUY SETUP logic
A BUY SETUP can appear when:
* price touches a bullish order block,
* the setup remains valid within the selected setup window,
* internal bullish BOS confirms after the touch,
* optional swing bias and premium/discount filters pass depending on selected setup quality.
SELL SETUP logic
A SELL SETUP can appear when:
* price touches a bearish order block,
* the setup remains valid within the selected setup window,
* internal bearish BOS confirms after the touch,
* optional swing bias and premium/discount filters pass depending on selected setup quality.
Setup Quality
The script includes three setup quality modes:
Strict
Strict mode requires more confirmation. It produces fewer setups but with more filtering.
Balanced
Balanced mode is the recommended middle setting. It allows setups when either the broader swing bias or premium/discount context supports the setup.
Aggressive
Aggressive mode requires less filtering. It produces more setups but can create more false or lower-quality events.
Setup Validity Bars
Controls how many bars are allowed between the order block touch and the internal BOS confirmation.
Signal Size
Controls the size of BUY SETUP and SELL SETUP labels.
Signal Distance From Candle
Uses ATR to place setup labels away from candles for better chart readability.
Important note about setup labels
BUY SETUP and SELL SETUP labels are not guaranteed buy or sell signals. They are visual setup conditions that should be confirmed with the user’s own analysis, market context, and risk management.
6. Fair Value Gap
The indicator includes optional Fair Value Gaps.
FVG is OFF by default.
Fair Value Gap definition
A Fair Value Gap is a 3-candle imbalance zone.
Bullish FVG
A bullish FVG forms when the current low is above the high from two bars back.
Bearish FVG
A bearish FVG forms when the current high is below the low from two bars back.
FVG Timeframe
The script can calculate FVGs from:
* the current chart timeframe,
* tick-based timeframes,
* second-based timeframes,
* minute-based timeframes,
* hourly timeframes,
* daily timeframes,
* weekly timeframe,
* monthly and multi-month timeframes.
Availability of tick and second timeframes depends on the symbol and the TradingView plan.
FVG Mitigation Method
The script supports four mitigation methods:
Close
A bullish FVG is mitigated when price closes through its far side. A bearish FVG is mitigated when price closes through its far side.
Wick
A bullish FVG is mitigated when a wick reaches through its far side. A bearish FVG is mitigated when a wick reaches through its far side.
Average
The FVG is mitigated when price reaches the midpoint of the imbalance.
None
The FVG remains visible until removed by the Show Last FVGs limit.
Extend Imbalance
Controls how many bars the FVG box extends to the right.
Volatility Threshold
Filters FVGs by size using ATR.
A value of 0 disables the filter.
For example, 0.25 means the FVG must be at least 0.25 ATR in size.
Show Last FVGs
Controls how many bullish and bearish FVGs remain visible on the chart.
Hide Overlap
When enabled, the script skips new overlapping FVGs on the same side to reduce chart clutter.
Show FVG Label
When enabled, the script displays Bull FVG or Bear FVG text inside the gap.
FVG Transparency
Controls how light or strong the FVG background appears.
7. Quick Guide Section
The indicator includes a Quick Guide group inside settings.
This section contains tooltip explanations for:
* Structure label meaning
* Setup logic meaning
* Fair Value Gap meaning
The goal is to make the indicator easier to understand directly from the settings panel.
8. Alerts
The script includes alert conditions for important structure and setup events.
Market Structure Alerts
* Internal Bullish BOS
* Internal Bullish CHoCH
* Internal Bearish BOS
* Internal Bearish CHoCH
* Swing Bullish BOS
* Swing Bullish CHoCH
* Swing Bearish BOS
* Swing Bearish CHoCH
Order Block Alerts
* Bullish OB Touched
* Bearish OB Touched
Qualified Setup Alerts
* Qualified Buy Setup
* Qualified Sell Setup
Fair Value Gap Alerts
* New Bullish FVG
* New Bearish FVG
Alerts are notifications only. They do not execute trades and should not be treated as financial advice.
How to use the indicator
A practical workflow:
1. Start with Swing Structure to understand the higher-level market direction.
2. Use Internal Structure to monitor faster short-term shifts.
3. Enable Order Blocks if you want supply/demand context.
4. Use Premium / Discount / Equilibrium zones to understand where price is trading inside the active swing range.
5. Enable Previous Day / Week levels if you want session and higher-timeframe reference levels.
6. Enable Fair Value Gaps if you want to study imbalance zones.
7. Enable Qualified Buy/Sell Setups only if you want the script to mark conditional setup labels.
8. Use alerts to monitor selected structure, order block, setup, or FVG events.
9. Combine all signals with your own market context, risk management, and confirmation process.
Recommended visual setup for a clean chart
For a clean default chart:
* Keep Order Blocks OFF unless you need them.
* Keep Buy/Sell Setups OFF unless you are studying setup confirmation.
* Keep FVG OFF unless you are specifically analyzing imbalance zones.
* Use Swing Structure for higher-level context.
* Use Internal Structure for short-term structure.
* Enable Daily / Weekly Levels only when relevant to your timeframe.
* Enable Premium / Discount only when studying the active swing range.
Limitations
This indicator does not predict future price movement.
It does not guarantee profitable trades.
It is not a trading strategy.
It does not place orders.
It does not provide broker execution.
It does not provide true historical bid/ask delta.
The buy/sell volume split inside order blocks is an approximation based on candle close position and volume.
Pivots confirm only after the selected number of bars.
Fair Value Gaps are 3-candle imbalance zones and do not guarantee continuation or reversal.
Buy/Sell Setup labels are conditional setup markers, not automatic trading instructions.
Previous Day and Previous Week levels are reference levels only.
Different markets, symbols, timeframes, and sessions can behave differently.
Users are responsible for their own trade decisions, risk management, and position sizing.
Originality and purpose
Price Action Structure combines multiple price-action tools into one organized workflow:
* internal and swing market structure,
* BOS / CHoCH / CHoCH+ labels,
* optional volumetric order blocks,
* approximated buy/sell split profile inside order blocks,
* premium, discount, and equilibrium zones,
* previous day and previous week levels,
* qualified buy/sell setup logic,
* optional Fair Value Gaps,
* multi-timeframe FVG selection,
* FVG mitigation options,
* alert conditions for key events.
The purpose of the indicator is to provide a clean and customizable price-action map that helps traders study market structure, imbalance, order block context, and setup confirmation in one place.
Educational disclaimer
This script is for educational and chart-analysis purposes only. It is not financial advice, investment advice, or a recommendation to buy or sell any financial instrument. Users should perform their own analysis and manage risk independently.
مؤشر

Range Fuel GaugeRANGE FUEL GAUGE — HOW MUCH OF TODAY'S RANGE IS LEFT, AS EXACT PRICES
Every instrument has a typical daily range. Once today's session has consumed most of it, breakout odds statistically fade and mean-reversion setups gain relevance. This indicator turns that idea into two things you can actually trade with: a live fuel gauge and two concrete price levels.
WHAT IT SHOWS
- Fuel panel — how much of the typical daily range today has already used (e.g. "79% used"), with a 10-segment bar that shifts green → amber → red, plus today's range, the typical range, and the points still left
- Upper room level — day low + typical range: the statistical ceiling for today if this session behaves like a typical recent session
- Lower room level — day high − typical range: the statistical floor on the same basis
- A side's room level automatically hides once that side of the range is fully consumed
HOW IT WORKS
1. The indicator stores the high-low range of the last N completed sessions (default 20)
2. Typical range = the Nth percentile of those ranges (default P80, adjustable 50-95)
3. Fuel used = today's developing range ÷ typical range
4. Room levels are simple arithmetic from today's day high / day low and the typical range — they tighten as the day's range expands
HOW TRADERS USE IT
- Fuel below 60% (green) — the day still has energy; breakout and continuation trades have statistical room
- Fuel 60-90% (amber) — range maturing; trail tighter, be selective with fresh breakouts
- Fuel above 90% (red) — the typical range is nearly spent; chasing moves is statistically poor, fade setups toward the day's value become relevant
- Room levels act as realistic intraday targets — for example, a long taken mid-session can use the upper room price as a statistically grounded objective
NOTES
- The room levels are statistical references built from this symbol's own recent history — they are not a forecast, and price can and does exceed them on trend days
- Historical ranges come only from completed sessions and never change after the fact; today's reading updates live as the session develops (by design)
- Alert included: fires when today's range crosses 100% of the typical range
- Panel position is selectable (8 positions); prices are shown as integers
- Works on any symbol; designed for intraday timeframes
This is an original implementation in Pine Script v6. The percentile logic and level arithmetic are fully described above.
Educational tool for market context — not financial advice. مؤشر

Fair Value Gaps + Inversion FVG [Quantum Algo]Fair Value Gaps + Inversion FVG
█ OVERVIEW
Most FVG indicators stop at drawing boxes. This one tracks the complete lifecycle of every gap — fresh → midline-tested → filled → INVERTED → retested — and automates the part of the model that traders actually trade: the Inversion Fair Value Gap (IFVG).
A Fair Value Gap is a 3-candle imbalance left behind when price moves too fast for two-sided trade to occur. Price frequently returns to these zones. But when price closes through a gap instead of respecting it, the zone does not die — it flips polarity. A violated bullish gap becomes resistance; a violated bearish gap becomes support. The first retest of that inverted zone is one of the cleanest entry models in the Smart Money Concepts framework, and this script detects, restyles, and signals it automatically.
█ FEATURES
Gap detection
— Bullish and bearish FVGs detected on confirmed bars only (non-repainting).
— ATR minimum-size filter removes insignificant micro-gaps.
— Optional displacement filter: the middle candle must be a genuine expansion bar (range greater than a configurable multiple of ATR), keeping only gaps created by aggressive participation.
Volume strength score
Every gap is stamped with a 0–100 score comparing the displacement candle's volume against its 20-bar average. A 90% gap and a 20% gap are not the same zone — now you can see the difference at a glance.
Consequent Encroachment (CE)
Each gap carries its 50% midline. The first touch of the CE is detected, the gap is visually dimmed to separate tested zones from fresh ones, and an alert is available.
Inversion engine (IFVG)
— A close through the gap converts it into an inverted zone with distinct styling.
— The first retest of an inverted zone prints an on-chart signal (long model for inverted bearish gaps, short model for inverted bullish gaps).
— A close back through the far side invalidates and removes the zone.
— Inversion can be disabled, in which case gaps simply fill and are removed or frozen (wick-fill or close-fill modes).
Multi-timeframe mode
Display gaps from one higher timeframe directly on your chart as dashed boxes. HTF gaps are built exclusively from closed higher-timeframe bars, so they do not repaint.
Dashboard
A compact panel shows active bullish gaps, bearish gaps, inverted zones, plus the nearest demand level below price and the nearest supply level above it.
Alerts
Eight alert conditions cover the full lifecycle: new bullish/bearish gap, CE touch, fill, bullish/bearish inversion, and long/short IFVG retest.
█ HOW DETECTION WORKS
A bullish FVG forms when the current bar's low sits entirely above the high from two bars earlier — the zone spans that void. A bearish FVG is the mirror image. Detection runs only on bar close, so a gap that appears never disappears or redraws. Lifecycle state changes (CE touches, fills, inversions, retests) are likewise evaluated on confirmed bars.
█ HOW TO USE IT
1. Classic continuation: in a trend, wait for price to retrace into a fresh high-strength gap aligned with the trend; the CE midline is the standard entry refinement.
2. Inversion reversal: when a gap is closed through, stop looking for the old reaction — wait for the retest of the inverted zone in the new direction. The on-chart IFVG markers identify exactly this moment.
3. Multi-timeframe confluence: enable HTF mode and prioritize chart-timeframe signals that occur inside a higher-timeframe gap.
4. Use the dashboard's nearest demand/supply readout for quick situational awareness of where the next reaction zones sit.
Works on all symbols and timeframes. Crypto and index futures tend to produce the cleanest gaps on 5m–1H; forex gaps are more frequent on 15m and above.
█ SETTINGS
Detection — minimum gap size (× ATR), displacement filter, maximum zones kept on chart.
Mitigation & Inversion — inversion on/off, fill source (close or wick), removal of filled gaps, retest signals.
Multi-Timeframe — HTF on/off and timeframe selection.
Visuals — colors for bullish / bearish / inverted zones, fill transparency, CE line, labels, dimming of tested gaps, dashboard.
█ NOTES
— All state changes occur on closed bars; the developing bar can always change until it closes.
— This is an analysis tool for mapping imbalance and inversion zones, intended as a confluence layer within a complete trading plan. It is not a standalone buy/sell system.
█ DISCLAIMER
This script is provided for educational and informational purposes only and does not constitute financial advice. Trading involves substantial risk of loss. Past behavior does not guarantee future results. Always do your own research and apply sound risk management. مؤشر

MJQ.Smart Money - Zones, Sweeps & Gaps MJQ Smart Money — multi-timeframe supply/demand, liquidity and structure toolkit
One overlay that maps where smart money is likely positioned, across your entry, setup and bias timeframes.
What it draws
- Supply / Demand zones (unified engine) — finds a quiet consolidation base and only stamps a zone when price departs
from it with an impulse ≥ 1.2× ATR. Covers all four patterns (rally-base-rally, rally-base-drop, drop-base-drop,
drop-base-rally). Zones are detected on the chart TF plus Daily, 4H and 1H simultaneously, with a proximity filter so
only actionable levels near price are drawn.
- Zone lifecycle — fresh zones are protected by a grace period, fade to dimmed/dashed on first proximal touch
("tested", still tradeable), and are removed when the distal edge breaks. Daily+ zones mitigate on first touch since
daily tests are real mitigations.
- Liquidity sweeps — pin-bar or engulfing rejections that run stops above confirmed highs (BSL) or below confirmed
lows (SSL).
- Market structure — BOS and CHoCH on the chart timeframe, plus an HTF bias engine (auto-mapped or manual HTF) that
tracks higher-timeframe structure; optionally filter signals to align with HTF bias.
- Fair Value Gaps — unfilled FVGs with automatic removal once filled.
- Price gap detector — unfilled session/daily gaps, auto-removed on fill.
- Round numbers — psychological levels marked inside zones.
- Dashboard — at-a-glance HTF bias, structure state and module status.
Trading profiles — pick Swing (Daily bias / 4H setup / 1H entry) or Intraday (1H bias / 15m setup / 3m entry) and the
zone timeframes configure themselves; Custom uses your own TF slots.
Alerts — bullish/bearish liquidity sweeps, LTF CHoCH, HTF BOS and HTF CHoCH (8 conditions).
---
Release notes for this version (from recent work)
- Unified S/D engine: order blocks merged into one base-plus-departure detector across all four patterns
- Chop filter: minimum departure raised to 1.2× ATR to kill sideways-market zone spam
- Fixed zone-bound inflation bug (backward loop) that overstated all zone heights
- New touch handling: Fade/Remove modes, wick-vs-close distal failure, Daily+ first-touch removal
- Zone proximity filter (15× ATR default) keeps the chart to actionable levels only
- Trading Profile presets (Swing / Intraday) for automatic timeframe selection مؤشر

مؤشر

مؤشر

Golden Cross Chob ZoneGolden Cross Chob Zone
Golden Cross Chob Zone is a visual trend-following indicator designed to help traders study bullish trend regimes using EMA 50, EMA 200, Chop Zone trend strength, pullback behavior, and structured visual risk references.
The script combines:
* EMA 50 and EMA 200 regime analysis
* Golden Cross and Death Cross detection
* Chop Zone trend-strength coloring
* Sideways / no-trade filtering
* Multiple bullish entry-event types
* Visual Entry / Stop / Target reference lines
* EMA 200 exit logic
* Compact labels with detailed tooltips
* Dashboard status and event counters
* Alert conditions for key events
This script is an indicator, not a strategy. It does not place orders, does not execute trades, and does not produce TradingView Strategy Tester backtest results. The visual BUY, TP, SL, and EMA200 EXIT labels are chart-analysis events only. They are intended to help users study how the selected rules behave on the chart, not to guarantee performance or provide financial advice.
Important note about signals and performance
Golden Cross Chob Zone does not guarantee profitable trades.
The BUY labels are not automatic trading recommendations. They mark technical conditions where the script detected one of its bullish entry-event rules.
The TP HIT, SL HIT, EMA200 EXIT, and DC EXIT labels are visual tracking references only. They are not broker fills, not strategy orders, and not official backtest results.
The dashboard statistics are simple event counters based on the script’s visual tracking logic. They should not be interpreted as verified strategy performance, win rate, or realistic trading results.
Users should combine this tool with their own analysis, risk management, position sizing, and market context.
Core idea
The main idea of this indicator is to detect bullish market conditions where EMA 50 is above EMA 200, then look for structured bullish continuation events such as:
* Golden Cross breakout
* EMA 50 pullback confirmation
* EMA 50 bounce
* EMA 50 reclaim
The script also uses Chop Zone coloring to estimate whether the trend environment is strong, weak, choppy, or bearish. A sideways / no-trade filter can block normal BUY events when the market is too flat, too compressed, or price is not clearly above EMA 200.
Main components
1. EMA 50 and EMA 200 trend regime
The script uses two exponential moving averages:
Fast EMA
Default: EMA 50
Slow EMA
Default: EMA 200
The Fast EMA is used for pullbacks, bounces, reclaims, and Golden Cross entries.
The Slow EMA is used as the main regime filter and as an optional dynamic exit reference.
Bullish regime
A bullish regime exists when EMA 50 is above EMA 200.
This is the script’s most important directional filter. The script is designed mainly for long-side trend analysis.
Golden Cross
A Golden Cross occurs when the Fast EMA crosses above the Slow EMA.
The script can mark this event with a GC label.
Death Cross
A Death Cross occurs when the Fast EMA crosses below the Slow EMA.
The script can mark this event with a DC label.
Important: GC and DC labels are moving-average structure events. They are not guaranteed buy or sell signals.
2. EMA regime fill
The script can shade the area between EMA 50 and EMA 200.
Green fill
Fast EMA is above Slow EMA.
Red fill
Fast EMA is below Slow EMA.
This helps users quickly identify whether the chart is in a bullish or bearish EMA regime.
3. Chop Zone filter
The Chop Zone section estimates the slope strength of a selected EMA by measuring its angle relative to the recent price range.
The script calculates:
* a recent high-low range,
* an EMA slope,
* a normalized slope angle,
* a color grade based on the slope direction and strength.
The Chop Zone grade is then translated into color categories.
Positive Chop Zone grades
Turquoise
Strong upward trend condition.
Dark green
Clear upward trend condition.
Pale green
Mild upward trend condition.
Teal
Weak upward condition.
Neutral / yellow
Yellow
Choppy or neutral slope condition.
Negative Chop Zone grades
Light orange
Weak downward condition.
Orange
Mild downward condition.
Pink
Clear downward condition.
Dark red
Strong downward condition.
The Chop Zone is used as a trend-quality filter for normal BUY signals. Users can choose the minimum Chop Zone grade required to allow buys.
Minimum Grade To Allow Buys
Any green
Allows any positive green / teal condition.
Pale green or better
Requires a stronger positive Chop Zone reading.
Dark green or better
Requires a clear upward trend condition.
Turquoise only
Requires the strongest upward Chop Zone condition.
4. Chop Zone strip
The script can plot a small colored strip at the bottom of the price pane.
Each square represents the Chop Zone color for that bar.
This gives a compact visual reading of trend strength and choppiness without needing a separate pane.
5. Candle coloring by Chop Zone
The script can color price candles using the Chop Zone colors.
This helps the user visually connect candle movement with the current trend-strength classification.
Candle coloring is visual context only. It is not a standalone entry or exit signal.
Entry logic
The script supports several bullish entry-event types.
A BUY label can appear only when the script’s selected rules are met. By default, the logic is long-side focused and requires EMA 50 to be above EMA 200, except that Golden Cross breakout has its own optional filter settings.
1. Golden Cross Breakout Entry
The Golden Cross breakout entry is designed to identify a bullish breakout condition on the bar where EMA 50 crosses above EMA 200.
A GC breakout BUY can occur when:
* Golden Cross happens,
* EMA 50 is above EMA 200,
* close is above EMA 50,
* close is above EMA 200,
* candle is bullish,
* optional Chop Zone condition passes,
* optional sideways filter condition passes.
This entry type is displayed as:
GC BREAKOUT
Important: This is not a guaranteed breakout signal. It only marks that the selected Golden Cross breakout conditions were met.
2. Classic Pullback Entry
The classic pullback logic waits for price to touch or come close to EMA 50, then requires a bullish confirmation candle within a selected number of bars.
A classic pullback BUY can occur when:
* EMA 50 is above EMA 200,
* Chop Zone filter allows buys,
* price touches or nearly touches EMA 50,
* confirmation candle appears within the selected confirmation window,
* candle closes above EMA 50,
* optional prior-high confirmation passes.
This entry type is displayed as:
PULLBACK
3. EMA 50 Bounce Entry
The EMA 50 bounce entry is a more direct bounce condition.
A bounce BUY can occur when:
* EMA 50 is above EMA 200,
* Chop Zone filter allows buys,
* candle is bullish,
* close is above EMA 50,
* low touches or nearly touches EMA 50.
This entry type is displayed as:
EMA50 BOUNCE
4. EMA 50 Reclaim Entry
The EMA 50 reclaim entry looks for price recovering back above EMA 50.
A reclaim BUY can occur when:
* EMA 50 is above EMA 200,
* Chop Zone filter allows buys,
* candle is bullish,
* close is above EMA 50,
* previous close was at or below EMA 50.
This entry type is displayed as:
EMA50 RECLAIM
5. One open signal at a time
The script includes an option called:
Only One Open Signal At A Time
When enabled, the script does not print a new BUY signal while a previous signal is still being visually tracked by the Entry / SL / TP logic.
This helps reduce repeated labels in the same open setup.
Sideways / no-trade filter
The script includes a market filter designed to reduce normal BUY events in sideways or unclear conditions.
The sideways filter can check:
* EMA 50 / EMA 200 spread,
* EMA 50 slope,
* EMA 200 slope,
* price position relative to EMA 200,
* cooldown after previous exit.
The filter is designed to block normal BUY signals when market conditions are too flat, compressed, or unclear.
Important: The Golden Cross breakout entry can be allowed separately from the normal sideways filter, depending on the user settings. This is useful when the user wants to observe the first strong breakout immediately after a Golden Cross.
Filter elements
Minimum EMA50-EMA200 Spread %
Measures the distance between EMA 50 and EMA 200 as a percentage of price.
Higher values reduce signals in sideways markets.
EMA Slope Lookback
Defines how many bars are used to check if EMA 50 or EMA 200 is rising.
Require EMA 50 Slope Up
When enabled, normal BUY events require EMA 50 to be rising.
Require EMA 200 Slope Up
When enabled, normal BUY events require EMA 200 to be rising.
Require Price Above EMA 200
When enabled, normal BUY events require close to be above EMA 200.
Cooldown After Exit
Blocks new normal BUY events for a selected number of bars after TP, SL, or EMA200 exit.
This is intended to reduce repeated entries after an exit, especially in sideways markets.
Stop / exit and target logic
The script includes visual reference levels for Entry, Stop / Exit, and Target.
These levels are not strategy orders. They are chart references only.
Stop / Exit Mode
The script supports three stop / exit modes:
1. EMA 200 Break Exit
This mode uses the current EMA 200 as a dynamic exit reference.
The exit can trigger when:
* low touches EMA 200, or
* close falls below EMA 200,
depending on the selected EMA 200 break trigger.
This mode is dynamic because the EMA 200 changes as new bars form.
2. Fixed EMA 200 at Entry
This mode freezes the stop reference at the EMA 200 value on the BUY signal bar.
Unlike the dynamic EMA 200 exit, this reference does not move after entry.
3. Fixed Pullback Low
This mode places the stop reference below the recent pullback low.
The pullback low is calculated using the selected lookback period.
SL Buffer
The script allows an optional ATR-based buffer under the chosen stop anchor.
A buffer of 0.00 uses the stop anchor directly.
Increasing the value places the fixed stop reference farther away from the stop anchor.
Take-profit logic
The take-profit level is based on prior swing-high structure.
The script first looks for the highest high over the selected swing-high lookback period before the signal bar.
If that swing-high target is not available, is below entry, or gives too little reward-to-risk, the script uses a fallback R-multiple target.
Target: Swing-High Lookback
Defines how far back the script looks for a prior swing-high target.
Fallback R Multiple
Defines the fallback target based on risk distance.
Minimum Acceptable Target RR
If the prior swing-high target gives less than this minimum RR, the script uses the fallback R target instead.
Visual lines
When enabled, the script can draw:
Entry line
A dashed reference at the BUY close price.
SL / exit reference line
A red reference line based on the selected stop / exit mode.
TP line
A green reference line based on the selected target logic.
If EMA 200 Break Exit is used, the SL reference line can follow the EMA 200 dynamically.
Labels
BUY label
The BUY label appears when one of the selected entry-event rules is triggered.
If compact labels are enabled, the label stays small and the full details are placed in the tooltip.
The BUY tooltip can include:
* entry type,
* entry price,
* reference SL,
* target,
* RR,
* target mode,
* exit mode,
* EMA 50 / EMA 200 regime,
* EMA spread,
* filter status,
* cooldown status,
* Golden Cross breakout status,
* Chop Zone grade.
TP HIT label
The TP HIT label appears when price reaches the visual take-profit reference.
This label is a visual tracking event only. It is not a broker fill or a verified backtest result.
SL HIT label
The SL HIT label appears when the fixed stop reference is touched.
This applies when the selected mode uses a fixed stop reference.
EMA200 EXIT label
The EMA200 EXIT label appears when the dynamic EMA 200 exit condition is triggered.
Depending on settings, this can happen when:
* low touches EMA 200, or
* close falls below EMA 200.
DC EXIT label
The DC EXIT label can appear when a Death Cross occurs while a tracked signal is open and the selected exit logic allows that condition.
This is a moving-average structure exit event, not a strategy order.
Label spacing
The script places labels using ATR-based spacing so they are not directly attached to candles.
Label Distance From Candles controls how far labels are placed vertically away from price bars.
Dashboard
The dashboard summarizes the current condition of the indicator.
Dashboard fields
Regime
Shows whether the EMA structure is bullish or bearish.
BULL
EMA 50 is above EMA 200.
BEAR
EMA 50 is below EMA 200.
The dashboard can also show how many bars have passed since the last Golden Cross or Death Cross.
Chop Zone
Shows the current Chop Zone condition, such as:
* STRONG UP
* TREND UP
* MILD UP
* WEAK UP
* CHOP
* WEAK DOWN
* MILD DOWN
* TREND DOWN
* STRONG DOWN
Filter
Shows whether the normal market filter is allowing signals or blocking them.
OK
Normal market filter conditions are acceptable.
NO TRADE
Normal market filter is blocking normal BUY events.
The dashboard also shows EMA spread percentage.
Setup
Shows the current setup state, such as:
SIGNAL OPEN
A visual signal is currently being tracked.
COOLDOWN
New normal signals are blocked temporarily after an exit.
GC BREAKOUT READY
Golden Cross breakout conditions are present.
NO TRADE
Market filter is blocking normal entries.
PULLBACK ARMED
Price has touched the EMA 50 pullback zone and is waiting for confirmation.
WAITING PULLBACK
Bullish regime exists, but no valid entry event has triggered.
STAND ASIDE
The EMA regime is not bullish.
Open
Shows current open visual tracking references:
* Entry
* SL / exit reference
* TP
Stats
Shows simple event counters:
* total signals,
* wins counted by TP events,
* losses counted by SL / exit events,
* TP-rate based on the script’s internal visual events.
Important: These are not official Strategy Tester results and should not be presented as backtesting performance. They are simple chart-event counters for study and comparison only.
Alerts
The script includes alert conditions for:
Golden Cross
Triggered when EMA 50 crosses above EMA 200.
GC Breakout BUY
Triggered when the Golden Cross breakout entry conditions are met.
Death Cross
Triggered when EMA 50 crosses below EMA 200.
Pullback Touch
Triggered when price touches or approaches the EMA 50 pullback zone.
BUY Signal
Triggered when a selected BUY event occurs.
Chop Zone -> Green
Triggered when Chop Zone shifts into a positive / green condition.
Chop Zone -> Red
Triggered when Chop Zone shifts into a negative / red condition.
TP Hit
Triggered when the visual take-profit reference is reached.
Stop / EMA200 Exit
Triggered when the stop reference or EMA 200 exit condition is reached.
Alerts are notifications only. They do not instruct the user to buy or sell.
Settings explained
Trend EMAs
Fast EMA Length
Sets the fast EMA. Default is EMA 50.
Slow EMA Length
Sets the slow EMA. Default is EMA 200.
Fill Between EMAs
Shows or hides the colored area between the two EMAs.
Chop Zone Filter
Range Lookback
Defines the range used to normalize the EMA slope.
Slope EMA Length
Defines the EMA used for the Chop Zone slope calculation.
Minimum Grade To Allow Buys
Defines how strong the Chop Zone must be before normal BUY events are allowed.
Show Chop Zone Strip
Shows or hides the colored strip at the bottom of the price pane.
Color Price Bars By Chop Zone
Colors candles using the Chop Zone condition.
Entry Logic
Allow Golden Cross Breakout Entry
Allows a BUY event on the Golden Cross bar if the breakout conditions are met.
GC Breakout Requires Green Chop Zone
Requires Chop Zone to be green for Golden Cross breakout entries.
Fast-EMA Touch Tolerance (%)
Allows a candle low to come close to EMA 50 instead of requiring an exact touch.
Confirm Within (bars)
Defines how many bars are allowed between an EMA 50 touch and a confirmation candle.
Confirm Candle Must Close Above Prior High
Requires the confirmation candle to close above the previous bar’s high.
Allow Classic Pullback Entry
Enables the classic pullback entry-event logic.
Allow EMA 50 Bounce Entry
Enables the EMA 50 bounce entry-event logic.
Allow EMA 50 Reclaim Entry
Enables the EMA 50 reclaim entry-event logic.
Only One Open Signal At A Time
Blocks new BUY events while a previous visual signal is still open.
Sideways / No-Trade Filter
Enable Sideways / No-Trade Filter
Enables or disables the normal market filter.
Apply Sideways Filter To GC Breakout
Applies the sideways filter to Golden Cross breakout entries when enabled.
Minimum EMA50-EMA200 Spread (%)
Requires a minimum distance between EMA 50 and EMA 200.
EMA Slope Lookback (bars)
Defines the slope lookback for EMA slope checks.
Require EMA 50 Slope Up
Requires EMA 50 to be rising.
Require EMA 200 Slope Up
Requires EMA 200 to be rising.
Require Price Above EMA 200
Requires close to be above EMA 200.
Cooldown After Exit (bars)
Blocks normal BUY events after an exit for the selected number of bars.
Stop Loss / Target
Stop / Exit Mode
Chooses between dynamic EMA 200 exit, fixed EMA 200 at entry, or fixed pullback low.
EMA 200 Break Trigger
Chooses whether the dynamic EMA 200 exit uses a low touch or a close below EMA 200.
ATR Length
Controls the ATR used for stop buffer and label spacing.
SL Buffer (ATR multiples)
Adds an optional ATR buffer to the stop reference.
Pullback Low Lookback (bars)
Defines the lookback for the fixed pullback low stop mode.
Target: Swing-High Lookback (bars)
Defines the lookback for the prior swing-high target.
Fallback R Multiple
Defines the fallback target if the swing-high target is not usable.
Minimum Acceptable Target RR
Defines the minimum reward-to-risk required before using the swing-high target.
Visuals / Dashboard
Show Dashboard
Shows or hides the dashboard.
Dashboard Position
Moves the dashboard to a selected chart corner.
Mark Golden / Death Crosses
Shows or hides GC and DC labels.
Draw Entry / SL / TP Lines
Shows or hides the visual reference lines.
Show BUY Triangle
Shows or hides the BUY triangle marker.
Use Compact Labels
Uses smaller labels with full details stored in tooltips.
Show BUY Label
Shows or hides the BUY label.
Label Distance From Candles (ATR)
Controls vertical spacing between labels and candles.
How to use this indicator
A practical workflow:
1. Check whether EMA 50 is above EMA 200.
2. Check the Chop Zone condition.
3. Check whether the dashboard says OK or NO TRADE.
4. Watch for one of the selected BUY event types.
5. Review the visual Entry, SL / exit reference, and TP reference.
6. Use the tooltip on the label for full signal details.
7. Treat all labels as chart-analysis events, not as automatic trade instructions.
8. Combine the signal event with market structure, volume, higher timeframe analysis, and risk management.
Example interpretation
If a GC BREAKOUT label appears, it means EMA 50 crossed above EMA 200 and the selected breakout conditions were met. It does not guarantee that price will continue higher.
If a PULLBACK label appears, it means price touched the EMA 50 pullback zone and then produced a bullish confirmation candle within the selected confirmation window.
If an EMA50 BOUNCE label appears, it means price touched or nearly touched EMA 50 and closed back above it with a bullish candle.
If an EMA50 RECLAIM label appears, it means price closed back above EMA 50 after previously being at or below it.
If EMA200 EXIT appears, it means the dynamic EMA 200 exit condition was triggered.
If TP HIT appears, it means price reached the visual target reference.
Important limitations
This indicator does not predict future price movement.
It does not guarantee profitable trades.
It does not place orders.
It does not produce Strategy Tester results.
BUY labels are not financial advice.
TP / SL / exit labels are not broker fills.
Dashboard stats are internal visual event counters, not verified backtest statistics.
EMA-based systems can perform poorly in choppy, sideways, or low-volume markets.
Chop Zone classification is based on slope and range normalization, not on future price prediction.
The script is designed mainly for long-side trend-following analysis.
Different symbols, markets, sessions, and timeframes may require different settings.
Users are responsible for their own trade decisions, risk management, and position sizing.
Recommended use
Golden Cross Chob Zone is best used as a decision-support and chart-analysis tool for traders who study:
* Golden Cross / Death Cross structure,
* EMA 50 and EMA 200 trend regimes,
* EMA pullbacks,
* EMA 50 bounces,
* EMA 50 reclaim events,
* trend strength and choppiness,
* visual risk references,
* long-side trend continuation conditions.
It should be used as one part of a broader trading process, not as a standalone trading system.
Originality and purpose
Golden Cross Chob Zone combines several visual and analytical components into one workflow:
* EMA 50 / EMA 200 regime detection,
* Golden Cross breakout logic,
* Chop Zone trend-strength filter,
* pullback / bounce / reclaim entry-event logic,
* sideways market filtering,
* visual Entry / SL / TP references,
* dynamic EMA 200 exit option,
* compact labels with detailed tooltips,
* dashboard state monitoring,
* alert conditions for key events.
The purpose is to help users study bullish trend-continuation conditions with clearer visual context and fewer signals during weak or sideways conditions.
مؤشر
