Order Blocks + Ultimate Volume Tracker + EMA
May 1, 2026

The Order Blocks + Ultimate Volume Tracker + EMA indicator provides a multi-layered trading framework that integrates institutional smart money concepts, trend confirmation, and advanced volume clustering into a single tool. It utilizes automated order block identification to highlight supply and demand zones, coupled with a K-Means clustering algorithm for volume analysis and a fixed EMA 9/21 crossover system for trend-following signals.
Usage
The indicator is designed to be used as a comprehensive strategy or as a confluence filter for existing trading methods. Users can interpret the visual outputs as follows:
- Order Blocks: The script automatically plots bullish and bearish order blocks. When a zone is "broken," it transitions into a "breaker block," signaling a potential polarity shift in market structure.
- EMA Crossovers: The tool includes a fixed EMA 9/21 crossover system. A "BUY" label appears when the 9 EMA crosses above the 21 EMA, while a "SELL" label appears on the cross-under, providing entry triggers within the prevailing trend.
- Volume Clustering: Using the Dynamic Volume Engine, the script segments price action into high-liquidity clusters. This helps traders identify where the highest volume of trading has occurred, marking these levels as significant support or resistance.
- Confluence Trading: A high-probability setup typically occurs when an EMA signal aligns with a bounce or rejection from a displayed Order Block, confirmed by high-volume clusters in the same area.
Details
The script operates through three primary technical engines:
- Smart Money Concepts (SMC): It tracks "swings" using a lookback period to identify market structure breaks. When a high or low is breached, the script identifies the last candle responsible for that move to draw an Order Block.
- K-Means Dynamic Volume Engine: This feature employs a K-Means clustering algorithm to group price data into $K$ clusters based on proximity and volume weight. This provides a more mathematical approach to Volume Profile analysis than standard fixed-row calculations.
- Trend Detection: The EMA 9 (Fast) and EMA 21 (Slow) provide a mechanical filter for momentum. The indicator remains focused on the overlay to provide immediate visual feedback on price relation to these averages.
Settings
Order Block Settings
- Swing Lookback: Determines the number of bars used to identify swing highs and lows for market structure detection.
- Show Last Bullish/Bearish OB: Specifies how many recent bullish or bearish order blocks to keep visible on the chart.
- Use Candle Body: If enabled, the script calculates order block boundaries based on candle bodies instead of wicks.
- Colors (Bullish/Bearish/Breaker): Customizes the aesthetic appearance of the various supply and demand zones.
- Show Historical Polarity Changes: Toggles labels that indicate when an order block has transitioned into a breaker block.
Ultimate Tracker - Clustering Settings
- Lookback Period: Sets the amount of historical data processed by the K-Means algorithm.
- Number of Clusters: Defines the $K$ value (number of groups) for the volume engine.
- K-Means Iterations: Controls the number of calculation passes for the clustering algorithm to ensure mathematical accuracy.
Ultimate Tracker - Volume Profile Settings
- Rows per Cluster VP: Determines the granularity of the volume distribution within each identified cluster.
- Max VP Width Bars: Adjusts the horizontal length of the volume profile histograms.
- VP Offset: Moves the volume profile visualization to the right to avoid overlapping with recent price action.
- Highlight Price Dots: Toggles visual markers on price points associated with specific volume clusters.
FAQ
How do I interpret a "Breaker Block" in this indicator? A breaker block occurs when an existing order block is invalidated by price. This often indicates a shift in market sentiment, where a previous support zone (bullish OB) may now act as a resistance zone (breaker).
What is the benefit of K-Means Volume Clustering over a standard Volume Profile? K-Means clustering dynamically groups data based on actual price-volume density rather than arbitrary fixed price intervals. This allows the indicator to identify "true" areas of interest that adapt to market volatility.
How can I access the Order Blocks + Ultimate Volume Tracker + EMA? 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.