SMC Indicator With Webhook
Oct 10, 2023

The Simple SMC Indicator with Webhook tool provides a comprehensive suite of Smart Money Concepts (SMC) features, including liquidity sweeps, market structure shifts (MSS), and fair value gaps (FVG), to identify institutional price action.
Usage
The Usage section describes how the script can be used to identify key SMC price action elements. The indicator automates the detection of liquidity pools and subsequent market reactions, which are essential for traders following institutional order flow strategies.
Liquidity Sweeps and MSS
The indicator identifies fractal highs and lows to establish liquidity points. When price exceeds these points and reverses, it labels them as "Swept." A Market Structure Shift (MSS) is confirmed when price subsequently closes beyond the high or low that led to the sweep, signaling a potential change in trend.
Fair Value Gaps (FVG)
FVGs are identified as three-candle sequences where a gap exists between the first candle's wick and the third candle's wick. These are visualized as colored boxes and represent areas of price imbalance that often act as magnets or support/resistance zones.
Session Tracking
The script includes a session highlighter that can track up to four distinct trading sessions (e.g., London, New York). Users can choose to only display SMC elements that occur within these specific time windows to filter out low-liquidity price action.
Webhook Alerts
A core feature of this script is the optimized alert system. By pasting a Discord webhook URL into the TradingView alert "Webhook URL" box and using the script's predefined JSON output, users can receive formatted notifications directly to their Discord servers for sweeps, MSS, and FVGs.
Details
The script utilizes a fractal-based logic to determine key swing points. The fractalPeriod setting determines the number of bars required on either side of a high or low to confirm it as a point of interest.
The Market Structure Shift logic is reactive; it first looks for a liquidity sweep of a fractal. Once a sweep is detected, the script identifies the "extreme" point (the lowest low after a bullish sweep or the highest high after a bearish sweep) and waits for a candle body close across that level to confirm the MSS.
FVG detection follows the standard definition:
- Bullish FVG: Low[0] > High[2]
- Bearish FVG: High[0] < Low[2]
Settings
Price Action
- Only Draw In Session: When enabled, the indicator will only plot SMC elements if they occur during the defined session times.
- Draw Fractal Highs/Lows: Toggles the calculation and visibility of swing points.
- Fractal Periods: Sets the sensitivity for identifying fractal highs and lows.
- Draw Liquidity Sweeps: Enables/disables the "Swept" labels and lines.
- Draw MSS: Toggles the visibility of Market Structure Shift levels.
- Draw FVG: Toggles the visibility of Fair Value Gap boxes.
Alerts
- Alert Name: A custom string used in the alert message to identify the specific chart (e.g., "1m XAUUSD").
- Sweep/MSS/FVG/Fractal Alerts: Individual toggles to enable or disable alert triggers for specific conditions.
Session
- Draw Session (1-4): Toggles the background highlighting for specific time windows.
- Session (1-4) Time: Defines the specific hours for each session (formatted in New York time).
- Session Color: Customizes the background color for each specific session.
FAQ
How do I set up the Discord Webhook for this indicator?
Create a webhook in your Discord server settings, copy the URL, and paste it into the "Webhook URL" field in the TradingView "Create Alert" dialog. Ensure the specific SMC alerts are enabled in the indicator settings.
Can I filter out signals that happen during low-volume periods?
Yes, by enabling "Only Draw In Session" and configuring your preferred trading hours in the Session settings, the indicator will only process and display data during those times.
How can I get access to the Simple SMC Indicator?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.