OPEN-SOURCE SCRIPT
Swing Guide

Swing Guide
Swing Guide is a clean and beginner-friendly market structure tool designed to help traders read swings, trend shifts and pullback zones directly on the chart.
The script connects important swing highs and swing lows with a simple visual line, then labels each structure point in a clear and intuitive way.
STRUCTURE LABELS
High+ = Higher High
Price made a new high above the previous swing high.
Low+ = Higher Low
A pullback held above the previous swing low.
High- = Lower High
A bounce failed below the previous swing high.
Low- = Lower Low
Price broke below the previous swing low.
These labels help traders quickly understand whether the market is building bullish structure, bearish structure, a possible shift, or a temporary pullback.
WHAT THE INDICATOR SHOWS
• Swing line connecting key market structure points
• Compact High+ / Low+ / High- / Low- structure labels
• Current market condition in the dashboard
• Bullish or bearish structure context
• Last important structure point
• Preferred directional bias
• Current structure-based risk state
DASHBOARD
The dashboard summarizes the current market structure in simple words.
Now
Shows the current market condition, such as Uptrend, Downtrend, Healthy Pullback, Weak Bounce or Possible Reversal.
Structure
Summarizes the broader structure context: Bullish, Bearish, Bullish Shift or Bearish Shift.
Last Point
Shows the latest structure point: New High, Higher Low, Lower High or New Low.
Bias
Gives a simple context reading: Long Preferred, Short Preferred or Wait.
Risk
Highlights the current structure risk, such as Trend Extension, Pullback Zone, Weak Recovery or Breakdown.
MAIN SETTINGS
Swing Sensitivity
Controls how many swing points are detected.
Lower values show more swings and more detail.
Higher values filter out smaller moves and keep the chart cleaner.
Repaint Forming Leg
When enabled, the latest swing leg updates live as price develops. This gives the classic real-time swing guide look, but the last leg can move until the structure is confirmed.
When disabled, the script draws only confirmed swing legs. This reduces movement after printing, but the latest swing may appear with a delay.
Structure Label Transparency
Adjusts how soft or visible the High+ / Low+ / High- / Low- labels appear on the chart.
HOW TO USE
Swing Guide is designed as a visual map of market structure.
It can help traders understand where the market is making higher highs, higher lows, lower highs or lower lows.
A bullish structure is usually built with High+ and Low+ points.
A bearish structure is usually built with High- and Low- points.
A possible structure shift may appear when the market starts breaking the previous sequence of highs and lows.
The dashboard is intended to simplify this reading and provide a quick summary of the current structure.
Swing Guide is a clean and beginner-friendly market structure tool designed to help traders read swings, trend shifts and pullback zones directly on the chart.
The script connects important swing highs and swing lows with a simple visual line, then labels each structure point in a clear and intuitive way.
STRUCTURE LABELS
High+ = Higher High
Price made a new high above the previous swing high.
Low+ = Higher Low
A pullback held above the previous swing low.
High- = Lower High
A bounce failed below the previous swing high.
Low- = Lower Low
Price broke below the previous swing low.
These labels help traders quickly understand whether the market is building bullish structure, bearish structure, a possible shift, or a temporary pullback.
WHAT THE INDICATOR SHOWS
• Swing line connecting key market structure points
• Compact High+ / Low+ / High- / Low- structure labels
• Current market condition in the dashboard
• Bullish or bearish structure context
• Last important structure point
• Preferred directional bias
• Current structure-based risk state
DASHBOARD
The dashboard summarizes the current market structure in simple words.
Now
Shows the current market condition, such as Uptrend, Downtrend, Healthy Pullback, Weak Bounce or Possible Reversal.
Structure
Summarizes the broader structure context: Bullish, Bearish, Bullish Shift or Bearish Shift.
Last Point
Shows the latest structure point: New High, Higher Low, Lower High or New Low.
Bias
Gives a simple context reading: Long Preferred, Short Preferred or Wait.
Risk
Highlights the current structure risk, such as Trend Extension, Pullback Zone, Weak Recovery or Breakdown.
MAIN SETTINGS
Swing Sensitivity
Controls how many swing points are detected.
Lower values show more swings and more detail.
Higher values filter out smaller moves and keep the chart cleaner.
Repaint Forming Leg
When enabled, the latest swing leg updates live as price develops. This gives the classic real-time swing guide look, but the last leg can move until the structure is confirmed.
When disabled, the script draws only confirmed swing legs. This reduces movement after printing, but the latest swing may appear with a delay.
Structure Label Transparency
Adjusts how soft or visible the High+ / Low+ / High- / Low- labels appear on the chart.
HOW TO USE
Swing Guide is designed as a visual map of market structure.
It can help traders understand where the market is making higher highs, higher lows, lower highs or lower lows.
A bullish structure is usually built with High+ and Low+ points.
A bearish structure is usually built with High- and Low- points.
A possible structure shift may appear when the market starts breaking the previous sequence of highs and lows.
The dashboard is intended to simplify this reading and provide a quick summary of the current structure.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
Trading tools by MarketStructureLab. Professional indicators, algorithms & market structure logic. Get access: marketstructurelab.com
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
Trading tools by MarketStructureLab. Professional indicators, algorithms & market structure logic. Get access: marketstructurelab.com
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.