Order Blocks
Mar 3, 2025

The Order Blocks indicator is a specialized technical tool designed to identify and visualize institutional order blocks, helping traders pinpoint significant support and resistance levels where large-scale buying or selling activity occurred.
Usage
The indicator provides a visual representation of supply and demand zones on the chart. To use the tool effectively, traders should monitor the following:
- Zone Identification: Bullish Order Blocks (green) represent areas where significant buying interest was previously established. Bearish Order Blocks (red) represent areas of previous selling interest.
- Multi-Timeframe Analysis: Users can select a specific timeframe to fetch order blocks from, allowing for the observation of higher-timeframe institutional levels while trading on a lower-timeframe chart.
- Mitigation: The indicator tracks whether a zone has been "mitigated" (revisited by price). Once price breaks through the mitigation level (based on wicks or candle closes), the order block is considered invalidated and is removed from the chart.
- Alerting: Integrated alerts notify the user when the price enters an active order block zone, facilitating timely trade entries or exits.
Details
Order blocks are conceptualized as the specific candles where market makers or institutional participants placed heavy orders before a significant price move. This script calculates these blocks based on price percentage changes relative to a user-defined sensitivity threshold. When a sharp move occurs, the script looks back to identify the last opposing candle (the "block") that preceded the move and extends it forward as a potential reversal or reaction zone.
The tool uses request.security to handle multi-timeframe data, ensuring that the levels displayed are consistent with the selected anchor timeframe regardless of the current chart resolution.
Settings
Multi-Timeframe Settings
- Multi-Timeframe: Determines the timeframe from which order blocks are calculated.
Order Block
- Sensitivity: Controls the detection threshold. Lowering this value will result in more order blocks being detected, while higher values focus on more significant price expansions.
- OB Mitigation Type: Defines the criteria for removing an order block. "Close" requires a candle close beyond the zone, while "Wick" mitigates the zone as soon as a price wick touches the boundary.
- Bullish/Bearish OB Border & Background: Customizes the visual colors and transparency for the bullish and bearish zones.
Alerts
- Buy Signal: Enables alerts when price enters a Bullish Order Block.
- Sell Signal: Enables alerts when price enters a Bearish Order Block.
FAQ
How do I use the Multi-Timeframe feature?
Simply navigate to the settings and select a timeframe higher than your current chart (e.g., 1H for a 5m chart) to see significant institutional levels from that period.
What is the difference between Close and Wick mitigation?
Close mitigation is more conservative, requiring price to sustain a move beyond the zone, whereas Wick mitigation removes the zone the moment price touches the invalidation level.
How can I access this 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.