SMC Trend Reversal by Pooja🌟 SMC Trend Reversal by Pooja — CHoCH + BOS + RSI Confirmation
🔥 Smart Money Concepts • Trend Reversal Detection • Multi-Asset Optimized
The SMC Trend Reversal by Pooja is a powerful market-structure indicator designed for traders who follow Smart Money Concepts (SMC) and want to identify trend reversals, BOS, and CHoCH with high clarity.
It blends pivot-based structure breaks, RSI confirmation, and an optional session filter, giving traders a clean and reliable view of market shifts across Crypto, Forex, Indices, and Equity Derivatives.
✨ 🔰 Why SMC Matters in Crypto & Forex?
Both Crypto and Forex markets:
Trade 24/7 / 5 days with high volatility
React strongly to liquidity zones, market structure shifts, and smart money footprints
Often reverse sharply after liquidity grabs
Follow clean CHoCH → BOS → Trend progression sequences
This is why CHoCH (Change of Character) and BOS (Break of Structure) are crucial tools used by professional SMC traders to catch early trend reversals.
This indicator automates that process for you.
No clutter. No repaints. No noise.
Just pure SMC structure.
🚀 Key Features
🟣 CHoCH Detection (Change of Character)
Detects when the market shifts direction
A CHoCH appears when the trend flips from down → up or up → down
Highlights the earliest sign of a trend reversal
Draws a clean CHoCH line across structure
Works beautifully in volatile markets like Crypto & Forex
🔵 BOS Detection (Break of Structure)
Identifies structural continuation in the same direction
Helps confirm the new trend after CHoCH
Clear BOS lines to visualize progression of market flow
Ideal for trend-following and breakout traders
🧠 RSI-Based Confirmation (Optional)
To avoid fake CHoCH signals, the indicator uses RSI filtering:
RSI > Upper Level → Show “B” Buy Label
RSI < Lower Level → Show “S” Sell Label
This improves accuracy especially in:
Fast crypto markets (BTC, ETH, SOL etc.)
Liquidity-driven assets (Forex, Indices)
⏱️ Session Block (Asia/Kolkata Compatible)
Avoid signals in the first few minutes of market open or in volatile windows.
Block signals in a selected time range
Perfect for Indian market opening volatility (09:00–09:25)
🎯 Clean, Minimal, Easy-to-Read Visuals
✔ Horizontal structural lines
✔ Color-coded CHoCH and BOS
✔ Buy (B) / Sell (S) labels only when meaningful
✔ No unnecessary clutter
✔ Suitable for both beginners and advanced SMC traders
📢 Built-In Alerts
Receive notifications for:
🔔 Bullish CHoCH
🔔 Bearish CHoCH
🔔 Bullish BOS
🔔 Bearish BOS
Perfect for mobile, desktop, and webhook automation.
📈 How It Helps Your Trading
✔ Catch early trend reversals with confidence
✔ Avoid false signals with RSI filtering
✔ Trade like Smart Money (Institutional concepts)
✔ Works on all timeframes — scalping to swing
✔ Specially powerful on Crypto & Forex due to their structure-driven nature
✔ Cleaner charts → Better decisions → Higher probability trades
🧩 Who Should Use This Indicator?
✔ SMC / ICT style traders
✔ Breakout and trend-following traders
✔ Reversal traders
✔ Crypto & Forex scalpers
✔ Option buyers looking for early trend shifts
✔ Intraday NIFTY / BANKNIFTY traders
⚠️ Disclaimer
This indicator is for educational purposes and market analysis only.
It does not guarantee profits. Always practice risk management and test your settings before using it live.
在腳本中搜尋"BOS"
Golden BOS Strategy - ChecklistA clean, mechanical on-chart checklist designed for multi-timeframe traders using the Golden BOS / Institutional Retracement Framework.
This tool helps you stay disciplined by tracking each requirement of the strategy in real time:
Included Criteria
4H Bias: Bullish or bearish macro structure
1H Structure: Push/pull phase + golden zone retracement
5M Entry Model:
Break of Structure (BOS)
5M golden zone retracement
POI validation (OB/FVG/Breaker)
Final micro BOS or rejection confirmation
Risk Filters:
Session validity (London / NY)
Red news avoidance
Stop-loss placement check
Liquidity-based target confirmation
Purpose
This overlay ensures every trade meets strict criteria before execution, removing emotion and improvisation. Ideal for backtesting, forward testing, and staying consistent during live market conditions.
Golden BOS Strategy — Description
The Golden BOS Strategy is a structured, multi-timeframe trading system designed to capture high-probability continuation moves during London and New York sessions. The strategy combines institutional concepts with Fibonacci-based retracements to identify discounted entry zones aligned with higher-timeframe direction.
Using the 4H timeframe, traders establish the daily macro bias and identify the dominant trend. The 1H chart is then used to confirm the current phase of market structure, distinguishing between impulsive “push” moves and corrective “pullback” phases. A Fibonacci retracement is applied to the most recent 1H impulse leg to define a high-value discount or premium zone where entries become valid.
Execution takes place on the 5-minute chart. Once price reaches the 1H golden zone (61.8–78.6%), a Break of Structure (BOS) is required to confirm a shift in short-term momentum. A second Fibonacci retracement is then drawn on the 5M impulse leg that caused the BOS, and price must retrace back into the 5M golden zone. Traders refine their entry using a confluence point of interest (POI) such as a Fair Value Gap (FVG), Order Block, Breaker Block, or Inverse FVG, ideally accompanied by a final micro BOS or rejection candle.
Risk management is strict and rule-driven. Stop loss is placed beyond the extreme wick of the POI, while take-profit targets are set at logical liquidity pools in the direction of the higher-timeframe trend. The strategy avoids red-folder news and only allows trades during active sessions to ensure optimal volatility and reliability.
The Golden BOS Strategy is designed to impose discipline, reduce discretionary errors, and give traders a repeatable, mechanical framework for navigating trending markets with precision.
Liquidity Sweep + BOS Retest System — Prop Firm Edition🟦 Liquidity Sweep + BOS Retest System — Prop Firm Edition
A High-Probability Smart Money Strategy Built for NQ, ES, and Funding Accounts
🚀 Overview
The Liquidity Sweep + BOS Retest System (Prop Firm Edition) is a precision-engineered SMC strategy built specifically for prop firm traders. It mirrors institutional liquidity behavior and combines it with strict account-safe entry rules to help traders pass and maintain funding accounts with consistency.
Unlike typical indicators, this system waits for three confirmations — liquidity sweep, displacement, and a clean retest — before executing any trade. Every component is optimized for low drawdown, high R:R, and prop-firm-approved risk management.
Whether you’re trading Apex, TakeProfitTrader, FFF, or OneUp Trader, this system gives you a powerful mechanical framework that keeps you within rules while identifying the market’s highest-probability reversal zones.
🔥 Key Features
1. Liquidity Sweep Detection (Stop Hunt Logic)
Automatically identifies when price clears a previous swing high/low with a sweep confirmation candle.
✔ Filters noise
✔ Eliminates early entries
✔ Locks onto true liquidity grabs
2. Automatic Break of Structure (BOS) Confirmation
Price must show true displacement by breaking structure opposite the sweep direction.
✔ Confirms momentum shift
✔ Removes fake reversals
✔ Ensures institutional intent
3. Precision Retest Entry Model
The strategy enters only when price retests the BOS level at premium/discount pricing.
✔ Zero chasing
✔ Extremely tight stop loss placement
✔ Prop-firm-friendly controlled risk
4. Built-In Risk & Trade Management
SL set at swept liquidity
TP set by user-defined R:R multiplier
Optional session filter (NY Open by default)
One trade at a time (no pyramiding)
Automatically resets logic after each trade
This prevents overtrading — the #1 cause of evaluation and account breaches.
5. Designed for Prop Firm Futures Trading
This script is optimized for:
Trailing/static drawdown accounts
Micro contract precision
Funding evaluations
Low-risk, high-probability setups
Structured, rule-based execution
It reduces randomness and emotional trading by automating the highest-quality SMC sequence.
🎯 The Trading Model Behind the System
Step 1 — Liquidity Sweep
Price must take out a recent high/low and close back inside structure.
This confirms stop-hunting behavior and marks the beginning of a potential reversal.
Step 2 — BOS (Break of Structure)
Price must break the opposite side swing with a displacement candle. This validates a directional shift.
Step 3 — Retest Entry
The system waits for price to retrace into the BOS level and signal continuation.
This creates optimal R:R entry with minimal drawdown.
📈 Best Markets
NQ (NASDAQ Futures) – Highly recommended
ES, YM, RTY
Gold (XAUUSD)
FX majors
Crypto (with high volatility)
Works best on 1m, 2m, 5m, or 15m depending on your trading style.
🧠 Why Traders Love This System
✔ No signals until all confirmations align
✔ Reduces overtrading and emotional decisions
✔ Follows market structure instead of random indicators
✔ Perfect for maintaining long-term funded accounts
✔ Built around institutional-grade concepts
✔ Makes your trading consistent, calm, and rules-based
⚙️ Recommended Settings
Session: 06:30–08:00 MST (NY Open)
R:R: 1.5R – 3R
Contracts: Start with 1–2 micros
Markets: NQ for best structure & volume
📦 What’s Included
Complete strategy logic
All plots, labels, sweep markers & BOS alerts
BOS retest entry automation
Session filtering
Stop loss & take profit system
Full SMC logic pipeline
🏁 Summary
The Liquidity Sweep + BOS Retest System is a complete, prop-firm-ready, structure-based strategy that automates one of the cleanest and most reliable SMC entry models. It is designed to keep you safe, consistent, and rule-compliant while capturing premium institutional setups.
If you want to trade with confidence, discipline, and prop-firm precision — this system is for you.
Good Luck -BG
EBL - Enigma BOS Logic Select Higher Time FrameThe "EBL – Enigma BOS Logic" is a unique multi-timeframe trading indicator designed for traders who rely on structured price action and key level retests to find high-probability trade opportunities. This indicator automates the identification of significant price levels on a higher timeframe, plots them across all lower timeframes, and provides actionable signals (buy/sell) when price retests those levels. It is ideal for traders who focus on lower timeframes for precise entries while using higher timeframe structure for trend confirmation.
How the Indicator Works
Key Level Detection:
The indicator allows the user to select a key level timeframe (e.g., 1H, 4H, Daily, Weekly). It then identifies Break of Structure (BOS) levels on the selected timeframe.
When a bullish-to-bearish or bearish-to-bullish reversal is detected on the selected timeframe, the corresponding high or low of the reversal candle is stored as a key level.
These key levels are plotted as horizontal lines on all lower timeframes, helping the trader visualize critical support and resistance zones across multiple timeframes.
Retest Confirmation:
Once a key level is established, the indicator continuously monitors the price action on lower timeframes.
If the price touches or crosses a key level, it is considered a retest, and an alert is generated.
The indicator plots a retest marker (customizable as a circle or diamond) at the exact price level where the retest occurred, providing a clear visual cue for the trader.
Trading Signals:
When a retest is detected, a table is displayed on the chart with the following information:
The trading pair.
The signal direction (Buy/Sell).
The price at which the retest occurred.
This table gives traders instant insight into actionable opportunities, making it easier to focus on live market conditions without missing critical retests.
Key Features
Multi-Timeframe Analysis: The indicator focuses on a higher timeframe selected by the user, ensuring that only the most relevant key levels are plotted for lower timeframe trading.
Dynamic Retest Signals: It dynamically identifies when price retests a key level and provides both visual markers and real-time alerts.
Customizable Retest Markers: Users can customize the retest marker's shape (circle/diamond) and color to suit their preferences.
Signal Table: A built-in table displays clear buy or sell signals when retests occur, ensuring that traders have all the necessary information at a glance.
Alerts: The indicator supports real-time alerts for retests, helping traders stay informed even when they are not actively monitoring the chart.
How to Use the Indicator
Select a Key Level Timeframe:
In the input settings, choose a higher timeframe (e.g., 4H or Daily) to define key levels.
The indicator will calculate Break of Structure (BOS) levels on the selected timeframe and plot them as horizontal lines across all lower timeframes.
Monitor Lower Timeframes for Retests:
Switch to a lower timeframe (e.g., 15m, 5m) to wait for price to approach the key levels plotted by the indicator.
When a retest occurs, observe the signal table and retest marker for actionable trade signals.
Act on Buy/Sell Signals:
Use the information provided by the signal table to make trading decisions.
For a buy signal, wait for bullish confirmation (e.g., price holding above the retested level).
For a sell signal, wait for bearish confirmation (e.g., price holding below the retested level).
Trading Concepts and Underlying Logic
The indicator is based on the Break of Structure (BOS) concept, a core principle in price action trading. BOS levels represent points where the market shifts its trend direction, making them critical zones for potential reversals or continuations.
By focusing on higher timeframe BOS levels, the indicator helps traders align their lower timeframe entries with the overall market trend.
The concept of retests is used to confirm the validity of a key level. A retest occurs when the price returns to a previously identified BOS level, offering a high-probability entry point.
Use Cases
Scalping: Traders who prefer lower timeframe scalping can use the indicator to align their trades with higher timeframe key levels, increasing the likelihood of successful trades.
Swing Trading: Swing traders can use the indicator to identify key reversal zones on higher timeframes and plan their trades accordingly.
Intraday Trading: Intraday traders can benefit from the real-time alerts and signals generated by the indicator, ensuring they never miss critical retests during active trading hours.
Conclusion
The "EBL – Enigma BOS Logic" is a powerful tool for traders who want to enhance their price action trading by focusing on key levels and retests across multiple timeframes. By automating the identification of BOS levels and providing clear retest signals, it helps traders make more informed and confident trading decisions. Whether you are a scalper, intraday trader, or swing trader, this indicator offers valuable insights to improve your trading performance.
FTR Rules BoS/ChoCh MarkupThis indicator marks Break of Structure (BoS) and Change of Character (ChoCh) in the price structure on your charts. It runs on any timeframe. This indicator is useful for determining if you are seeing a trend change in the market or if you are only seeing a pullback with the market continuing in the direction of the trend. The indicator will look for price to break the previous BoS line or ChoCh line to mark a new BoS. When a BoS line is broken, it will then look for the lowest or highest pullback (depending on which way the market is trending) between to 2 BoS lines to mark the ChoCh line. When the ChoCh line is broken, it will mark that line as BoS and the previous BoS line will become ChoCh.
What makes this indicator unique from other BoS and ChoCh indicators is that it follows specific rules used by the FTR Trading group. The main difference is that the ChoCh line isn't changed to a BoS line from only a candle wick break. You will need a candle body break to move your BoS line to ChoCh. If a candle wick breaks your ChoCh line, you simply extend the ChoCh line to the new high or low of the wick. There are smaller differences that are proprietary to the FTR strategy.
Thunderbird BoSThe Thunderbird BoS script is meticulously crafted for those who thrive on higher timeframes (daily, weekly, monthly) and aim to capture the significant moves and trends in the market.
What does the Thunderbird BoS script do?
Breakouts are pivotal moments in investing, and the Thunderbird BoS script is your ally in identifying them. Here's how:
Breakout Detection: The script springs into action when there's a breakout of a specific Donchian setting, producing a signal.
Visual Aids: It doesn't just stop at signals. The script visually displays entry, stop, and compound levels right on your chart. This feature is especially handy when you hover over a bar, as it allows you to see levels from past signals, no matter how far back in time.
Trend Confirmation: The script is adept at producing entry signals in both confirmed bull and bear trends.
Filtering the Noise: Using the Donchian logic, the script confirms end-of-day entry points in a long-term trend and efficiently filters out fake breakouts and entry points in a sideways market.
How does BoS work?
The BoS is a product of meticulous calculations:
Breakout Signal: Upon detecting a breakout signal, the entry-level is determined. For a bullish breakout, it's calculated a specific % above the high, and for a bearish breakout, a specific % below.
Stop Calculation: Using the Average True Range (ATR) over a number of specific days, the stop loss is set below the entry for long positions and above for short positions.
Compound Levels: The compound level is also determined using an ATR formula above the entry for long positions and below for short ones.
What's the ideal timeframe for this script?
The Thunderbird BoS script is tailor-made for the daily timeframe. This ensures that breakout signals are derived from a comprehensive view of the market's movements.
What sets the Thunderbird BoS script apart?
The uniqueness of the Thunderbird BoS script lies in its:
Historical Insight: The ability to view levels from past signals by simply hovering over a bar. This feature aids in analysing entry levels from any point in the past and is displayed seamlessly in the data window.
Precision for Daily Timeframe: The script is specifically coded for the daily timeframe to:
Pinpoint the onset of potential long-term trends.
Confirm entry points at the end of the trading day, effectively filtering out intraday distractions.
Minimise the chances of fake breakouts in a trend.
Continuously generate entry points as the trend evolves, facilitating compounding.
Efficiently filter out breakouts in a sideways market.
In essence, the Thunderbird BoS script is an investor's tool for focusing on the quality of potential positions when investing in long-term market trends. It's not just about identifying trends; it's about making informed decisions based on them.
Market Structure Report Library [TradingFinder]🔵 Introduction
Market Structure is one of the most fundamental concepts in Price Action and Smart Money theory. In simple terms, it represents how price moves between highs and lows and reveals which phase of the market cycle we are currently in uptrend, downtrend, or transition.
Each structure in the market is formed by a combination of Breaks of Structure (BoS) and Changes of Character (CHoCH) :
BoS occurs when the market breaks a previous high or low, confirming the continuation of the current trend.
CHoCH occurs when price breaks in the opposite direction for the first time, signaling a potential trend reversal.
Since price movement is inherently fractal, market structure can be analyzed on two distinct levels :
Major / External Structure: represents the dominant macro trend.
Minor / Internal Structure: represents corrective or smaller-scale movements within the larger trend.
🔵 Library Purpose
The “Market Structure Report Library” is designed to automatically detect the current market structure type in real time.
Without drawing or displaying any visuals, it analyzes raw price data and returns a series of logical and textual outputs (Return Values) that describe the current structural state of the market.
It provides the following information :
Trend Type :
External Trend (Major): Up Trend, Down Trend, No Trend
Internal Trend (Minor): Up Trend, Down Trend, No Trend
Structure Type :
BoS : Confirms trend continuation
CHoCH : Indicates a potential trend reversal
Consecutive BoS Counter : Measures trend strength on both Major and Minor levels.
Candle Type : Returns the current candle’s condition(Bullish, Bearish, Doji)
This library is specifically designed for use in Smart Money–based screeners, indicators, and algorithmic strategies.
It can analyze multiple symbols and timeframes simultaneously and return the exact structure type (BoS or CHoCH) and trend direction for each.
🔵 Function Outputs
The function MS() processes the price data and returns seven key outputs,
each representing a distinct structural state of the market. These values can be used in indicators, strategies, or multi-symbol screeners.
🟣 ExternalTrend
Type : string
Description : Represents the direction of the Major (External) market structure.
Possible values :
Up Trend
Down Trend
No Trend
This is determined based on the behavior of Major Pivots (swing highs/lows).
🟣 InternalTrend
Type : string
Description : Represents the direction of the Minor (Internal) market structure.
Possible values :
Up Trend
Down Trend
No Trend
🟣 M_State
Type : string
Description : Specifies the type of the latest Major Structure event.
Possible values :
BoS
CHoCH
🟣 m_State
Type : string
Description : Specifies the type of the latest Minor Structure event.
Possible values :
BoS
CHoCH
🟣 MBoS_Counter
Type : integer
Description : Counts the number of consecutive structural breaks (BoS) in the Major structure.
Useful for evaluating trend strength :
Increasing count: indicates trend continuation.
Reset to zero: typically occurs after a CHoCH.
🟣 mBoS_Counter
Type : integer
Description : Counts the number of consecutive structural breaks in the Minor structure.
Helps analyze the micro structure of the market on lower timeframes.
Higher value : strong internal trend.
Reset : indicates a minor pullback or reversal.
🟣 Candle_Type
Type : string
Description : Represents the type of the current candle.
Possible values :
Bullish
Bearish
Doji
import TFlab/Market_Structure_Report_Library_TradingFinder/1 as MSS
PP = input.int (5 , 'Market Structure Pivot Period' , group = 'Symbol 1' )
= MSS.MS(PP)
XAUUSD 1m SMC Zones (BOS + Flexible TP Modes + Trailing Runner)//@version=6
strategy("XAUUSD 1m SMC Zones (BOS + Flexible TP Modes + Trailing Runner)",
overlay = true,
initial_capital = 10000,
pyramiding = 10,
process_orders_on_close = true)
//━━━━━━━━━━━━━━━━━━━
// 1. INPUTS
//━━━━━━━━━━━━━━━━━━━
// TP / SL
tp1Pips = input.int(10, "TP1 (pips)", minval = 1)
fixedSLpips = input.int(50, "Fixed SL (pips)", minval = 5)
runnerRR = input.float(3.0, "Runner RR (TP2 = SL * RR)", step = 0.1, minval = 1.0)
// Daily risk
maxDailyLossPct = input.float(5.0, "Max daily loss % (stop trading)", step = 0.5)
maxDailyProfitPct = input.float(20.0, "Max daily profit % (stop trading)", step = 1.0)
// HTF S/R (1H)
htfTF = input.string("60", "HTF timeframe (minutes) for S/R block")
// Profit strategy (Option C)
profitStrategy = input.string("Minimal Risk | Full BE after TP1", "Profit Strategy", options = )
// Runner stop mode (your option 4)
runnerStopMode = input.string( "BE only", "Runner Stop Mode", options = )
// ATR trail settings (only used if ATR mode selected)
atrTrailLen = input.int(14, "ATR Length (trail)", minval = 1)
atrTrailMult = input.float(1.0, "ATR Multiplier (trail)", step = 0.1, minval = 0.1)
// Pip size (for XAUUSD: 1 pip = 0.10 if tick = 0.01)
pipSize = syminfo.mintick * 10.0
tp1Points = tp1Pips * pipSize
slPoints = fixedSLpips * pipSize
baseQty = input.float (1.0, "Base order size" , step = 0.01, minval = 0.01)
//━━━━━━━━━━━━━━━━━━━
// 2. DAILY RISK MANAGEMENT
//━━━━━━━━━━━━━━━━━━━
isNewDay = ta.change(time("D")) != 0
var float dayStartEquity = na
var bool dailyStopped = false
equityNow = strategy.initial_capital + strategy.netprofit
if isNewDay or na(dayStartEquity)
dayStartEquity := equityNow
dailyStopped := false
dailyPnL = equityNow - dayStartEquity
dailyPnLPct = dayStartEquity != 0 ? (dailyPnL / dayStartEquity) * 100.0 : 0.0
if not dailyStopped
if dailyPnLPct <= -maxDailyLossPct
dailyStopped := true
if dailyPnLPct >= maxDailyProfitPct
dailyStopped := true
canTradeToday = not dailyStopped
//━━━━━━━━━━━━━━━━━━━
// 3. 1H S/R ZONES (for direction block)
//━━━━━━━━━━━━━━━━━━━
htOpen = request.security(syminfo.tickerid, htfTF, open)
htHigh = request.security(syminfo.tickerid, htfTF, high)
htLow = request.security(syminfo.tickerid, htfTF, low)
htClose = request.security(syminfo.tickerid, htfTF, close)
// Engulf logic on HTF
htBullPrev = htClose > htOpen
htBearPrev = htClose < htOpen
htBearEngulf = htClose < htOpen and htBullPrev and htOpen >= htClose and htClose <= htOpen
htBullEngulf = htClose > htOpen and htBearPrev and htOpen <= htClose and htClose >= htOpen
// Liquidity sweep on HTF previous candle
htSweepHigh = htHigh > ta.highest(htHigh, 5)
htSweepLow = htLow < ta.lowest(htLow, 5)
// Store last HTF zones
var float htResHigh = na
var float htResLow = na
var float htSupHigh = na
var float htSupLow = na
if htBearEngulf and htSweepHigh
htResHigh := htHigh
htResLow := htLow
if htBullEngulf and htSweepLow
htSupHigh := htHigh
htSupLow := htLow
// Are we inside HTF zones?
inHtfRes = not na(htResHigh) and close <= htResHigh and close >= htResLow
inHtfSup = not na(htSupLow) and close >= htSupLow and close <= htSupHigh
// Block direction against HTF zones
longBlockedByZone = inHtfRes // no buys in HTF resistance
shortBlockedByZone = inHtfSup // no sells in HTF support
//━━━━━━━━━━━━━━━━━━━
// 4. 1m LOCAL ZONES (LIQUIDITY SWEEP + ENGULF + QUALITY SCORE)
//━━━━━━━━━━━━━━━━━━━
// 1m engulf patterns
bullPrev1 = close > open
bearPrev1 = close < open
bearEngulfNow = close < open and bullPrev1 and open >= close and close <= open
bullEngulfNow = close > open and bearPrev1 and open <= close and close >= open
// Liquidity sweep by previous candle on 1m
sweepHighPrev = high > ta.highest(high, 5)
sweepLowPrev = low < ta.lowest(low, 5)
// Local zone storage (one active support + one active resistance)
// Quality score: 1 = engulf only, 2 = engulf + sweep (we only trade ≥2)
var float supLow = na
var float supHigh = na
var int supQ = 0
var bool supUsed = false
var float resLow = na
var float resHigh = na
var int resQ = 0
var bool resUsed = false
// New resistance zone: previous bullish candle -> bear engulf
if bearEngulfNow
resLow := low
resHigh := high
resQ := sweepHighPrev ? 2 : 1
resUsed := false
// New support zone: previous bearish candle -> bull engulf
if bullEngulfNow
supLow := low
supHigh := high
supQ := sweepLowPrev ? 2 : 1
supUsed := false
// Raw "inside zone" detection
inSupRaw = not na(supLow) and close >= supLow and close <= supHigh
inResRaw = not na(resHigh) and close <= resHigh and close >= resLow
// QUALITY FILTER: only trade zones with quality ≥ 2 (engulf + sweep)
highQualitySup = supQ >= 2
highQualityRes = resQ >= 2
inSupZone = inSupRaw and highQualitySup and not supUsed
inResZone = inResRaw and highQualityRes and not resUsed
// Plot zones
plot(supLow, "Sup Low", color = color.new(color.lime, 60), style = plot.style_linebr)
plot(supHigh, "Sup High", color = color.new(color.lime, 60), style = plot.style_linebr)
plot(resLow, "Res Low", color = color.new(color.red, 60), style = plot.style_linebr)
plot(resHigh, "Res High", color = color.new(color.red, 60), style = plot.style_linebr)
//━━━━━━━━━━━━━━━━━━━
// 5. MODERATE BOS (3-BAR FRACTAL STRUCTURE)
//━━━━━━━━━━━━━━━━━━━
// 3-bar swing highs/lows
swHigh = high > high and high > high
swLow = low < low and low < low
var float lastSwingHigh = na
var float lastSwingLow = na
if swHigh
lastSwingHigh := high
if swLow
lastSwingLow := low
// BOS conditions
bosUp = not na(lastSwingHigh) and close > lastSwingHigh
bosDown = not na(lastSwingLow) and close < lastSwingLow
// Zone “arming” and BOS validation
var bool supArmed = false
var bool resArmed = false
var bool supBosOK = false
var bool resBosOK = false
// Arm zones when first touched
if inSupZone
supArmed := true
if inResZone
resArmed := true
// BOS after arming → zone becomes valid for entries
if supArmed and bosUp
supBosOK := true
if resArmed and bosDown
resBosOK := true
// Reset BOS flags when new zones are created
if bullEngulfNow
supArmed := false
supBosOK := false
if bearEngulfNow
resArmed := false
resBosOK := false
//━━━━━━━━━━━━━━━━━━━
// 6. ENTRY CONDITIONS (ZONE + BOS + RISK STATE)
//━━━━━━━━━━━━━━━━━━━
flatOrShort = strategy.position_size <= 0
flatOrLong = strategy.position_size >= 0
longSignal = canTradeToday and not longBlockedByZone and inSupZone and supBosOK and flatOrShort
shortSignal = canTradeToday and not shortBlockedByZone and inResZone and resBosOK and flatOrLong
//━━━━━━━━━━━━━━━━━━━
// 7. ORDER LOGIC – TWO PROFIT STRATEGIES
//━━━━━━━━━━━━━━━━━━━
// Common metrics
atrTrail = ta.atr(atrTrailLen)
// MINIMAL MODE: single trade, BE after TP1, optional trailing
// HYBRID MODE: two trades (Scalp @ TP1, Runner @ TP2)
// Persistent tracking
var float longEntry = na
var float longTP1 = na
var float longTP2 = na
var float longSL = na
var bool longBE = false
var float longRunEntry = na
var float longRunTP1 = na
var float longRunTP2 = na
var float longRunSL = na
var bool longRunBE = false
var float shortEntry = na
var float shortTP1 = na
var float shortTP2 = na
var float shortSL = na
var bool shortBE = false
var float shortRunEntry = na
var float shortRunTP1 = na
var float shortRunTP2 = na
var float shortRunSL = na
var bool shortRunBE = false
isMinimal = profitStrategy == "Minimal Risk | Full BE after TP1"
isHybrid = profitStrategy == "Hybrid | Scalp TP + Runner TP"
//━━━━━━━━━━ LONG ENTRIES ━━━━━━━━━━
if longSignal
if isMinimal
longEntry := close
longSL := longEntry - slPoints
longTP1 := longEntry + tp1Points
longTP2 := longEntry + slPoints * runnerRR
longBE := false
strategy.entry("Long", strategy.long)
supUsed := true
supArmed := false
supBosOK := false
else if isHybrid
longRunEntry := close
longRunSL := longRunEntry - slPoints
longRunTP1 := longRunEntry + tp1Points
longRunTP2 := longRunEntry + slPoints * runnerRR
longRunBE := false
// Two separate entries, each 50% of baseQty (for backtest)
strategy.entry("LongScalp", strategy.long, qty = baseQty * 0.5)
strategy.entry("LongRun", strategy.long, qty = baseQty * 0.5)
supUsed := true
supArmed := false
supBosOK := false
//━━━━━━━━━━ SHORT ENTRIES ━━━━━━━━━━
if shortSignal
if isMinimal
shortEntry := close
shortSL := shortEntry + slPoints
shortTP1 := shortEntry - tp1Points
shortTP2 := shortEntry - slPoints * runnerRR
shortBE := false
strategy.entry("Short", strategy.short)
resUsed := true
resArmed := false
resBosOK := false
else if isHybrid
shortRunEntry := close
shortRunSL := shortRunEntry + slPoints
shortRunTP1 := shortRunEntry - tp1Points
shortRunTP2 := shortRunEntry - slPoints * runnerRR
shortRunBE := false
strategy.entry("ShortScalp", strategy.short, qty = baseQty * 50)
strategy.entry("ShortRun", strategy.short, qty = baseQty * 50)
resUsed := true
resArmed := false
resBosOK := false
//━━━━━━━━━━━━━━━━━━━
// 8. EXIT LOGIC – MINIMAL MODE
//━━━━━━━━━━━━━━━━━━━
// LONG – Minimal Risk: 1 trade, BE after TP1, runner to TP2
if isMinimal and strategy.position_size > 0 and not na(longEntry)
// Move to BE once TP1 is touched
if not longBE and high >= longTP1
longBE := true
// Base SL: BE or initial SL
float dynLongSL = longBE ? longEntry : longSL
// Optional trailing after BE
if longBE
if runnerStopMode == "Structure trail" and not na(lastSwingLow) and lastSwingLow > longEntry
dynLongSL := math.max(dynLongSL, lastSwingLow)
if runnerStopMode == "ATR trail"
trailSL = close - atrTrailMult * atrTrail
dynLongSL := math.max(dynLongSL, trailSL)
strategy.exit("Long Exit", "Long", stop = dynLongSL, limit = longTP2)
// SHORT – Minimal Risk: 1 trade, BE after TP1, runner to TP2
if isMinimal and strategy.position_size < 0 and not na(shortEntry)
if not shortBE and low <= shortTP1
shortBE := true
float dynShortSL = shortBE ? shortEntry : shortSL
if shortBE
if runnerStopMode == "Structure trail" and not na(lastSwingHigh) and lastSwingHigh < shortEntry
dynShortSL := math.min(dynShortSL, lastSwingHigh)
if runnerStopMode == "ATR trail"
trailSLs = close + atrTrailMult * atrTrail
dynShortSL := math.min(dynShortSL, trailSLs)
strategy.exit("Short Exit", "Short", stop = dynShortSL, limit = shortTP2)
//━━━━━━━━━━━━━━━━━━━
// 9. EXIT LOGIC – HYBRID MODE
//━━━━━━━━━━━━━━━━━━━
// LONG – Hybrid: Scalp + Runner
if isHybrid
// Scalp leg: full TP at TP1
if strategy.opentrades > 0
strategy.exit("LScalp TP", "LongScalp", stop = longRunSL, limit = longRunTP1)
// Runner leg
if strategy.position_size > 0 and not na(longRunEntry)
if not longRunBE and high >= longRunTP1
longRunBE := true
float dynLongRunSL = longRunBE ? longRunEntry : longRunSL
if longRunBE
if runnerStopMode == "Structure trail" and not na(lastSwingLow) and lastSwingLow > longRunEntry
dynLongRunSL := math.max(dynLongRunSL, lastSwingLow)
if runnerStopMode == "ATR trail"
trailRunSL = close - atrTrailMult * atrTrail
dynLongRunSL := math.max(dynLongRunSL, trailRunSL)
strategy.exit("LRun TP", "LongRun", stop = dynLongRunSL, limit = longRunTP2)
// SHORT – Hybrid: Scalp + Runner
if isHybrid
if strategy.opentrades > 0
strategy.exit("SScalp TP", "ShortScalp", stop = shortRunSL, limit = shortRunTP1)
if strategy.position_size < 0 and not na(shortRunEntry)
if not shortRunBE and low <= shortRunTP1
shortRunBE := true
float dynShortRunSL = shortRunBE ? shortRunEntry : shortRunSL
if shortRunBE
if runnerStopMode == "Structure trail" and not na(lastSwingHigh) and lastSwingHigh < shortRunEntry
dynShortRunSL := math.min(dynShortRunSL, lastSwingHigh)
if runnerStopMode == "ATR trail"
trailRunSLs = close + atrTrailMult * atrTrail
dynShortRunSL := math.min(dynShortRunSL, trailRunSLs)
strategy.exit("SRun TP", "ShortRun", stop = dynShortRunSL, limit = shortRunTP2)
//━━━━━━━━━━━━━━━━━━━
// 10. RESET STATE WHEN FLAT
//━━━━━━━━━━━━━━━━━━━
if strategy.position_size == 0
longEntry := na
shortEntry := na
longBE := false
shortBE := false
longRunEntry := na
shortRunEntry := na
longRunBE := false
shortRunBE := false
//━━━━━━━━━━━━━━━━━━━
// 11. VISUAL ENTRY MARKERS
//━━━━━━━━━━━━━━━━━━━
plotshape(longSignal, title = "Long Signal", style = shape.triangleup,
location = location.belowbar, color = color.lime, size = size.tiny, text = "L")
plotshape(shortSignal, title = "Short Signal", style = shape.triangledown,
location = location.abovebar, color = color.red, size = size.tiny, text = "S")
Minor Break of Structure (Minor BoS)This indicator extracts and isolates the Minor Break of Structure (BoS) logic from a full SMC framework and presents it as a clean, lightweight tool for structure-based price action traders.
Unlike traditional BOS indicators that rely on swing calculations with heavy filtering, this script uses original SMC-style minor structure logic to detect meaningful shifts in internal order flow.
A Minor BoS appears when price breaks above a minor swing high (bullish) or below a minor swing low (bearish), confirming a short-term continuation in trend direction.
Features:
Bullish Minor BoS detection
Bearish Minor BoS detection
Automatic line plotting with extend-right
Clear “Minor BoS” label with tiny footprint
Customizable line styles and colors
Lightweight & optimized for fast execution
Zero repainting on BoS confirmations
This tool is ideal for traders who want a simple, clean, and reliable structure-based signal without the noise of major structure, order blocks, liquidity sweeps, or external SMC modules.
Scalper Pro Pattern Recognition & Price Action📘 Scalper Pro Pattern Recognition & Price Action
Overview
Scalper Pro is a dynamic multi-layer trend recognition and price action strategy that integrates Supertrend, Smart Money Concepts (SMC), and volatility-based risk control.
It adapts to market volatility in real time to enhance entry precision and optimize risk.
⚠️ This script is for educational and research purposes only.
Past performance does not guarantee future results.
🎯 Strategy Objectives
Detect structural market shifts (BOS / CHoCH) automatically.
Identify Order Blocks (OB), Fair Value Gaps (FVG), and key liquidity zones.
Plot dynamic Take-Profit (TP) and Stop-Loss (SL) levels based on ATR.
Avoid low-volatility (sideways) conditions using ADX filtering.
Combine trend-following signals with structural confirmation.
✨ Key Features
Supertrend Entry Signals — Generates precise buy/sell markers based on price crossovers with the Supertrend line.
Order Block Detection — Automatically plots both Internal and Swing Order Blocks for smart money insights.
Fair Value Gap Visualization — Highlights inefficiency zones in bullish or bearish structures.
Market Structure Labels — Marks Break of Structure (BOS) and Change of Character (CHoCH) points for clear trend shifts.
Dynamic Risk Levels — Automatically generates TP/SL lines and price labels using ATR-based distance.
📊 Trading Rules
Long Entry:
• Price crosses above the Supertrend (ta.crossover(close, supertrend))
• ADX above sideways threshold (trend condition confirmed)
• Optional confirmation from a bullish BOS or CHoCH
Short Entry:
• Price crosses below the Supertrend (ta.crossunder(close, supertrend))
• ADX above threshold
• Optional confirmation from a bearish BOS or CHoCH
Exit (or Reverse):
• Opposite Supertrend crossover
• Price hits TP/SL lines
• Trend shift confirmed by internal BOS/CHoCH
💰 Risk Management Parameters
Stop Loss & Take Profit based on ATR × risk multiplier
ATR Length: 14 (default)
Risk %: 3% per trade
Sideways Filter: ADX < 15 → no trade zone
TP1–TP3 = Entry ± (ATR × 1~3)
⚙️ Indicator Settings
Supertrend Module:
ATR Length: 10
Factor: nsensitivity × 7
ADX Module:
ADX Length: 15
Sideways Threshold: 15
EMA Set:
EMA (5, 9, 13, 34, 50) × Volatility Factor (3)
SMA Filter:
SMA(8) & SMA(9) for short-term trend confirmation
Smart Money Concepts Module:
Displays BOS/CHoCH, Order Blocks, FVGs, Equal Highs/Lows, and Premium/Discount zones
🔧 Improvements & Uniqueness
Integrates Supertrend momentum with Smart Money Concepts (SMC) structural analysis.
Dual detection layers: Internal (micro) and Swing (macro) structures.
ATR-driven auto labeling for entry, stop, and profit targets.
Premium/Discount and Equilibrium zones visualized on the chart.
Built-in ADX filter to skip low-trend market conditions.
✅ Summary
Scalper Pro Pattern Recognition & Price Action merges classical trend-following with modern market structure analytics.
It combines momentum detection, volatility control, and smart money mapping into one cohesive framework.
Unified trend, structure, and risk visualization.
Auto-marked BOS/CHoCH, OB, FVG, and liquidity zones.
Usable for scalping, intraday, or swing trading setups.
⚠️ This strategy is based on historical data and designed for educational use only.
Always apply sound risk management and forward testing before live trading.
Market Structure (BOS on Break, HH/HL/LH/LL)Market Structure (BOS on Break, HH/HL/LH/LL) is a clean and reactive market structure tool designed for traders who want clear visual feedback of trend direction and structure changes.
It automatically identifies:
Higher Highs (HH)
Higher Lows (HL)
Lower Highs (LH)
Lower Lows (LL)
Breaks of Structure (BOS) when price breaches previous swing levels.
✳️ Features
Automatic Structure Detection: Detects swing highs/lows based on your left/right pivot settings.
Break of Structure Alerts: Instantly updates bias when price breaks a previous swing level (no delay).
Real-Time BOS Response: Structure flips as soon as price takes out the previous high or low.
Color-Coded Bars: Bars can auto-paint white for bullish and black for bearish conditions.
Optional Fading Dots: Visual fading dots track trend duration and strength for quick bias reading.
Customizable Pivots: Choose how many bars to use for left/right swing confirmation.
Alerts: Fully configured for HH, HL, LH, LL, BOS Up, and BOS Down events.
⚙️ Inputs
Left Pivot Bars / Right Pivot Bars: Control how many candles define a valid swing point.
Paint Bars by Trend: Toggle bar coloring to match bullish or bearish bias.
Show Fading Trend Dots: Add fading dots that shrink and fade as a trend matures.
🔔 Alerts
Break of Structure Up / Down
Higher High (HH) confirmed
Higher Low (HL) confirmed
Lower High (LH) confirmed
Lower Low (LL) confirmed
🎯 Use Case
Perfect for:
Price action traders
Smart money concept (SMC) practitioners
Trend structure analysts
Scalpers and swing traders looking for quick structure flips.
🧠 Notes
Works on any timeframe and any instrument.
BOS signals update immediately when price breaks structure (no lag).
For additional BOS markers, you can uncomment the last few lines in the script to show arrows when structure breaks.
Order Block with BoSHere’s a professional and concise description you can use for publishing your **TradingView script** titled **"Order Block with BoS"**:
---
### 📌 **Description for TradingView Publication:**
**"Order Block with Break of Structure (BoS)"** is a powerful price action-based indicator designed to identify potential reversal zones and momentum shifts using **Order Block** detection combined with **Break of Structure (BoS)** confirmation.
### 🔍 **Key Features:**
* **Order Block Detection**: Highlights bullish and bearish order blocks using precise candle structure logic.
* **Break of Structure (BoS)**: Confirms structural breaks above swing highs or below swing lows to validate potential trend continuation or reversal.
* **Dynamic ATR Filter**: Uses a 14-period ATR with dynamic thresholds to confirm significant moves, filtering out weak breakouts.
* **Visual Aids**:
* Color-coded **boxes** to mark detected Order Blocks.
* **Arrows** at BoS confirmation points when ATR confirms strong momentum.
* Optional **dashed BoS lines** to show where price broke structure.
### ⚙️ **Customizable Inputs**:
* `Swing Length`: Defines the sensitivity of swing high/low detection.
* `Show Break of Structure`: Toggle on/off BoS confirmation lines.
* `Candle Lookback`: Number of historical candles to consider.
This indicator is ideal for traders who incorporate **smart money concepts**, **market structure analysis**, or **institutional order flow** strategies.
---
Would you like me to help write the **strategy** version of this or translate the description into another language for international audiences?
Dynamic Market Structure DetectorTitle: Dynamic Market Structure Detector – Real-Time BoS & ChoCH Signals
Short Description:
Identify market structure dynamically with real-time Break of Structure (BoS) and Change of Character (ChoCH) signals. Highlight untested support and resistance zones to improve trading precision.
Full Description:
The Dynamic Market Structure Detector is a powerful TradingView indicator designed for traders who want to automate the identification of key market structure levels. This indicator simplifies market analysis by dynamically tracking swing highs and lows, marking critical Break of Structure (BoS) and Change of Character (ChoCH) points, and highlighting untested support and resistance zones.
Key Features:
1. Real-Time Signals:
• Marks Break of Structure (BoS) and Change of Character (ChoCH) points as they occur.
• Automatically updates as the market evolves.
2. Dynamic Swing Highs and Lows:
• Tracks swing highs and lows based on user-defined sensitivity (Swing Length).
• Adjust swing length to tailor signals for intraday or swing trading.
3. Untested Zones Highlight:
• Visualize untested support and resistance zones dynamically.
• Opacity settings allow customization for better chart readability.
4. Customizable Inputs:
• Swing Length:
Adjust the sensitivity of BoS and ChoCH signals.
• Smaller Swing Length values (e.g., 3–5): Capture short-term market movements, ideal for intraday trading.
• Larger Swing Length values (e.g., 10–20): Focus on significant market structure changes for swing or positional trading.
Experiment with these values to find the best fit for your trading style.
• Untested Zone Opacity:
Control the visibility of highlighted support and resistance zones.
• Lower opacity values (e.g., 10–50): Make the zones more prominent, helpful for darker chart backgrounds.
• Higher opacity values (e.g., 70–90): Provide subtle highlights, better suited for lighter chart setups.
• A value of 100% renders the zones completely transparent (invisible).
Use this setting to customize the visual appearance of your chart while still retaining key zone information.
5. User-Friendly Visualization:
• Color-coded labels for BoS (Green) and ChoCH (Red).
• Highlight zones for untested areas using customizable colors (Support: Blue, Resistance: Orange).
Why Use This Indicator?
• Simplifies market structure analysis by automating key calculations.
• Helps traders identify potential trend reversals and continuation points.
• Reduces the need for manual charting, saving time and effort.
• Provides visual clarity on untested zones for better decision-making.
Recommended Usage:
• Intraday Traders: Use smaller Swing Length values (e.g., 3–5) to capture short-term market movements.
• Swing Traders: Opt for higher Swing Length values (e.g., 10–20) to focus on larger market structure changes.
• Monitor untested zones for potential price reactions, enhancing your trade entries and exits.
Notes :
This indicator is best suited for traders who prefer price action trading and market structure analysis. While the indicator provides reliable insights, it is recommended to use it in conjunction with other analysis tools for a holistic trading approach.
Credits:
Developed by TradeTech Analysis to empower traders with automated tools for smarter trading decisions.
Price Action Trader [BackQuant]Price Action Trader
Introduction
Price Action Trader is an all-in-one, chart-side workflow for reading trend, timing impulses, and mapping high-probability zones the way discretionary traders actually trade. It blends an ensemble trend engine with clean price-action building blocks—Market Structure (BOS/MSB), Fair Value Gaps, Order Blocks, and Volumetric Support/Resistance—so you can form a bias, find confluence, and execute with context.
What is it
A modular “price-action stack” that:
Paints trend bias and impulse shifts on the chart (optional candle coloring).
Auto-annotates internal & swing structure (BOS / MSB).
Finds FVGs on your chosen timeframe and draws them cleanly.
Detects Order Blocks (with optional FVG confirmation).
Builds volumetric S/R levels that adapt to liquidity.
Emits alerts for key events (new levels, touches, breaks, OB creation/touch).
Everything is configurable—keep it minimal (trend + a few zones) or run the full toolkit.
What’s it used for
Bias first, trade second: establish direction/conviction, then execute where structure, gaps, blocks, and volume agree.
Timing: impulse flips and level touches provide actionable triggers.
Risk placement: OB edges, FVG midlines, and volumetric bands give logical stop/target references.
Review & journaling: optional session shading and labeled structures make post-trade notes simple.
Composite Trend Model
A lightweight signal line (default: 30-period) that turns green when the composite regime is bullish and red when bearish. Under the hood, multiple cues (adaptive momentum, de-noised oscillation, volatility-aware filters) are blended into a single directional score; when thresholds flip, the line recolors and optional Long/Short dots appear.
How to use
Treat the line as your bias rail : favor longs while green, shorts while red.
Flat/rapid flips = stand down or reduce size.
Prefer clean charts? Keep only the line and (optionally) trend-painted candles.
Inputs to know
Show Trend Signal Line / Width.
Paint Candles by Trend.
Long/Bearish color controls.
Impulse Model
Highlights short-term pressure shifts with optional impulse candle coloring and ▲/▼ markers. Great for entries in the prevailing trend and for early warnings when impulses fire against bias.
How to use
Up-bias: look for the next impulse-up near structure/FVG/OB or volumetric support.
Down-bias: mirror the logic.
Frequent counter-impulses → expect chop or regime change.
Inputs to know
Show Impulse Signals.
Paint Impulse Candles.
Market Structure
Automatic Internal (tight lookback) and Swing (wider lookback) structure with BOS and MSB (CHoCH) labels. You decide what to show—All, BOS only, MSB only—independently for internal vs swing.
How to use
Use Swing labels for the primary map; Internal for entry refinement.
After a bullish MSB , seek the first HL back into support/FVG/OB.
After a bearish BOS , favor LH fades into resistance/FVG/OB.
Inputs to know
Swing Lookback / Internal Lookback.
Swing/Internal Structure: All | BOS | MSB | None .
Separate bull/bear color controls for both layers.
Fair Value Gaps
Detects bullish/bearish FVGs on the current or higher TF, draws boxes, and can extend them forward. Midlines provide quick visual targeting.
How to use
In-trend fills: in an up-bias, tags of bullish FVGs often offer high-quality continuation entries, especially with structure/OB confluence.
Failed fills: rejections at the midline can signal emerging strength/weakness.
Inputs to know
Show FVG / Show Last N / Extend.
Timeframe (blank = chart TF; set higher TF for macro FVGs).
Bull/Bear colors (tune opacity to taste).
Volumetric Support and Resistance
Builds adaptive S/R from price interaction + relative volume over a rolling lookback. Levels store touch counts; you can show volume stats on labels or inside boxes. Transparency and border thickness can scale with volume so stronger levels are visually louder. Broken levels can auto-remove.
How to use
Use as confluence with structure, OBs, and FVGs. A long at volumetric support + Bull OB + FVG midline is qualitatively different from a naked level.
If a level breaks on strong volume, stop fading—flip expectations or wait for a clean retest.
Inputs to know
Detection Sensitivity / Volume Multiplier.
Analysis Period / Max Levels / Min Distance (%).
Remove Broken / Extend Right / Show Volume Info / Text Inside.
Support/Resistance colors (+ high-vol variants).
Alerts
New Support/Resistance Level Created.
Level Touch.
Level Break.
Order Blocks
Detects bullish/bearish OBs using configurable fractals (3- or 5-bar) with a break confirmation (by Close or High/Low). Optional FVG proximity filter, right-extension, and auto-delete when filled.
How to use
Bullish bias: stalk pullbacks into fresh Bull OBs aligned with a bullish FVG or volumetric support.
If price fills an opposing OB and fails to continue, reassess bias—context may be shifting.
Inputs to know
Fractal Type & Break Method (Close / HL).
Filter with FVG + Max FVG Distance.
Extend Blocks / Delete When Filled / Show Labels.
Alerts
New Order Block Created.
Order Block Touch.
Final Notes
Suggested workflow
Start with Composite Trend (bias).
Mark Swing structure in that direction.
Wait for an Impulse in-direction near an OB / FVG / Volumetric level.
Risk = nearest opposite level or OB edge; targets = FVG midlines / next S/R.
Timeframes & assets
Defaults suit liquid intraday and 1–4H swing.
Slower markets → lengthen lookbacks, lower sensitivity.
Very noisy crypto → keep trend visible, trim drawings (e.g., MSB only, last 3–5 FVGs, 8–12 volume levels).
Keep it readable
Turn off modules you don’t need today—fewer, higher-quality signals beat clutter.
About this release
Internal scoring, smoothing, and detection logic are proprietary. Behavior is controlled via inputs described above.
Trade with a plan, test your settings, and let confluence do the heavy lifting.
Structure Pro+ (BOS, CHoCH, FVG, OB)Structure Pro+ (BOS, CHoCH, FVG, OB)
Structure Pro+ is a comprehensive Pine Script indicator designed for traders who utilize Smart Money Concepts (SMC) in their analysis. This powerful tool automatically identifies and visualizes key market structure elements, helping you gain deeper insights into price action and potential institutional movements.
Key Features:
Break of Structure (BOS): Clearly identifies trend continuation by marking points where price breaks a previous swing high in an uptrend or a swing low in a downtrend.
Change of Character (CHoCH): Pinpoints potential trend reversals when price breaks a swing point against the prevailing trend, signaling a shift in market sentiment.
Fair Value Gap (FVG) / Imbalance: Automatically highlights areas where price has moved quickly, leaving behind "imbalances" that often act as magnet zones for future price action.
Mitigation Logic: FVGs are dynamically tracked and can be set to disappear from the chart once mitigated (when price returns to fill the gap).
Order Block (OB): Detects and marks potential institutional order blocks, which are crucial supply and demand zones that frequently act as strong support or resistance levels.
Customizable Settings: Tailor the indicator to your specific trading style with extensive input options, including:
Pivot sensitivity (leftBars, rightBars)
Color and line style for BOS/CHoCH
FVG display options, including color and mitigation behavior
Order Block display options and colors
Label sizing for clarity
Integrated Alerts: Stay informed with built-in alert functionalities for:
BOS occurrences (Bullish/Bearish)
CHoCH occurrences (Bullish/Bearish)
Confluent events: BOS + FVG and CHoCH + FVG, providing high-probability trade setups when structure breaks align with imbalances. The confluenceLookback setting allows you to define the maximum distance between these events for an alert.
Why Use Structure Pro+?
This indicator simplifies the complex process of identifying SMC concepts on your charts. By automatically drawing BOS, CHoCH, FVG, and OB, Structure Pro+ helps you:
Validate your directional bias with clear visual cues.
Identify potential entry and exit points around significant structural levels.
Enhance your market understanding based on institutional footprints.
Receive timely notifications for high-probability setups, so you never miss a critical market event.
Structure Pro+ is an invaluable tool for any trader looking to refine their analysis with Smart Money Concepts.
Internal/External Market Structure [UAlgo]The "Internal/External Market Structure " indicator is a tool designed to identify and visualize internal and external market structure based on swing highs and lows. It helps traders understand short-term (internal) and long-term (external) price behavior.
🔶 What are ChoCH and BoS?
Change of Character (ChoCH)
Change of character refers to the reversal of market trend either from bullish to bearish or bearish to bullish. ChoCH is also a break of market structure but in opposite direction.
If market is in bullish trend but it breaks it previous (higher) low and makes a lower low, it will be termed a “bearish change of character” as price changed its trend from bullish to bearish.
Like wise if price is in bearish trend and it breaks its previous (lower) high making a higher high it will be marked as “bullish change of character” as price changed its trend from bearish to bullish.
Break of Structure (BoS)
When price breaks its structure in direction of previous trend its called break of structure (BoS). So its a trend continuation pattern.
As you know in bullish trend price makes higher highs. Each time when price break a previous high and marks a new high its known as bullish break of structure.
But in bearish trend price makes lower lows so every time when price breaks previous low and makes a new low it is called as bearish break of structure.
🔶 Key Features
Internal Swing Length: Allowing for fine-tuning of sensitivity to smaller, more frequent market movements.
External Swing Length: Focusing on capturing broader market trends.
The indicator differentiates between internal and external market structures, using different styles and colors to represent each. Internal structures are shown with solid lines, while external structures use dashed lines, providing clear visual cues.
Internal Market Structure:
The internal market structure focuses on shorter-term swings and is useful for identifying minor trend changes and short-term price movements. Breaks of internal swing highs or lows can indicate potential changes in the market's direction or momentum. The labels "CHoCH" and "BoS" help distinguish between changes in character and break of structure events, respectively.
External Market Structure:
The external market structure captures larger, more significant market moves. It is particularly useful for identifying major trend changes and key support and resistance levels. The dashed lines and corresponding labels "CHoCH+" and "BoS+" indicate more substantial shifts in market sentiment.
For BoS (Break of Structure):
For ChoCH (Change of Character):
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
UTS CORE + BOS + CHOCH – RR/TP/SL 📊 Indicator Working Principle
### 🔹 1. BOS (Break of Structure)
* **Definition:** Occurs when the price breaks the previous swing high or swing low level.
* **Interpretation:**
* If the last high is broken upwards → **Bullish BOS** (confirmation of uptrend).
* If the last low is broken downwards → **Bearish BOS** (confirmation of downtrend).
---
### 🔹 2. CHOCH (Change of Character)
* **Definition:** Indicates a trend reversal.
* **Interpretation:**
* In an uptrend, if the last low is broken downwards → **CHOCH↓** (start of downtrend).
* In a downtrend, if the last high is broken upwards → **CHOCH↑** (start of uptrend).
* **Chart:** Blue “CHOCH↑” labels on the chart mark trend reversals.
---
### 🔹 3. FVG (Fair Value Gap)
* **Definition:** A price gap formed between 3 candles.
* **Logic:**
* If the low of one candle stays above the high of the candle two bars back, a gap is created.
* Price tends to return to these gaps to “fill” them.
* **Chart:** The indicator highlights these gaps automatically (green/purple lines).
---
### 🔹 4. Signal Generation (BUY / SELL)
* A valid BOS or CHOCH confirmation + presence of FVG → **signal is triggered.**
* **Rules:**
* Upward break → **BUY signal**
* Downward break → **SELL signal**
* **Chart:** Red “SELL” and green “BUY” labels represent these trade signals.
---
### 🔹 5. RR – TP/SL Management
* When a trade is opened, the indicator automatically calculates **Entry, Stop Loss (SL), and Take Profits (TP1, TP2, TP3).**
* **Risk/Reward ratios:**
* TP1 = 1R
* TP2 = 2R
* TP3 = 3R
* If TP1 is hit and “Breakeven” option is enabled → SL moves to entry (risk-free trade).
---
👉 In short: this indicator tracks **market structure (BOS/CHOCH)**, detects **imbalances (FVG)**, and combines them with **risk/reward management (TP/SL)** to give you a ready-made trade
Trend Fib Zone Bounce (TFZB) [KedArc Quant]Description:
Trend Fib Zone Bounce (TFZB) trades with the latest confirmed Supply/Demand zone using a single, configurable Fib pullback (0.3/0.5/0.6). Trade only in the direction of the most recent zone and use a single, configurable fib level for pullback entries.
• Detects market structure via confirmed swing highs/lows using a rolling window.
• Draws Supply/Demand zones (bearish/bullish rectangles) from the latest MSS (CHOCH or BOS) event.
• Computes intra zone Fib guide rails and keeps them extended in real time.
• Triggers BUY only inside bullish zones and SELL only inside bearish zones when price touches the selected fib and closes back beyond it (bounce confirmation).
• Optional labels print BULL/BEAR + fib next to the triangle markers.
What it does
Finds structure using confirmed swing highs/lows (you choose the confirmation length).
Builds the latest zone (bullish = demand, bearish = supply) after a CHOCH/BOS event.
Draws intra-zone “guide rails” (Fib lines) and extends them live.
Signals only with the trend of that zone:
BUY inside a bullish zone when price tags the selected Fib and closes back above it.
SELL inside a bearish zone when price tags the selected Fib and closes back below it.
Optional labels print BULL/BEAR + Fib next to triangles for quick context
Why this is different
Most “zone + fib + signal” tools bolt together several indicators, or fire counter-trend signals because they don’t fully respect structure. TFZB is intentionally minimal:
Single bias source: the latest confirmed zone defines direction; nothing else overrides it.
Single entry rule: one Fib bounce (0.3/0.5/0.6 selectable) inside that zone—no counter-trend trades by design.
Clean visuals: you can show only the most recent zone, clamp overlap, and keep just the rails that matter.
Deterministic & transparent: every plot/label comes from the code you see—no external series or hidden smoothing
How it helps traders
Cuts decision noise: you always know the bias and the only entry that matters right now.
Forces discipline: if price isn’t inside the active zone, you don’t trade.
Adapts to volatility: pick 0.3 in strong trends, 0.5 as the default, 0.6 in chop.
Non-repainting zones: swings are confirmed after Structure Length bars, then used to build zones that extend forward (they don’t “teleport” later)
How it works (details)
*Structure confirmation
A swing high/low is only confirmed after Structure Length bars have elapsed; the dot is plotted back on the original bar using offset. Expect a confirmation delay of about Structure Length × timeframe.
*Zone creation
After a CHOCH/BOS (momentum shift / break of prior swing), TFZB draws the new Supply/Demand zone from the swing anchors and sets it active.
*Fib guide rails
Inside the active zone TFZB projects up to five Fib lines (defaults: 0.3 / 0.5 / 0.7) and extends them as time passes.
*Entry logic (with-trend only)
BUY: bar’s low ≤ fib and close > fib inside a bullish zone.
SELL: bar’s high ≥ fib and close < fib inside a bearish zone.
*Optionally restrict to one signal per zone to avoid over-trading.
(Optional) Aggressive confirm-bar entry
When do the swing dots print?
* The code confirms a swing only after `structureLen` bars have elapsed since that candidate high/low.
* On a 5-min chart with `structureLen = 10`, that’s about 50 minutes later.
* When the swing confirms, the script plots the dot back on the original bar (via `offset = -structureLen`). So you *see* the dot on the old bar, but it only appears on the chart once the confirming bar arrives.
> Practical takeaway: expect swing markers to appear roughly `structureLen × timeframe` later. Zones and signals are built from those confirmed swings.
Best timeframe for this Indicator
Use the timeframe that matches your holding period and the noise level of the instrument:
* Intraday :
* 5m or 15m are the sweet spots.
* Suggested `structureLen`:
* 5m: 10–14 (confirmation delay \~50–70 min)
* 15m: 8–10 (confirmation delay \~2–2.5 hours)
* Keep Entry Fib at 0.5 to start; try 0.3 in strong trends, 0.6 in chop.
* Tip: avoid the first 10–15 minutes after the open; let the initial volatility set the early structure.
* Swing/overnight:
* 1h or 4h.
* `structureLen`:
* 1h: 6–10 (6–10 hours confirmation)
* 4h: 5–8 (20–32 hours confirmation)
* 1m scalping: not recommended here—the confirmation lag relative to the noise makes zones less reliable.
Inputs (all groups)
Structure
• Show Swing Points (structureTog)
o Plots small dots on the bar where a swing point is confirmed (offset back by Structure Length).
• Structure Length (structureLen)
o Lookback used to confirm swing highs/lows and determine local structure. Higher = fewer, stronger swings; lower = more reactive.
Zones
• Show Last (zoneDispNum)
o Maximum number of zones kept on the chart when Display All Zones is off.
• Display All Zones (dispAll)
o If on, ignores Show Last and keeps all zones/levels.
• Zone Display (zoneFilter): Bullish Only / Bearish Only / Both
o Filters which zone types are drawn and eligible for signals.
• Clean Up Level Overlap (noOverlap)
o Prevents fib lines from overlapping when a new zone starts near the previous one (clamps line start/end times for readability).
Fib Levels
Each row controls whether a fib is drawn and how it looks:
• Toggle (f1Tog…f5Tog): Show/hide a given fib line.
• Level (f1Lvl…f5Lvl): Numeric ratio in . Defaults active: 0.3, 0.5, 0.7 (0 and 1 off by default).
• Line Style (f1Style…f5Style): Solid / Dashed / Dotted.
• Bull/Bear Colors (f#BullColor, f#BearColor): Per-fib color in bullish vs bearish zones.
Style
• Structure Color: Dot color for confirmed swing points.
• Bullish Zone Color / Bearish Zone Color: Rectangle fills (transparent by default).
Signals
• Entry Fib for Signals (entryFibSel): Choose 0.3, 0.5 (default), or 0.6 as the trigger line.
• Show Buy/Sell Signals (showSignals): Toggles triangle markers on/off.
• One Signal Per Zone (oneSignalPerZone): If on, suppresses additional entries within the same zone after the first trigger.
• Show Signal Text Labels (Bull/Bear + Fib) (showSignalLabels): Adds a small label next to each triangle showing zone bias and the fib used (e.g., BULL 0.5 or BEAR 0.3).
How TFZB decides signals
With trend only:
• BUY
1. Latest active zone is bullish.
2. Current bar’s close is inside the zone (between top and bottom).
3. The bar’s low ≤ selected fib and it closes > selected fib (bounce).
• SELL
1. Latest active zone is bearish.
2. Current bar’s close is inside the zone.
3. The bar’s high ≥ selected fib and it closes < selected fib.
Markers & labels
• BUY: triangle up below the bar; optional label “BULL 0.x” above it.
• SELL: triangle down above the bar; optional label “BEAR 0.x” below it.
Right-Panel Swing Log (Table)
What it is
A compact, auto-updating log of the most recent Swing High/Low events, printed in the top-right of the chart.
It helps you see when a pivot formed, when it was confirmed, and at what price—so you know the earliest bar a zone-based signal could have appeared.
Columns
Type – Swing High or Swing Low.
Date – Calendar date of the swing bar (follows the chart’s timezone).
Swing @ – Time of the original swing bar (where the dot is drawn).
Confirm @ – Time of the bar that confirmed that swing (≈ Structure Length × timeframe after the swing). This is also the earliest moment a new zone/entry can be considered.
Price – The swing price (high for SH, low for SL).
Why it’s useful
Clarity on repaint/confirmation: shows the natural delay between a swing forming and being usable—no guessing.
Planning & journaling: quick reference of today’s pivots and prices for notes/backtesting.
Scanning intraday: glance to see if you already have a confirmed zone (and therefore valid fib-bounce entries), or if you’re still waiting.
Context for signals: if a fib-bounce triangle appears before the time listed in Confirm @, it’s not a valid trade (you were too early).
Settings (Inputs → Logging)
Log swing times / Show table – turn the table on/off.
Rows to keep – how many recent entries to display.
Show labels on swing bar – optional tags on the chart (“Swing High 11:45”, “Confirm SH 14:15”) that match the table.
Recommended defaults
• Structure Length: 10–20 for intraday; 20–40 for swing.
• Entry Fib for Signals: 0.5 to start; try 0.3 in stronger trends and 0.6 in choppier markets.
• One Signal Per Zone: ON (prevents over trading).
• Zone Display: Both.
• Fib Lines: Keep 0.3/0.5/0.7 on; turn on 0 and 1 only if you need anchors.
Alerts
Two alert conditions are available:
• BUY signal – fires when a with trend bullish bounce at the selected fib occurs inside a bullish zone.
• SELL signal – fires when a with trend bearish bounce at the selected fib occurs inside a bearish zone.
Create alerts from the chart’s Alerts panel and select the desired condition. Use Once Per Bar Close to avoid intrabar flicker.
Notes & tips
• Swing dots are confirmed only after Structure Length bars, so they plot back in time; zones built from these confirmed swings do not repaint (though they extend as new bars form).
• If you don’t see a BUY where you expect one, check: (1) Is the active zone bullish? (2) Did the candle’s low actually pierce the selected fib and close above it? (3) Is One Signal Per Zone suppressing a second entry?
• You can hide visual clutter by reducing Show Last to 1–3 while keeping Display All Zones off.
Glossary
• CHOCH (Change of Character): A shift where price breaks beyond the last opposite swing while local momentum flips.
• BOS (Break of Structure): A cleaner break beyond the prior swing level in the current momentum direction.
• MSS: Either CHOCH or BOS – any event that spawns a new zone.
Extension ideas (optional)
• Add fib extensions (1.272 / 1.618) for target lines.
• Zone quality score using ATR normalization to filter weak impulses.
• HTF filter to only accept zones aligned with a higher timeframe trend.
⚠️ Disclaimer This script is provided for educational purposes only.
Past performance does not guarantee future results.
Trading involves risk, and users should exercise caution and use proper risk management when applying this strategy.
ICT Killzones Pro Suite — ICT & SMC Indicator with AlertsThe ICT Killzones Pro Suite is a complete ICT and Smart Money Concepts (SMC) indicator that brings together the most important institutional concepts into one single tool.
Instead of manually drawing sessions, structure breaks, liquidity levels or imbalances, this ICT indicator for TradingView automatically plots them with precision and full customization.
It is widely used by traders in Forex, Indices, Crypto and Commodities who want to study market structure the same way institutions do.
🔎 Features
✅ Killzones (Asia, London, New York)
Session boxes with customizable colors
50% midline level for equilibrium reference
Real-time status display (“In Killzone” / “Out of Killzone”)
✅ Equal Highs & Equal Lows (Liquidity zones)
Automatic detection of EQH/EQL
Equality tolerance parameter
Zone expiry (bars)
Rejection filter (2 consecutive closes)
Option to show only the latest active EQH/EQL
✅ Break of Structure (BOS) & Market Structure Shift (MSS)
Detects continuation (BOS) and reversal (MSS) structures
Customizable line styles and colors
“Body only” or “Body/Wick” break modes
Option to show only the latest signals
✅ Open Price Range (OPR)
Institutional daily open level in UTC
Historical OPR memory for backtesting
Optional labels for quick identification
✅ Previous Highs and Lows
Daily (PDH/PDL), Weekly (PWH/PWL), Monthly (PMH/PML)
Full label system
Customizable line width/style
Breakout alerts for each level
✅ Fair Value Gaps (FVGs)
Automatic imbalance detection
Wick or body detection modes
Highlighted imbalance candles in yellow
✅ Alerts Engine
One global alert condition
Modular alerts:
• Killzone opens/closes
• EQH/EQL created or broken
• BOS/MSS bullish & bearish signals
• Previous Highs/Lows breakouts
• FVGs
⚙️ Parameters Explained
Killzones: start/end times in UTC, colors, extension lines, 50% midline
EQH/EQL: tolerance (0 = strict equality, >0 = margin allowed), expiry age (bars), rejection filter, body/wick break type, latest only toggle
BOS/MSS: swing bars (pivots), body vs wick detection, line styles & widths, only-latest option
OPR: exact UTC time (HH:MM), history toggle, label size/color
Previous Highs/Lows: daily/weekly/monthly levels, line styles, label settings, breakout alerts
FVGs: wick vs body detection, candle highlight color
Alerts: global condition + per-module toggles (sessions, liquidity, BOS/MSS, FVG)
Every parameter is fully customizable, making this SMC indicator adaptable to any trading style or timeframe.
📌 Why use this ICT & SMC indicator?
Saves time by automating repetitive tasks
Provides an institutional framework directly on charts
Keeps analysis structured and consistent
Optimized for intraday scalping and swing trading
⚠️ Disclaimer
This script is for educational purposes only. It does not guarantee profits or predict markets with certainty. Always use proper risk management.
🔑 Access
This is an invite-only script on TradingView.
Click Request Access on this page to apply.
Structure From Start – MTF (body-close BOS)Displays higher-timeframe market structure from a chosen start date using body-close BOS logic, with trend state, guard levels, and BOS markers plotted on your current chart.
Multi-Timeframe Market Structure with Body-Close BOS Logic
This indicator tracks market structure from a chosen start date on a higher-timeframe (HTF) of your choice, then displays it on your current chart for intraday context.
It detects swing highs/lows using pivot logic, confirms Break of Structure (BOS) only when a candle closes beyond the swing level (body-close rule), and maintains the “valid swing” level that invalidates the current bias.
Key Features:
• Works on any HTF you select (e.g., H1, H4) while you operate on lower TFs like M5 or M1.
• Start reading structure from any date/time you choose for focused backtesting or scenario analysis.
• Highlights trend state (long/short/neutral) with background colors.
• Plots the active “guard” level (valid swing high/low) that would flip bias if broken.
• Marks BOS events directly on your trading TF, updating only when the HTF candle closes.
Ideal for combining a clear higher-timeframe bias with lower-timeframe execution, without manually tracking HTF structure changes during live markets.
Market Structure MTF Trend [Pt]█ Author's Notes
There are numerous market structure indicators in the TradingView library, each offering a unique approach to identifying price action shifts. Market Structure MTF Trend was created with simplicity and flexibility in mind—providing a highly customizable multi-timeframe setup, visually clear trendlines, and straightforward labeling. This combination helps both new and experienced traders easily spot and interpret market structure changes.
█ Overview
Market Structure MTF Trend is a powerful yet user-friendly indicator designed to identify and visualize key turning points in price action. It focuses on two core concepts:
Change of Character (CHoCH): A momentary shift in the market’s behavior, signaling that the current price movement may be losing momentum and could soon reverse.
Break of Structure (BoS): A more definitive event confirming a new price pattern, where the market establishes a fresh trend direction by surpassing previous swing highs or lows.
By combining these signals across up to four different timeframes, even traders unfamiliar with market structure can quickly learn to spot and validate potential trend reversals or continuations.
█ Key Features
Multi-Timeframe Analysis: Monitors CHoCH and BoS events simultaneously on multiple intervals (e.g., 15m, 30m, 60m, 240m), providing a clear, layered understanding of market dynamics.
Straightforward Visual Cues: Labels are placed directly on the chart at swing highs and lows, while colored bars at the bottom give an instant snapshot of whether each timeframe is bullish or bearish.
Configurable Timeframes & Pivot Strength: Easily set up the desired intervals and adjust pivot strength to tune how sensitive the indicator is to minor price fluctuations.
Color-Coded Signals: Different colors help you distinguish between potential early reversals (CHoCH) and confirmed shifts (BoS), ensuring each signal’s importance is immediately clear.
█ Usage & Benefits
Learn Market Structure Basics: For those new to swing highs/lows, CHoCH, and BoS, the script’s on-chart labels and dynamic bar coloring provide a practical, visual way to grasp these concepts.
Spot Reversals Early: CHoCH alerts you to possible shifts in momentum, allowing you to anticipate trend changes before they fully develop.
Confirm Trend Breaks: BoS events confirm that the market has established a new directional bias, reinforcing higher‐probability entry or exit points.
Reduce Noise & Stay Focused: The multi-timeframe setup ensures you won’t overlook larger trends or get lost in smaller fluctuations.
Streamline Decision-Making: Color-coded bars let you gauge overall market sentiment at a glance—ideal for quickly validating trades without juggling multiple charts.
Market Structure MTF Trend is perfect for traders who want to learn or refine their understanding of price action. By integrating multiple timeframes into a single, cohesive interface, this tool highlights both subtle shifts and confirmed breaks in market structure, empowering you to trade with greater insight and confidence.
MSB BOS Market Structure [FTB]Track Market Structure Breaks (MSB) and Breaks of Structure (BOS) on your charts. This indicator does exactly that without clutter and with easy-to-spot.
🔑 Features:
MSB (Market Structure Break): Shows when price flips and breaks the previous high/low — possible start of a new trend.
BOS (Break of Structure): Highlights key structural breakouts in line with the existing trend.
✅ Pivot-Based Analysis (Body Focused)
Uses candle body-based pivot highs and lows to find clean market structure points (no wicks confusion here!).
Adjustable pivot strength — control how many candles you want on either side to define a swing.
✅ Clean Visual Markings
MSB and BOS lines with optional labels so you see exactly where breaks happen.
Customizable line style (Solid, Dashed, Dotted) to match your chart aesthetic.
Optional pivot markers to show minor swing highs/lows.
✅ Alerts Ready
Set alerts for any MSB or BOS, or filter to specific bullish/bearish breaks — never miss a key level again
💡 How to Use This Indicator:
Identify Trend Shifts: Use MSB to spot early trend reversals — when a previous structure breaks against the trend.
Catch Continuations: Watch for BOS to confirm trend continuation — great for riding the trend!
⚙️ Settings You Can Adjust:
Pivot Strength: How many candles to look back and forward for swing points (default: 3).
Show Pivots: Optional — highlight swing highs and lows for extra clarity.
[TehThomas- Pro] - Liquidity SignalsOverview
This Pine Script indicator is designed to generate Buy and Sell signals based on liquidity sweeps and market structure shifts (MSS) or break of structure (BOS). The combination of liquidity sweeps and market structure changes provides a highly confluential signal that can be used to identify high-probability trade setups. This indicator is capable of working as a standalone tool or as part of a broader trading strategy.
Core Concepts
Liquidity Sweeps:
A liquidity sweep occurs when the price temporarily breaks a previous high or low, taking out stop losses or inducing breakout traders, only to reverse direction shortly after.
The indicator detects these liquidity sweeps at pivot points defined by a user-set pivotPeriod.
It plots Buyside Liquidity (resistance) or Sellside Liquidity (support) lines on the chart to indicate where liquidity pools are likely positioned.
Market Structure Shifts (MSS) and Break of Structure (BOS):
BOS: This occurs when the price closes above or below a previous swing high or low, indicating a potential shift in trend.
MSS: This is a more aggressive form of market structure change where the price action reverses after a liquidity sweep, signaling a potential reversal before a BOS confirmation.
The script tracks swing highs and swing lows using the pivot_strength setting to define how many bars are required on both sides of a pivot point.
Confluence of Signals:
The main signal is plotted when a Liquidity Sweep is followed by an MSS within a specified number of bars (25 by default).
This creates a high-probability trade signal because it combines both liquidity traps and market structure reversals.
Below, you can see the signals the indicator generates
There is one loss marked by the second circle.
Settings and Inputs
Liquidity Sweep Settings
pivotPeriod: Defines the left and right length of the pivot points to detect swing highs and lows.
maxLine: Maximum number of liquidity lines plotted on the chart.
resistanceColor & supportColor: Colors for Buyside and Sellside liquidity lines.
lineExtend: Number of bars to extend liquidity lines into the future.
hitAction: Determines what happens when liquidity lines are hit (dotted, dashed, or delete).
Market Structure Settings
show_mss: Toggle to display MSS signals on the chart.
show_bos: Toggle to display BOS signals on the chart.
Customizable line styles, colors, and labels for both MSS and BOS.
How to Use the Indicator
Signal Confirmation:
A Buy Signal is most effective when combined with a liquidity sweep of sellside liquidity followed by a bullish market structure shift.
A Sell Signal is most effective when combined with a liquidity sweep of buyside liquidity followed by a bearish market structure shift.
Always check confluence with other indicators such as moving averages or volume analysis.
Trade Management:
Place stop-loss orders below the liquidity sweep low for buys or above the liquidity sweep high for sells.
Use the previous swing high or low as a target or set custom risk-reward ratios.
Why This Indicator Works So Well
✅ Combines liquidity sweeps and market structure for highly accurate signals.
✅ Works across all timeframes and markets.
✅ Automatically plots support and resistance zones.
✅ Provides clear buy and sell signals with customizable alerts.
✅ Helps traders avoid false breakouts by waiting for market structure confirmation.
Conclusion
This indicator is a highly confluential trading tool that combines liquidity sweeps with market structure shifts to generate Buy and Sell signals. It provides a strong edge by confirming liquidity traps with market structure reversals. With customizable settings, it can be adapted to different timeframes and trading styles, making it suitable for both scalping and swing trading strategies.
By automating the detection of these advanced concepts, the indicator helps traders stay objective and disciplined in their decision-making process.
Whether you're a beginner or an advanced trader, this indicator will help you spot high-probability trade setups and improve your overall trading performance.
Disclaimer
This indicator is a powerful tool for identifying potential trading opportunities, but it is not a guarantee of future performance. Use this indicator at your own risk. Trading involves significant risk, and it is essential to have proper knowledge and experience before making any financial decisions. The signals provided by this indicator should be used as part of a comprehensive trading plan and combined with other forms of analysis. The creator is not responsible for any financial losses incurred while using this tool.






















