Advanced Price Action Market StructureAdvanced Price Action Market Structure Indicator
What It Does:
This indicator automatically identifies and tracks price action-based market structure using advanced Break of Structure (BoS) and Swing High/Low (SH/SL) detection. Unlike traditional indicators that rely on mathematical calculations, this tool analyzes pure price action to identify key swing highs, swing lows, and structural breaks that institutional traders use to navigate the markets.
The indicator plots dynamic swing points, automatically updates market structure as it evolves, and highlights critical structural breaks that often precede significant price moves. It also creates premium and discount zones to help traders identify optimal entry and exit areas within the current dealing range.
How It Works:
The indicator employs a sophisticated 4-step detection process that mirrors how professional traders analyze market structure:
For Bullish BoS (Break Above Previous Swing High):
- Detects when price closes above the previous swing high
- Looks backward to find the most recent bearish engulfing candle
- Identifies the lowest low from that engulfing candle forward to the break point (new swing low)
- Waits for the next bearish engulfing candle after the break to establish the new swing high
For Bearish BoS (Break Below Previous Swing Low):
- Detects when price closes below the previous swing low
- Looks backward to find the most recent bullish engulfing candle
- Identifies the highest high from that engulfing candle forward to the break point (new swing high)
- Waits for the next bullish engulfing candle after the break to establish the new swing low
Engulfing Pattern Definition:
Bullish Engulfing: A bullish candle (close > open) where the close breaks above the previous candle's high
Bearish Engulfing: A bearish candle (close < open) where the close breaks below the previous candle's low
Key Features & Customization:
⚙️ Initialization Control
Configurable lookback period (default: 20 bars) for establishing initial market structure
Helps adapt the indicator to different timeframes and market conditions. Once the initial market structure range is set, the indicator automatically switches to plotting market structure dynamically, based on pure price action.
🎨 Complete Visual Customization
Swing Points: Customizable colors, line styles, and label sizes for both highs and lows
BoS Visualization: Distinct styling for bullish (orange) and bearish (purple) breaks of structure
Line Extensions: Choose between right edge, current bar, or custom bar extensions
Premium/Discount Zones: Toggle on/off with customizable colors and transparency
📊 Premium/Discount Zones (Dealing Ranges)
- Automatically creates 50/50 zones between current swing high and low
- Helps identify when price is trading at a premium (upper 50%) or discount (lower 50%)
- Dynamic zone updates as new market structure is established
🔔 Smart Alerts
- Bullish/Bearish BoS detection alerts
- New swing high/low confirmation alerts
- Fully integrated with TradingView's alert system
📱 Multi-Timeframe Compatible
Works on all timeframes from 1-minute to monthly charts
Adapts the analysis to your preferred trading style
Inspiration for this indicator:
This indicator is based on the market structure methodology taught by Jonathan Jarvis in his educational content. Jonathan is the founder of Norfolk FX Trader and teaches advanced price action concepts including market balance/imbalance, supply and demand and market structure through his comprehensive trading education programs.
Learn More: For deeper understanding of these concepts, visit Jonathan's YouTube channel where he provides extensive free education on market structure analysis and price action trading strategies.
🔗 Jonathan Jarvis - Norfolk FX Trader YouTube Channel: youtube.com/@norfolkfxtrader
Perfect For
- Price action traders seeking to understand market structure
- Swing traders looking for high-probability entry/exit points
- Traders wanting to align with institutional market flow
- Anyone interested in learning professional market structure analysis
- Both beginners learning market structure and experienced traders refining their approach
Important Notes
- This indicator analyzes pure price action without lag or repainting
- Market structure analysis requires practice and understanding of price action principles
- Always combine with proper risk management and position sizing
- Consider multiple timeframe analysis for optimal results
Transform your trading by understanding how the market really moves – through the lens of institutional market structure.
Disclaimer: This indicator is for educational purposes. Trading involves risk and past performance does not guarantee future results. Always practice proper risk management.
Swinghighlow
Protected Pivots Points by RiotwolftradingProtected Pivots Points by Riotwolftrading
---
You have an advanced visual tool designed for traders who want to identify and manage key price levels with maximum precision.
This script detects protected pivots (significant highs and lows) and marks them with horizontal lines on the chart. These lines automatically extend for a fixed number of bars or until price invalidates the level with a closing break.
---
🚀 What makes this indicator special?
---
✅ Protected pivot detection:
The indicator identifies protected highs and lows using a fixed pivot strength
✅ Wick break detection (liquidity sweep visualization):
When a wick crosses the pivot level **without the candle closing beyond the level, the indicator automatically changes the line’s color and style.
👉 This immediately shows the trader that the level was tested but remains structurally valid.
✅ Highly customizable visuals:
* Choose whether to show color for protected highs, lows, or wick break levels.
* Set your own colors, line styles (solid, dashed, dotted), and line widths.
---
### 🌟 Why is wick break detection so valuable?
---
💡 Instant context on price action:
No need to manually check every candle to see if a level was barely tested. The indicator changes the line’s appearance automatically, so you can focus on decisions.
💡 Clear distinction between untouched levels and tested levels:
* A level with no wick test is pristine support/resistance.
* A level tested by a wick but not invalidated is still valid — but may have been swept for liquidity.
💡 Crucial for precision trading strategies:
This is particularly important for strategies that rely on:
✅ Liquidity sweeps / stop hunts.
✅ Reversals from tested zones.
✅ Smart Money Concepts (SMC).
✅ ICT concepts, breakers, Quasimodo, BOS/MSS.
The wick break visualization helps filter false breakouts and highlights areas where institutional players may have stepped in.
💡 Avoid premature exits or entries:**
The color/style change tells you a level was tested but not broken, so you avoid overreacting to wick activity.
---
### ⚡ Example use case**
Imagine a protected low line:
🔹 Price dips and its wick touches the level — the line changes color (e.g. violet solid line).
🔹 The level is still valid because the close didn’t break it.
🔹 This could signal a stop hunt or liquidity grab, with a possible reversal opportunity right at that level.
---
### 🧭 **Why most pivot indicators don’t offer this**
Most pivot indicators:
❌ Simply mark the level and remove it after a close break.
❌ Don’t distinguish between a wick test and a true break.
🌟 **This indicator does — giving traders an extra layer of market insight.**
---
### ⚠ **Disclaimer**
This indicator is a visual aid to help identify key levels and price reactions. It does **not** generate buy or sell signals and should be used alongside your trading analysis and strategy.
---
Swing High Low Detector by RV5📄 Description
The Swing High Low Detector is a visual indicator that automatically detects and displays swing highs and swing lows on the chart. Swings are determined based on configurable strength parameters (number of bars before and after a high/low), allowing users to fine-tune the sensitivity of the swing points.
🔹 Current swing levels are shown as solid (or user-defined) lines that dynamically extend until broken.
🔹 Past swing levels are preserved as dashed/dotted lines once broken, allowing traders to see previous support/resistance zones.
🔹 Customizable line colors, styles, and thickness for both current and past levels.
This indicator is useful for:
Identifying key market structure turning points
Building breakout strategies
Spotting trend reversals and swing zones
⚙️ How to Use
1. Add the indicator to any chart on any timeframe.
2. Adjust the Swing Strength inputs to change how sensitive the detector is:
A higher value will filter out smaller moves.
A lower value will capture more frequent swing points.
3. Customize the line styles for visual preference.
Choose different colors, line styles (solid/dashed/dotted), and thickness for:
Current Swing Highs (SH)
Past Swing Highs
Current Swing Lows (SL)
Past Swing Lows
4. Observe:
As new swing highs/lows are detected, the indicator draws a new current level.
Once price breaks that level, the line is archived as a past level and a new current swing is drawn.
✅ Features
Fully customizable styling for all lines
Real-time updates and automatic level tracking
Supports all chart types and instruments
👨💻 Credits
Script logic and implementation by RV5. This script was developed as a tool to improve price action visualization and trading structure clarity. Not affiliated with any financial institution. Use responsibly.
Swing High/Low LQ TrackerAn interactive tool to track liquidity events. Select start and end points on your chart—this indicator will automatically detect and plot the highest high and lowest low from that window, then extend those levels forward. If price sweeps either level, it marks the event with a clean "LQ" tag.
Perfect for traders who want to identify session-based liquidity, like killzone highs/lows, without manually drawing and deleting lines every day.
How It Works
-Select start and end time directly from settings
-Indicator calculates the swing high and low during that range
-Lines extend beyond the session until broken
-“LQ” markers appear when price sweeps the swing levels
It’s a must-have for ICT traders, smart money traders, or anyone who wants to track key liquidity levels without clutter.
Simple and effective tool for marking important ranges and tracking when liquidity is taken. No complex settings - just select your range and monitor the levels.
TR FVG & Swing High Low FinderTR FVG & Swing Level Finder
Overview:
The TR FVG & Swing Level Finder is a powerful Pine Script indicator designed for traders who want to identify Fair Value Gaps (FVGs) and Swing Highs/Lows on their charts. This indicator combines two essential technical analysis tools into one, helping traders spot potential areas of support, resistance, and trend reversals. FVGs are price gaps that often act as areas of interest for price to return to, while swing highs and lows help identify key turning points in the market. The indicator is highly customizable, allowing users to adjust colors, limits, and display options to suit their trading style.
Key Features:
1: Fair Value Gap (FVG) Detection:
- Identifies Bullish FVGs: Occur when the high of two candles ago is lower than the low of the current candle, indicating a potential upward price movement.
- Identifies Bearish FVGs: Occur when the low of two candles ago is higher than the high of the current candle, indicating a potential downward price movement.
- Displays FVGs as colored boxes on the chart, with customizable border and fill colors based on the timeframe.
- Labels each FVG box with the corresponding timeframe (e.g., "1m FVG", "1h FVG", "Daily FVG").
2: Swing High and Swing Low Detection:
- Detects Swing Highs: A 3-candle pattern where the middle candle's high is higher than the highs of the candles on either side.
- Detects Swing Lows: A 3-candle pattern where the middle candle's low is lower than the lows of the candles on either side.
- Draws a solid black line with 50% opacity at each swing high and low, extending 5 bars to the right for better visibility.
- Adds a small Swing High or Swing Low label at the right end of each line, colored according to user-defined settings.
3: Timeframe-Specific FVG Visualization:
- FVGs are color-coded based on the chart's timeframe, making it easy to distinguish between FVGs on different timeframes.
- Each timeframe has its own fill color for bullish and bearish FVGs, with adjustable transparency for better chart clarity.
- A dashed black line is drawn in the middle of each FVG box to highlight the midpoint of the gap.
4: Customizable Display Options:
- FVG Limit: Control the maximum number of FVGs displayed on the chart (from 1 to 20).
- Extend Options for FVG Boxes:
- "None": FVG boxes extend only 2 bars to the right.
- "Limited": FVG boxes extend a user-defined number of candles to the right (1 to 100 candles).
- "Default": FVG boxes extend 3 bars to the right of the current bar.
- Color Customization:
- Set border colors for bullish and bearish FVGs.
- Adjust fill colors for FVGs on different timeframes (1m, 5m, 15m, 30m, 1h, 4h, Daily, Weekly, Monthly).
- Customize the colors of swing high and swing low labels.
5: Performance Optimization:
- The indicator only plots FVGs and swings on the last confirmed bar (barstate.islastconfirmedhistory), ensuring efficient performance and reducing chart clutter.
- Limits the number of displayed FVGs and swings to the user-defined fvgLimit, keeping the chart clean and focused on the most recent price action.
6: Inputs and Customization:
- Number of FVGs to Show (fvgLimit): Set the maximum number of FVGs and swings to display (default: 3, range: 1 to 20).
- Bullish FVG Border Color (bullishColor): Choose the border color for bullish FVGs (default: green).
- Bearish FVG Border Color (bearishColor): Choose the border color for bearish FVGs (default: red).
- Swing High Color (swingHighColor): Set the color for swing high labels (default: blue).
- Swing Low Color (swingLowColor): Set the color for swing low labels (default: purple).
- Extend Options:
- Extend Option (extendOption): Choose how far FVG boxes extend to the right ("None", "Limited", or "Default"; default: "Default").
- Extend Candles (extendCandles): If "Limited" is selected, specify the number of candles to extend FVG boxes (default: 8, range: 1 to 100).
- Timeframe-Specific Fill Colors:
- Customize fill colors for bullish and bearish FVGs on various timeframes (1m, 5m, 15m, 30m, 1h, 4h, Daily, Weekly, Monthly).
- Each fill color has a default transparency (e.g., 93% for most timeframes, 90% for 30m), which can be adjusted as needed.
How to Use:
1: Add the Indicator to Your Chart:
- Open TradingView, go to the Pine Editor, and paste the script.
- Click "Add to Chart" to apply the indicator to your current chart.
2: Adjust Settings:
- Open the indicator settings by clicking the gear icon next to the indicator name on your chart.
- Modify the inputs to suit your preferences:
- Set the number of FVGs and swings to display.
- Choose your preferred colors for FVGs and swings.
- Adjust the extend options for FVG boxes.
3: Interpret the Indicator:
- FVG Boxes: Look for colored boxes on the chart, which represent Fair Value Gaps. Bullish FVGs (green borders by default) suggest potential buying opportunities, while bearish FVGs (red borders by default) suggest potential selling opportunities. The label inside each box indicates the timeframe of the FVG.
- Swing Highs and Lows: Identify key turning points with solid black lines (50% opacity) at swing highs and lows. Each line extends 5 bars to the right, with an "SH" (Swing High) or "SL" (Swing Low) label at the end. Swing highs can act as resistance levels, while swing lows can act as support levels.
4: Combine with Your Strategy:
- Use FVGs to identify areas where price might return to fill the gap, often acting as support or resistance.
- Use swing highs and lows to spot potential trend reversals or to set stop-loss and take-profit levels.
- Combine the indicator with other tools (e.g., trendlines, moving averages) for a more comprehensive trading strategy.
Notes:
- The indicator works on all timeframes, but the appearance of FVGs and swings will vary depending on the chart's timeframe.
- For best results, use the indicator on a clean chart to avoid visual clutter, especially if you increase the fvgLimit.
- The swing high/low lines are drawn with 50% opacity to ensure they don’t overpower other chart elements, but they are still clearly visible.
Author’s Note:
This script was developed to help traders identify key price levels with ease. I hope it adds value to your trading! If you have any feedback or suggestions for improvement, feel free to leave a comment. Happy trading!
WLI Swing High/Low advnc indicatorfor Class members
else
label.set_xy(lowMsg, bar_index, close)
label.set_text(lowMsg, "making New Low")
label.set_color(lowMsg, newSwingLowColor)
label.set_textcolor(lowMsg, color.white)
else
if not na(lowMsg)
label.delete(lowMsg)
lowMsg := na
Smallest Swing [Truth Indie]This indicator is designed to test the smallest swing draw using the swing capture concept of the Pivot Points High Low indicator, setting the length to 1 for all periods, and combining it with price action that I think makes sense.
Example of a valid swing high.
Example of a valid swing low.
Liquidity PoolsThis indicator displays liquidity based on swing highs and swing lows.
Since large liquidity rests above swing highs and below swing lows, the indicator can show swing highs and lows as well so that you can easily find where liquidity stays.
To determine swing high/low, left bars and right bars can be specified on inputs.
How to use this indicator?
You can use this indicator to;
observe how liquidity is used as the market moves.
watch which liquidity will be taken before the market moves and which liquidity will be targeted as the market progresses.
--------------------------------------
リクイディティ(Liquidity)を表示するインジケーターです。
リクイディティとはマネー、注文を指します。
わかりやすくするために、敢えて損切り注文と書いてみましょう。
大きなリクイディティ(損切り注文)はスイングハイの直上(買いのストップオーダー)、スイングローの直下(売りのストップオーダー)に控えています。インジケーターはスイングハイ・ローも同時に表示することができるため、リクイディティ(損切り注文)を容易に特定することが可能です。
使い方
・リクイディティ(損切り注文)が相場が動く中でどのように使われているのかを観察
・マーケットが動く前にどのリクイディ(損切り注文)を取り、トレンドが進展するにつれどのリクイディティ(損切り注文)をターゲットとするかを観察
Simple Market StructureThis indicator is meant for education and experimental purposes only.
Many Market Structure Script out there isn't open-sourced and some could be complicated to understand to modify the code. Hence, I published this code to make life easier for beginner programmer like me to modify the code to fit their custom indicator.
As I am not a expert or pro in coding it might not be as accurate as other reputable author.
Any experts or pros that is willing to contribute this code in the comment section below would be appreciated, I will modify and update the script accordingly as part of my learning journey.
It is useful to a certain extend to detect Market Structure using Swing High/Low in all market condition.
Here are some points that I am looking to improve / fix:
To fix certain horizontal lines that does not paint up to the point where it breaks through.
To add in labels when a market structure is broken.
Allow alerts to be sent when market structure is broken (Probably be done in the last few updates after knowing it is stable and as accurate as possible)
Any suggested improvement, please do let me know in the comment section below and I will try my best to implement it into the script.
PA Swings [TTA]Hello traders!
This script helps identify swing high levels of resistance and swing low levels of support via price action.
The indicator is designed to help identify support and resistance by measuring retracements. When the retracement has reached the threshold, the indicator identifies the high or low with a horizontal, solid line.
This line will continue until it is violated. Once it is violated it will adjust to a dashed line and continue until it is violated again (retested).
Therefore, a solid line resembles an unviolated swing level; a dashed line resembles a violated swing level that has yet to be retested.
Ideally, this script will filter some movements by identifying impulses in the market. Knowing that price is in a trending move rather than bouncing around in a range can help traders in their analysis. In range bound conditions the indicator will show small impulses, sometimes trapped by a support and/or resistance line. In trending markets there will be separation between the support and resistance lines.
Retests are also identified by the indicator.
Retests of swing highs and lows may induce precise, repeatable price moves - something a trader might find advantageous. A log is included to help identify potential price levels based on historical actions when an impulse or a retest occurs.
Consequently, this may help traders identify take-profit targets and avoid stop losses that are too close to the entry point.
The indicator has a color identity panel to help you get familiar with the colored lines, line types, and what they mean. The color panel is concealable. Additional customization options are available, such as toggling the chart labels. These labels distinguish impulses up and down, retests, and the distance price has traveled since breaking or creating a support or resistance level.
This can be toggled off. A High-Volume Swings only option is available for those that wish to filter out low volume movements (such as extended market hours).
You also have the option of hiding far away lines and can define what is “far away” for them % wise. It is defaulted to 15% which may need to be adjusted on lower timeframes.
Inactive lines can be shown or they can be removed in the settings as well. While this indicator can find some great levels of support or resistance it is important to remember that, should you find this script helpful, it is a tool in your toolbox!! (:
Hope you enjoy and thank you for checking this out!
Swing PointsEnglish:
The indicator shows the fractals where stop-losses may be located and can be used to trade from their taking.
You can adjust the length of the fractal (the number of bars with which it is surrounded on both sides, to confirm the validity).
You can also display lines from fractal points for clarity.
To keep the chart clean, you can enable deletion of already taken fractals.
Example of use with deleted fractals and without lines:
Русский:
Индикатор показывает фракталы где могут находиться стоп-лоссы и его можно использовать для торговли от их снятия.
Можно настраивать длину фрактала (количество баров, которыми он окружен с обеих сторон, для подтверждения валидности).
Так же можно выводить линии от фрактальных точек для наглядности.
Для сохранения чистоты графика можно включить удаление уже снятых фракталов.
Пример использования с удалением снятых фракталов и без линий:
Support and Resistance Multiperiod (Zig Zag Based)Support and Resistance Multiperiod (Zig Zag Based)
What is the indicator?
• The indicator is a multi period (up to 5 lengths) Support and Resistance indicator calculated based on Zig Zag.
Who can use?
Scalpers to Long term investors
What timeframe to use?
• Any timeframe
What are the lines?
• Green lines are Support levels.
• Orange lines are Resistance levels.
How to use?
• Buy Low and Sell High.
• Brighter zones means strong Support or Resistance.
• Weaker zones appear lighter.
• Brighter zones are formed by overlapping of lines from multiple levels of support or resistance.
Indicator Menu
• The indicator can input 5 different Lengths.
• The default settings uses 13, 21, 52, 100 & 200.
• Every option are customizable.
VWAP High/Low ChannelIn short, the VWAP High/Low Channel is based on VWAP "newsession" on swing high/low, with a basis of the two.
The VWAP High/Low channel seems to act like Bollinger bands or Donchain Channels when squeezing for a breakout, while also acting as a pivot after a breakout.
Draw swing Lines based on SMA// Draw swing Lines based on SMA
// Each swing line must cross SMA
// ---------------------------------------------------
// Input:
// sma(Number): Default 50;
// showSMA: Default 'true'; if showSMA ='false', do not show SMA line;
// Deviation(%): Default "1"; To draw a new swing line, Price must cross SMA more than (n% of SMA)
// In weekly chart, better use "2" or more to avoid small ZigZag;
// ---------------------------------------------------
// This swing Lines could be used:
// 1. Verify reversal pattern, such as, double tops;
// 2. Help to draw accurate trend line, avoid noice; Set showSMA=false, to see trend line clearly;
// 3. Use two of this study together with different SMA, Set showSMA=false,
// Such as, SMA20 and SMA200, to see small waves in bigger wave
// ---------------------------------------------------
// In this sample Chart -- AMD 1h (Feb to Jun 2020)
// Added this study with SMA(50),
// Hide price chart and SMA line, to show the Swing line only,
// I drew some sample trend lines, and identified one Double top;
Fork Handles by @treypeng
Candle based indicator that shows swing highs and lows (pivots).
It draws an up or down arrow for simple three candle 'single' swings.
For stronger five candle 'double' swings, it colours the candle. Good for highlighting stronger reversals.
Both of these stylings can be toggled on/off individually.
Default colours
Swing HIGH on an UP candle: bright green
Swing HIGH on an DOWN candle: bright red
Swing LOW on an UP candle: blue
Swing LOW on an DOWN candle: brown
Double swings are grey or white.
Regular candles are just kept to your own default colours as specified in the chart settings.
👏 for anyone who gets the 'fork handles' joke reference.