Smart Zone Engine – Gnome Intelligence v3.4Smart Zone Engine – Gnome Intelligence
Description: The Smart Zone Engine is an original, closed-source adaptive support and resistance detection system. It is not based on mashups of public indicators or traditional overlays like RSI, moving averages, or Bollinger Bands. Instead, it introduces a genome-inspired optimization model ("Gnome Engine") that evolves live on the chart to produce dynamic, adaptive structural levels based on real price action.
Technical Overview:
Core Components:
Gnome Population (Grid Model): The engine initializes a fixed grid of Gnomes — virtual agents — each defined by three primary parameters:
Lookback Period: The number of bars to search for pivot highs or lows.
Zone Height Multiplier: The vertical size of zones relative to the detected pivot range.
Scoring System:
Each Gnome accumulates "experience points" (XP) based on the frequency and quality of its pivot detections over a rolling window of bars (Pivot-Scan Window, user-configurable).
A Gnome’s score improves if it successfully identifies valid pivots.
Poor performance results in XP decay, eventually leading to replacement.
Mutation Engine:
Every 30 bars (default mutationFreq), the highest-XP Gnome mutates:
It spawns a nearby Gnome with slightly altered parameters (up/down lookback, height, or spacing).
This ensures gradual optimization toward better settings.
Explorer Scouts:
Independently, Explorer Gnomes (Scouts) are occasionally spawned to randomly explore new areas of the parameter space:
If a Scout outperforms existing Gnomes, it is promoted to a regular Gnome.
Otherwise, it expires after a fixed lifetime (scoutLife).
Dominant Gnome Selection:
At any given time, the Gnome with the highest XP defines the active detection parameters used to build zones:
Lookback = dominant Gnome’s optimized pivot window.
Height Multiplier = dominant Gnome’s preferred zone thickness.
Spacing = dominant Gnome’s optimized minimum distance between zones.
Inputs and Data Used:
Price Highs and Lows: Used for pivot detection through ta.pivothigh() and ta.pivotlow().
These functions find localized swing points based on the Gnome’s current lookback setting.
Bar Ranges (High–Low): The recent price range is calculated dynamically over the pivot window to adjust zone height sizing. Larger ranges create thicker zones; smaller ranges create tighter ones.
Zone Midpoints: Midpoints between zone top and bottom are calculated for proximity filtering and flipping logic.
Bounce Count: Each zone tracks how many times price has bounced within its boundaries. Bounces strengthen the zone (XP increment). Clean breaks weaken it (XP decay).
Bar Index: Used to extend zones forward in time for a configurable number of bars (zoneExtendBars).
Tick Size: (syminfo.mintick) is incorporated to ensure zone spacing scales properly across different markets.
How Zones Are Managed:
Creation: New zones are created when valid pivots are detected and no existing nearby zone conflicts.
Scoring and Strength: Zones increment their bounce counter after each valid price interaction. Labels update to show the number of bounces (e.g., 🔥3x).
Flip Logic: If price breaks through a zone and retests from the opposite side: Support becomes Resistance or Resistance becomes Support automatically. The zone’s color and label update to reflect the change.
Invalidation and Cleanup: Zones are deleted when:
-They no longer receive valid bounces.
-They are invalidated by clean breakouts.
-The number of active zones exceeds the maximum (maxZones).
What Traders See: Support zones plotted in translucent green boxes.
-Resistance zones plotted in translucent red boxes.
-Strength labels on each zone showing the bounce count.
-Optional Debug Table showing current Gnome XP and scores (for transparency).
Purpose and Usefulness:
This system is designed for traders needing reliable, real-time evolving structural zones without the static assumptions of traditional indicators.
The Smart Zone Engine adapts to changing price conditions, identifies emerging support/resistance automatically, and evolves its detection settings intelligently.
It is a structural analysis tool — not a predictive signal generator — and should be used as part of a broader discretionary trading approach.
Limitations and Disclaimers:
This script analyzes historical price pivots; it does not predict future price action.
Bounce counts are historical observations and do not guarantee future reactions.
No slippage, commissions, or trading executions are modeled in this tool.
Traders remain responsible for using zones responsibly within their risk management plans.
Access Instructions:
This script is invite-only.
To request access, please follow the instructions provided under the Author’s Instructions field.
Pontos e níveis de pivô
BlindspotBlindspot - Multi-Asset Level Indicator
**Overview:**
The "Blindspot" indicator helps identify potential support and resistance levels based on price data from *another* asset, overlaid directly onto your current chart. This allows you to quickly visualize key price points from a related market (like the S&P 500) and see how they might influence the asset you're trading.
**How it Works:**
This indicator pulls closing prices from a symbol of your choosing (default is SPX). You define up to five horizontal levels based on that source symbol’s price. These levels are then plotted on *your* chart, allowing for easy comparison.
**Key Features & Inputs:**
**Source Symbol:** Specify the ticker you want to pull level data from (e.g., SPX, QQQ, BTCUSD).
* **Show Level X (1-5):** Enable or disable individual levels for a cleaner chart view.
* **Level X Price:** Set the specific price level you want to plot.
* **Color:** Customize the color of each line for better visibility.
**How to Use It:**
1. **Choose a Relevant Symbol:** Select a symbol that has a correlation or influence on the asset you're trading. For example, if trading a tech stock, SPX might be a good choice.
2. **Define Key Levels:** Identify significant support and resistance levels on the source symbol’s chart. Enter these prices into the "Level X Price" inputs.
3. **Observe for Confluence:** Look for areas where the plotted levels align with support/resistance zones on *your* chart. These points of confluence can indicate potential turning points or strong price reactions.
**Who is this indicator for?**
This indicator is ideal for:
* Traders who want to incorporate inter market analysis into their strategies.
* Beginner traders learning about support and resistance levels.
* Anyone looking for a visual way to identify potential key price points from related assets.
**Disclaimer:** This indicator is intended for informational purposes only and should not be used as the sole basis for trading decisions. Always conduct your own research and consider your risk tolerance before entering any trade.
Dynamic Gold Key Levels (Auto Around Current Price)
This TradingView indicator plots dynamic key price levels based on current market price of gold.
Key features include:
Customisable range and line color
Levels ending with 00, 30, or 50 are automatically highlighted with a different color.
Other levels use the normal color
EMA 9 on 5-Minute Chart:
A 9-period Exponential Moving Average (EMA) is plotted, visible only on the 5-minute timeframe.
Previous Day High/LowIdentifies previous day highs and lows as areas of interest for potential sweeps.
Overnight High/LowOvernight Liquidity Tracker. Keeps track of the highs and lows during overnight trading hours to identify possible sweep areas of interest.
MastersCycleSignal(Mastersinnifty)Overview
MastersCycleSignal is a high-precision market timing and projection indicator for trend-following and swing traders.
It combines an adaptive cycle detection algorithm, forward-looking sine wave projections, dynamic momentum confirmation, and Gann Square of 9-based geometric targets into a complete structured trading framework.
The script continuously analyzes price oscillations to detect dominant cycles, projects expected price behavior with future-facing sine approximations, and generates buy/sell signals once confirmed by adaptive momentum filtering.
Upon confirmation, it calculates mathematically consistent Gann-based target levels and risk-managed stop-loss suggestions.
Users also benefit from auto-extending targets as price action unfolds — helping traders anticipate rather than react to market shifts.
---
Uniqueness
MastersCycleSignal stands apart through a unique fusion of techniques:
- Dynamic Cycle Detection
- Detects dominant cycles using a cosine correlation maximization method between detrended price (close minus SMA) and theoretical cosine curves, dynamically recalibrated across a sliding window.
- Sine Wave Future Projection
- Smooths and projects future price paths by approximating a forward sine wave based on the real-time detected dominant cycle.
- Adaptive Momentum Filtering
- Volatility is scaled by divergence between normalized returns and a 5-period EMA, further adjusted by an RSI(2) factor.
- This makes buy/sell signal confirmation robust against noise and false breakouts.
- Gann-Based Target Computation
- Uses a square-root transformation of price, incremented by selectable Gann Square of 9 degrees, for calculating progressive and dynamically expanding price targets.
- Auto-Extending Targets
- As price achieves a projected target, the system automatically draws subsequent new targets based on the prior target differential — providing continuous guidance in trending conditions.
---
Usefulness
MastersCycleSignal is built to help traders:
- Identify early trend reversals through cycle shifts.
- Forecast probable price paths in advance.
- Plan systematic target and stop-loss zones with geometric accuracy.
- Reduce guesswork in trend-following and swing trading.
- Maintain structured discipline across intraday, swing, and positional strategies.
It works seamlessly across stocks, indices, forex, commodities, and crypto markets — on any timeframe.
---
How to Use
- Attach the indicator to your desired chart.
- When a Buy Signal or Sell Signal appears (green or red markers):
- Use the attached stop-loss labels to manage risk.
- Monitor the automatically plotted target lines for partial exits or full profits.
- The orange projected sine wave illustrates the expected future market path.
- Customization Options:
- Cycle Detection Length — adjust to fine-tune cycle sensitivity.
- Projection Length — modify the forward distance of sine wave forecast.
- Gann Square of 9 Degrees — personalize target increments.
- Toggle Signals and Target visibility as needed.
---
Disclaimer
- MastersCycleSignal uses no future data or lookahead bias.
- All projections are based on geometric extrapolations from historical price action — not guaranteed predictions.
- Trading involves risks, and historical cycle behavior may differ in future conditions.
Swing High/Low Scalper(Mastersinnifty)Overview
The Swing High/Low Scalper is designed for traders seeking structured entries and disciplined stop-loss planning during momentum shifts. It combines smoothed Force Index readings with swing high/low analysis to identify moments where both momentum and structural price levels align.
When a new directional bias is confirmed, the indicator plots clear entry signals and dynamically calculates the nearest logical stop-loss level based on recent swing points.
---
Core Logic
- Force Index Bias Detection
- The Force Index (price × volume change) is smoothed with an EMA to determine sustained bullish or bearish momentum.
- Signal Memory and Noise Reduction
- The indicator remembers the last signal (buy/sell) and only triggers a new signal when the bias changes, helping avoid redundant entries in sideways or noisy conditions.
- Swing-based Stop-Loss Calculation
- Upon signal confirmation, the script automatically plots a stop-loss label near the most recent swing low (for buys) or swing high (for sells).
- If conditions are extreme, fallback safety checks are used to validate the stop-loss placement.
---
Key Features
- Dynamic, structure-based stop-loss plots at every trade signal.
- Visual background bias:
- Green tint = Bullish bias
- Red tint = Bearish bias
- Minimalist and clean chart visualization for easy interpretation.
- Designed for scalability across timeframes (from 1-minutes to daily charts).
---
Why It’s Unique
- Unlike simple momentum oscillators or swing indicators, this tool integrates a state-tracking mechanism.
- A signal is only generated when a true shift in directional force occurs and swing structure supports the move, seeking to catch only meaningful changes rather than every minor fluctuation.
- This dual-filter approach emphasizes quality over quantity, aiming for disciplined entries with risk levels derived from actual price behavior, not arbitrary formulas.
---
How to Use
- Apply the Script to your desired chart and timeframe.
- Look for Signals:
- Green Up Arrow = Buy Signal
- Red Down Arrow = Sell Signal
- Observe Stop-Loss Labels
- Use the plotted SL labels for setting exit points based on recent swing structure.
- Monitor Background Bias:
- Green or Red background hints at prevailing directional momentum.
---
Important Disclaimer
This tool is intended to assist technical analysis and trade planning.
It does not provide financial advice or guarantee any future performance.
Always use additional risk management practices when trading.
ADR Average Daily Range Level TargetAverage Daily Range Targets - Open Range
ADR(10) Levels target - 10 days back
%probability levels pullback
Previous High and Low day, week and month lines
Settings initial ranges bar (start and end time bar - 5 minutes example)
Dynamic plotting ADR levels
included:
1) INDICATOR 1: ADR ** AVERAGE DAILY RANGE **
PREVIOUS DAYS CALCULATION = 10 DAYS (max_lines_count=500)
Dynamic Mode ADR Levels (ON/OFF)
Dynamic Mode High-Low Day (ON/OFF)
Show ADR Range for Today Only
Show % ADR Today High-Low Labels
Show Today High-Low Lines
Show Today High-Low Labels Details
INTERNAL HIGH_ADR10 % Target <=100%
INTERNAL LOW_ADR10 % Target <=100%
EXTERNAL HIGH_ADR10 % Target 125% to 225%
EXTERNAL LOW_ADR10 % Target 125% to 225
EXTERNAL HIGH_ADR10 % Target >=250%
EXTERNAL LOW_ADR10 % Target >=250%
initial Bar - High-low Lines - initial Start Day
Extend Initial Bar H-L lines forward (bars)
Extend Lines Range Until XX:YY Hour-Minute
1, 2, 3 and 6 Ranges High-low Lines - Confuigurable Start Sesion time – Logic
2) INDICATOR 2: PREVIOUS DAILY - WEEKLY MONTHLY
PREVIOUS DAILY - WEEKLY MONTHLY Calculations
Extends previous highs and lows in the future
Show a color gradient that highlights the recency of highs and lows
Sq9 Gold ScapingThe indicator is built based on the SQ9 Gann tool for the XAUUSD pair, designed to help identify optimal entry points and reasonable take-profit levels.
Users can adjust two input values — the low and the high — directly on the M1 chart of gold (XAUUSD).
To make the best use of it, please contact me via our Telegram group: Chiêm Tinh Forex or on YouTube: Chiêm Tinh Fx 88.
Renko Session High/Low & Camarilla Pivots with TogglesThis a very simple yet unique indicator in its own way. This plots previous day High/Low, current day High/Low and Camarilla Pivots on renko chart.
I am renko candle trader. As with renko candles, there is no time-axis. A new renko candle is only formed based on the box size.
I wanted to get the Previous day high/low, pivots etc on renko. But the indicators in library were not able to plot the levels on renko chart. Hence I decided to create this script.
Key points.
Plots Current and Previous Day High/Low lines.
Plots Camarilla Pivot lines (H1-H4, L1-L4).
Adds optional labels for all the above.
Allows toggles for today only, and separate toggles for each type of label.
One unified alert.
Note : I am a trader and not a hardcore pine coder. Be easy on me for any errors or bugs in the code.
Pivot Lines and 3-Candle GapsScript draws lines from lows and highs as well as boxes from gaps that extend until a limit or intersection with the price.
ATR Levels & Trend Lines📊 ATR Levels & Trend Lines — a TradingView indicator that uses ATR (Average True Range) to plot support/resistance levels and trend lines.
⚡ Key Features:
📏 ATR Levels: Calculates the Pivot level and 5 support/resistance levels with customizable ATR period and multiplier.
📈 Trend Lines: Draws trend lines based on pivot points, updating as price moves.
⚙️ Customization: Adjust line colors, styles, thickness, and display of level names.
🔔 Alerts: Notifications on level breaks.
🔧 Settings:
🔢 ATR Period and Multiplier for level calculations.
👁️ Trend Line Sensitivity and display options.
⚠️ Warning: The indicator is intended as an additional tool for your trading strategy, not as a standalone entry signal.
Liquidity Trap Reversal Pro (Radar v2)Liquidity Trap Reversal Pro (Radar v2) is a non-repainting indicator designed to detect hidden liquidity traps at key swing highs and lows. It combines wick analysis, volume spike detection, and optional trend and exhaustion filters to identify high-probability reversal setups.
🔷 Features:
Non-Repainting: Pivots confirmed after lookback period, no future leaking.
Volume Spike Detection: Filters traps that occur during major liquidity events.
EMA Trend Filter (Optional): Focus on traps aligned with the prevailing trend.
Higher Timeframe Trend Filter (Optional): Confirm traps using a higher timeframe EMA bias.
Exhaustion Guard (Optional): Prevents traps after overextended moves based on ATR stretch.
Clean Visuals: Distinct plots for raw trap points vs confirmed traps.
Alerts Included: Set alerts for confirmed high/low liquidity traps.
📚 How to Use:
Watch for Trap Signals:
A Trap High signal suggests a potential bearish reversal.
A Trap Low signal suggests a potential bullish reversal.
Use Confirmed Signals for Best Entries:
Confirmed traps fire only after price moves opposite to the trap direction, adding reliability.
Use Trend Filters to Improve Accuracy:
In an uptrend (price above EMA), prefer Trap Lows (buy setups).
In a downtrend (price below EMA), prefer Trap Highs (sell setups).
Use the Exhaustion Guard to Avoid Bad Trades:
This filter blocks signals when price has moved too far from trend, helping avoid late entries.
Recommended Settings:
Best used on 15-minute, 1-hour, or 4-hour charts.
Trend filter ON for trending markets.
Exhaustion guard ON for volatile or stretched markets.
📈 Important Notes:
This script does not repaint once a pivot is confirmed.
Alerts trigger only on confirmed trap signals.
Always combine signals with sound risk management and trading strategy.
Disclaimer:
This script is for educational purposes only. It is not investment advice or a guarantee of results. Always do your own research before trading.
RSI + MACD + Liquidity FinderLiquidity Finder: The liquidity zones are heuristic and based on volume and swing points. You may need to tweak the volumeThreshold and lookback to match the asset's volatility and timeframe.
Timeframe: This script works on any timeframe, but signals may vary in reliability (e.g., higher timeframes like 4H or 1D may reduce noise).
Customization: You can modify signal conditions (e.g., require only RSI or MACD) or add filters like trend direction using moving averages.
Backtesting: Use TradingView's strategy tester to evaluate performance by converting the indicator to a strategy (replace plotshape with strategy.entry/strategy.close).
Vitdia Levels DWMVitdia Levels DWM - индикатор расчета уровней сопротивления и поддержки большого периода.
Vitdia Levels DWM - indicator for calculating resistance and support levels of a long period
Nifty 3-min Options Pro Strategy (Fixed Version)This strategy is designed specifically for high-probability intraday options trading on the Nifty 3-5 minute chart.
It intelligently combines CPR (Central Pivot Range) and VWAP to define the market's bias (bullish or bearish) and detects Inside Bar Breakouts to pinpoint low-risk, high-reward entries.
The strategy automatically:
Identifies Buy Signals for CE (Call Options) when conditions are bullish.
Identifies Buy Signals for PE (Put Options) when conditions are bearish.
Plots dynamic CPR and VWAP levels on the chart.
Applies ATR-based Stop Loss and trailing stop loss for risk management.
Generates real-time alerts for quick trading actions.
The trading logic is time-filtered to operate only during optimal intraday hours (9:00 AM to 2:30 PM), avoiding low-volume traps and volatile close sessions.
Designed to help traders capture strong directional moves early, this strategy is perfect for Nifty scalpers and intraday options traders aiming for consistent profitability.
GZ Indicator✍️ Description:
GZ Indicator is an advanced indicator that automatically detects Golden Zones, optimal market entry zones based on the latest significant pivots. The system uses Fibonacci extensions to project precise price targets, while providing a dynamic, visual stop-loss.
Main features:
- Pivot Detection: Automatic identification of significant pivots (high/low).
- Optimal Entry Zones (OTE): Automatically calculates ideal entry zones based on Fibonacci retracements.
- Precise Targets: Displays price targets with Fibonacci extensions.
- Dynamic Stop-Loss: Visual stop-loss zone adjusted to market conditions.
- RSI and MACD display: Add an RSI and MACD chart to facilitate trend analysis and confirm your entries.
- Intelligent refresh: Automatic deletion of the active zone as soon as the stop-loss is reached.
🔥 Key features:
Automatic detection of significant pivots (highs and lows)
Dynamic calculation of the OTE (Optimal Trade Entry) zone on retracements 0.618 - 0. 705
Clear display of price targets based on extensions
Intelligent updating: old zones are retained for historical analysis
Automatic deletion of current zone if Stop-Loss is reached
Contextual RSI and MACD chart for improved trend analysis
Code optimized for minimum recalculations, fluid even on fast time units.
⚡ How to use it:
Spot the appearance of a Golden Zone.
Enter a position in the zone with RSI/MACD or price action confirmation.
Use the targets displayed to set your progressive Take-Profits.
Respect the Stop-Loss zone automatically drawn.
🛠️ Available parameters:
Activate/deactivate RSI/MACD chart
Choose number of pivots for detection
Display old targets
[⚠️ Disclaimer:
This indicator is a decision-making tool. It is not intended to be used as financial advice. Please always perform your own analysis and manage your risks properly.
🔥 Bon trading ! 🚀
Most Volume Candle LevelsThe script finds the candlestick with the maximum volume in the specified period (20 bars by default).
Draws levels on high and low of this candlestick.
You can set the color of the lines (yellow by default).
Heikin Ashi Closes: 2 Months + 4 WeeksThis is a key level that the average prices was in the previous data the blue lines is weekly and the red is monthly
DMM Face-Melter Pro v2🔧 Core Components & Functionality
📐 Dynamic Fibonacci Levels (Slow)
Five ultra-reliable zones based on extended Fibonacci sequences (think 377, 610, 987, etc.).
Specifically designed to remain hidden until price proximity matters.
When price action moves within ~10% of one of these levels, it’s automatically activated and displayed.
As price moves away, the level enters a cooldown phase and stops printing on the chart.
Especially powerful in swing setups and macro timeframes, where these levels often mark major turning points or hidden support/resistance, yet are not routinely tracked due their long length.
🧊 Cool 9 + Gradient Suite (Fast to Medium)
Cool 9: A fast-reacting line with a smooth visual gradient stretching to the Fibonacci 34. The gradient visually communicates momentum decay and near-term exhaustion.
Cool 21 and Cool 55: Optional overlays that round out this trio of reactive lines. These mid-length Fib levels are ideal for spotting rhythm-based reversals and continuation patterns.
All three have proven effectiveness across all timeframes, from intraday to monthly charts, with an emphasis on oscillation structure.
🌫 Death Metal Bands (Candle Coloring Logic)
Candle colors shift dynamically based on interaction with a Bollinger Bands–inspired cloud.
Candles get brighter or darker as they close deeper into the upper or lower cloud, giving an intuitive sense of price extremes without extra lines.
The color sequence resets when price enters the middle zone.
Choose between:
Standard Mode: Green/red candles shift toward white/gray.
Low-Stress Mode: Cream/gray candles shift toward purple/blue—for reduced screen fatigue and clearer judgment in high-volatility conditions.
🟨 200-Day Cloud
A cloud-based visualization of the 200-period moving average, enhanced with an embedded Fibonacci level.
Helps identify high-confluence zones that institutional traders often react to, but which are rarely marked with this level of refinement.
🧠 How to Use It
This script was built for traders who need high-signal input and low chart noise:
Swing traders can use the dynamic Fibonacci levels to monitor hidden zones where price often pivots.
Trend followers can lean on the Cool 9 suite to confirm direction and strength in real time.
Visual and discretionary traders will benefit from candle color cues that highlight exhaustion without clashing with other systems or charts.
Auto Support & Resistance [Algopilot Trading™️]Auto Support & Resistance effortlessly plots the most relevant and valid support and resistance levels, automatically updating when a level is broken.
More than just simple lines, this indicator features Breakout Probability :
When enabled, support and resistance lines automatically switch from solid to dotted when volume and price action suggest high-probability for a breakout.
Whether you're focused on analyzing price action or managing trades, do it without the distraction of manually drawing support and resistance lines.
Trade smarter, not harder — stay focused on what matters.
Timeframe Titans: Market Structure & MTF Order Blocks🟩 OVERVIEW
A combined market structure and order block indicator. Displays fractals, zigzags, Break Of Structure and Change Of Character lines. Shows order blocks on the chart and a higher timeframe.
Unique features include:
• The structure rules require counter fractals for BOS. This enables us to use more responsive fractal settings without creating excessive noise.
• Structure is strict. After the initial CHoCH there is always one and only one active CHoCH line.
• Order blocks can be filtered by market structure.
• Order blocks are based entirely on candle patterns (which appear to be unique among all the indicators we tested) instead of using pivots or other configurable calculations.
• Order blocks have separate mitigation levels, not merely the edge of the block, and being partially mitigated is a separate logical state.
🟩 WHAT IS MARKET STRUCTURE?
There are many ways to conceptualise and code market structure — the prevailing trend derived from important price levels. All of them start with identifying highs and lows in price, then use breaks of those levels to assign a trend.
This indicator displays the following market structure features:
• Williams Fractals to derive high and low pivots.
• Zigzag lines, which connect highs and lows.
• Break of Structure (BOS) lines, which are formed from the highest high in an *uptrend* or the lowest low in a *downtrend*. A break of a BOS line signals trend continuation.
• Change of Character (CHoCH) lines, which are formed from the highest high in a *downtrend* or the lowest low in an *uptrend*. A break of a CHoCH line signals trend reversal.
• Market structure bias, which is derived from the break of a CHoCH line. If a CHoCH line is broken to the upside, the trend is bullish, and if to the downside, bearish.
(For more details of the market structure features of this indicator, see the FEATURES OF THIS INDICATOR section.)
This definition of market structure implies that:
• There can only ever be one single active BOS line.
• There can only ever be one single active CHoCH line.
• A break of a BOS line creates a new CHoCH line.
• A break of a CHoCH line creates a new bias, a new BOS line, and a new CHoCH line.
• Before we can create a BOS, we need to know the bias, for which we need the CHoCH, for which we need BOS... just one of the chicken-vs-egg difficulties of coding market structure.
To understand how this indicator differs from other market structure indicators, see the COMPARISON WITH OTHER INDICATORS section.
🟩 WHAT ARE ORDER BLOCKS?
Order blocks are candle patterns that appear at highs and lows. The theory is that these areas are where many orders were filled — too many for the order book, causing an imbalance in buyers and sellers. As such, these areas can form support or resistance levels when price returns to them.
This indicator displays the following features related to order blocks:
• Imbalances, also called Fair Value Gaps.
• Order blocks of two different types (Imbalance Block and Standard Order Blocks)
(For more details of the order block features of this indicator, see the FEATURES OF THIS INDICATOR section.)
There are different patterns that can define order blocks, but the common element is that price should move vigorously away from the area after the pattern forms.
To understand how this indicator differs from other order block indicators, see the COMPARISON WITH OTHER INDICATORS section.
🟩 FEATURES OF THIS INDICATOR
Pivots
Shows Williams high and low fractals, with a configurable lookback. The pivots are always calculated, since they are the building block of all other market structure features. The pivot shape display can be turned on or off, and the display customised.
Zigzag
Draws lines between the highs and lows. The lines can be shown or hidden, and the colour and thickness configured.
Break of Structure
BOS lines are always calculated, but can be shown or hidden. The appearance can be customised. BOS lines are drawn from the candle that has the high or low that defines their level. They always extend until they are broken or the bias changes. The BOS lines have an optional, configurable label. When a BOS line is broken, an optional, configurable label is drawn on that bar.
Change of Character
CHoCH lines can be shown, hidden, and customised. CHoCH lines always extend until they are broken or a new CHoCH line is formed. CHoCH lines have optional labels. A different, customisable label is drawn when a CHoCH line is broken.
Market structure bias
Market structure bias is derived from the break of a CHoCH line. If a CHoCH line is broken to the upside, the trend is bullish, and if to the downside, bearish. The background is shaded a configurable colour based on the trend.
Imbalances
Imbalances are drawn in configurable colours. When they are mitigated, you can choose to change the colour, delete them, or leave them.
Order blocks
Two types of imbalance order blocks are displayed: Standard Order Blocks and Imbalance Blocks. They can be shown or hidden, and customised, independently.
Each order block has a mitigation line with configurable colours and style. If price exceeds the mitigation line, the order block is mitigated and is considered inactive.
The order blocks, or their labels, can be deleted when the order block is mitigated. If not deleted, their colour is changed and they no longer extend with each new bar.
Order blocks on the chart timeframe can be shown conditionally within the context of the market structure: you can choose to show:
• Pro-trend order blocks (bearish order blocks that were created in bearish market structure and vice-versa).
• Counter-trend order blocks (bearish order blocks that were created in bullish market structure and vice-versa).
• All order blocks.
Higher timeframe
Imbalances and order blocks can be independently shown and customised on a single higher timeframe. The HTF functions of this indicator do not repaint because they use confirmed data.
You can choose a custom, fixed higher timeframe, or an "Auto" mode where the script automatically chooses the higher timeframe based on the chart timeframe.
Script information messages
An optional table shows information about the script, including configuration problems, such as if a custom HTF is not actually higher than the chart timeframe.
🟩 HOW TO USE
There are very many ways to use market structure and order blocks in trading and we recommend you study extensively, and if possible get a trusted mentor.
Here is a random example we found on the recent GBPUSD chart. In the screenshot below, the left chart is at 30m and the right is at 5m. We've toggled various settings to make the chart clearer for demonstration purposes.
1 — We get a CHoCH break on the higher timeframe. So our bias (if we are trying to trade with the trend) is bearish. Now we look for some other confluence.
2 — Price revisits the top of the range and mitigates an imbalance block. It wicks the CHoCH (resetting it) but does not break it on close. The bearish market structure is thus preserved. For these reasons, we're thinking about a short, and we switch to the 5m chart on the right to find an entry. We've chosen a Custom HTF of 30m to match the left chart and we can see the mitigated HTF order block, marked "30m IB". We can see when price moves definitively out of the order block area to the downside.
3 — A bearish order block is formed and very quickly price comes back into it. We could enter a short here with a stop above the closest relevant fractal.
4 — Another bearish order block forms and price retests it. Another entry. Two previous 5m bullish order blocks at the bottom of the chart act as support. We could potentially close our short here.
5 — Another test of the same block, which was not mitigated the first time. Another potential short entry. As it happens, price makes a massive run lower here, such that we could trail our stop down one ATR above every single high fractal (marked out using manual rays and a public ATR indicator) for a good R:R, but that's not the point.
This is a made-up, retrofitted example with a fairly generic methodology. It's just to show how some of the features of this indicator could be used in trading:
• Market structure can give a bias. It can also mark interesting levels.
• Using multiple timeframes, while more complex, can level up your trading experience.
• Price trading back into order blocks can be a good R:R entry.
Your actual way of trading, your playbook of setups, your knowledge of your strengths and weakness as a trader, is your own.
🟩 LIMITATIONS
This indicator is intended for use on Forex markets, although order blocks and market structure do form on any reasonably liquid asset.
The HTF uses confirmed data, so you need to wait until the HTF bar is closed before the order block can form. Therefore it does not repaint, in the sense that people worry about repainting, of changing data in the past. We use the latest recommended method of fetching HTF data .
The market structure uses live chart data, so structure and order blocks that are created by conditions on an open realtime bar can appear and disappear as the current bar close changes. This is quite normal .
The Williams pivots are by definition only confirmed after a defined number of bars, and like everyone else we plot them offset into the past.
Similarly, we offset order blocks into the past so that they start on the candle that has the high or low that defines the order block, not the candle that created them. For HTF order blocks, we calculate the number of chart bars back assuming a 24-hour market, which gives accurate offsets only on Forex and other symbols that trade close to 24 hours each day.
🟩 COMPARISON WITH OTHER INDICATORS
There are a great number of market structure and order block indicators already published on TradingView. Since there are only a certain number of highs and lows on the chart from which to produce structure and order blocks, they all look somewhat similar. However, this indicator, written entirely from scratch without reference to the code of any other indicators, is unique and original in two kinds of ways: in patterns and in features.
PRECISE PATTERNS
We believe that edge in trading can be found in, amongst other things, precision in analysis. You can't truly trust your backtests if your system is not repeatable, and your system is repeatable only if its definitions are precise.
We trade with this indicator, and our students trade with it as well. Why did we spend months creating a new indicator instead of using one of the many existing ones, most of which are free and open source?
Because they are not quite how we wanted.
The indicator was created from our proprietary structure rules, which are based on the generally accepted understanding of market structure, with some specific tweaks.
To prepare this description (after the indicator is finished), we searched for "Market Structure", "CHoCH", and "SMC" and list below all popular (with over 3K boosts; excluding invite-only) indicators that show market structure with CHoCH (sometimes called MSS). We configured the settings to most closely match how our indicator works, added both indicators to the same chart, and looked for relevant differences.
The purpose of this section is not to try to say that this indicator is better than any other, but just that it is different. This difference is important for us and our students.
Indicator #1
As you can see, the indicator interpreted the first part of the chart as a downtrend, whereas ours interpreted it as an uptrend. The structure is completely different, because our Williams Fractal lookback is 2, and the minimum "Swing Points" value for Indicator #1 is 10. Although this indicator is deservedly popular, it isn't what we can use for the way we trade.
Indicator #2
Setting the "Zigzag Length" to 2 results in wildly different market structure, as shown below. For many fractals, this indicator does not place the zigzag at the highest high or lowest low, as ours does consistently. It does not highlight the trend in any way. It gives many Market Structure Breaks in a short period. Although it's again wildly popular, it doesn't match our way of encoding market structure.
Indicator #3
Again, setting the "Pivot lb" and "Pivot rb" inputs to 2 gives much too sensitive market structure. This is because this indicator does not require, as we do, a counter-fractal to form after a fractal in order to confirm a BOS. We believe that this rule gives less noisy structure while also being responsive. Most indicators attempt to compensate for this by having a much larger lookback period. While this does of course give fewer pivots and less noise, this is simply a different logic and gives different results. Note also that although this indicator correctly defines the first section of the chart as an uptrend, it does not draw a CHoCH line. As discussed above, our definition of market structure means that there should always be one and only one active CHoCH line, and we draw this at the earliest sensible opportunity.
Indicator #4
Again, the lack of any extra pivot confirmation logic means that this indicator creates different structure with the same lookback period. Also note the lack of initial CHoCH.
Indicator #5
The lowest lookback is 3, and so this indicator too gives very different structure.
Indicator #6
Of course, using a lookback of 2 gives different structure with this indicator too. For variety, here we show a lookback of 5, which is the lowest setting that returns significantly less noisy structure. You can see that the main CHoCH at the top of the chart is similar but not at the same place. Increasing the lookback does not ever result in a CHoCH at the same place, because the logic is simply different. When the lookback increases above 10, no CHoCH lines are drawn at the top at all.
Indicator #7
This indicator uses the highest/lowest price for the last 10 bars (fixed), along with some other bar conditions. You can see the resulting structure is quite different. Among other differences, it does not create a BOS at the top of the chart, even in an uptrend, and it does not create an opposing CHoCH when the existing CHoCH is broken.
Indicator #8
With "Custom" market structure and a length of 2, BOS and CHoCH lines are drawn by this indicator but in incongruous places.
Conclusion
Although we only illustrate the top few alternatives, we did check many, many others.
These market structure indicators may produce useful output, but their structure differs significantly from ours. We didn't even need to get into specific examples because the general approaches are so different. It is up to the user to decide which indicator, and which interpretation of market structure, best suits their needs.
ORDER BLOCKS
Continuing, we illustrate differences with the most popular order block indicators, trying to get them to match our order blocks. Note that some of these are also in the previous list as market structure indicators.
Order blocks are always formed at swings when price moves away with force, so they will be sort of the same across all the very many existing order block indicators. We are looking for precision and differentiation, as we did with market structure.
Indicator #1
This indicator does not have ability to display mitigated order blocks, only active ones. The order blocks do not match at all.
Indicator #2
With a period of 2, this indicator marks many of the same order blocks as ours. It doesn't extend the blocks, and doesn't mark them when mitigated. The logic for choosing the order block candle is also clearly different.
Indicator #3
Even with very sensitive settings, this indicator did not create as many order blocks as ours and they are quite different.
Indicator #4
Again you can see the logic for choosing candles and creating blocks is simply different. This indicator has inadequate protection against empty arrays, which causes runtime errors on charts with not much history (not a problem for Forex charts in general, but noticeable on the testing chart).
Indicator #5
We were unable to get the order blocks to extend with this indicator, although it should be possible. Anyway the blocks are wildly different.
Indicator #6
Even with the most sensitive settings, this indicator showed only one order block on our test chart.
Indicator #7
This indicator incorporates complex price action concepts. Nevertheless, the order blocks are very different indeed.
Indicator #8
This indicator forms quite different blocks to ours. It has several interesting settings including a choice of using the candle body or wick.
Indicator #9
We were not able to configure this indicator to produce the same order blocks as ours.
Indicator #10
On very sensitive settings, this indicator matches many of our order blocks, but at the same time many are different.
Conclusion
None of the indicators tested here (nor the many others we looked at previously) use the same logic as ours. The differences are so obvious that we don't have to call out individual blocks and analyse how they differ.
Fundamentally, other indicators seem to use variable precision for pivots in their order block detection calculations. Our order blocks are pure candle patterns with two different rulesets for Standard Order Blocks and Imbalance Order Blocks, and this logic does not change.
Note that our order blocks do not always automatically extend to the swing high or low, nor allow the user to choose the limit of the block, but use unique rules.
In summary, our indicator differs from other order block indicators in terms of fundamental detection logic, candle placement, boundary definition, mitigation levels, and logical states (see below).
UNIQUE COMBINATION OF FEATURES
In comparison to all other indicators we looked at, our indicator:
• Uses order blocks with three states: active, mitigated, and partially mitigated. Our mitigation lines for order blocks are rules-based. If price touches the mitigation line, the order block is considered fully mitigated. If price goes inside the order block but does not hit the mitigation line, it is only partially mitigated. These three states are visually distinguished.
• Has the most extensive visual customisation options of all those we looked at. We believe that being able to customise how you see indicator outputs is very important for reducing mental load while analysing and trading.
• Has a unique feature that combines market structure and order blocks, where the user can choose to show pro-trend order blocks (bullish blocks that are formed in bullish structure and vice-versa) or counter-trend blocks (bullish blocks that are formed in bearish structure and vice-versa).
• Approximates an initial trend bias very quickly, so we can start creatng BOS, CHoCH, etc.
• Requires a counter pivot to confirm a BOS line. This seemingly small logical step actually creates very different structure, as we saw in the comparison section.
• Uses a sophisticated array-based sorting mechanism to preserve the selected number of imbalances, use the rest of the TradingView box allowance for order blocks, and delete excess order block objects (not just drawings) in reverse historical order.
• Hides order block drawings if they are a configurable distance away from price. Magically redraws them if price moves closer.
• Includes an equivalent to the system "Calculated bars" setting for the high timeframe, to avoid unnecessary processing and improve performance.
🟩 CODING CONSIDERATIONS
This indicator consists of all original code written by @SimpleCryptoLife for Timeframe_Titans.
AI was used for the following purposes:
• Autocomplete
• Checking that bullish and bearish logic is parallel in a given function
• Querying the names and locations of variables hundreds of lines away when we forgot what they're called, like an expensive search-and-replace
• Help with debugging (it usually makes up elaborate and wrong ideas though)
It was not used to replace the coder's expertise and creativity, or to "vibe-code" some black-box functionality we didn't understand. We can recommend that you use AI the same way.
═════════════════════════════════════════════════════════════
DXA SMARTThis advanced multi-feature technical analysis tool is designed to help traders identify potential trading opportunities across various market conditions. It combines multiple analytical approaches into a single, comprehensive solution.
Key Features:
Trend Analysis: Visualizes market trends with dynamic cloud-based indicators and adaptive sensitivity settings.
Volatility Measurement: Incorporates multiple volatility models to assess market conditions and adjust trading parameters automatically.
Signal Generation: Provides potential entry and exit points based on trend confirmation, momentum, and volume analysis.
Risk Management Tools: Includes configurable stop-loss and take-profit zones with visual alerts.
Support & Resistance: Automatically detects key price levels and consolidation zones.
Volume Insights: Displays volume-based confirmation for stronger trade setups.
Multi-Timeframe Dashboard: Summarizes trend strength, momentum, and volatility across different timeframes.
Customization Options:
Adjust sensitivity for different market conditions.
Enable/disable trend clouds, support/resistance levels, and signal filters.
Modify risk parameters (stop-loss, take-profit) based on volatility.
This tool is designed for traders who prefer a data-driven approach with visual clarity. It does not guarantee profits and should be used alongside proper risk management.