Pinpoint institutional order blocks (OB) and buy/sell-side liquidity sweeps before massive market expansion moves.
Copy and paste this code directly into your TradingView Pine Editor
//@version=5
indicator("FxSnip - Institutional Order Blocks", "FxSnip Order Blocks", overlay=true, max_boxes_count=300)
length = input.int(10, "Order Block Lookback Period")
bullOBColor = input.color(color.new(color.blue, 75), "Bullish Order Block")
bearOBColor = input.color(color.new(color.purple, 75), "Bearish Order Block")
isImpulseUp = close > open and (close - open) > ta.atr(14) * 1.5
isImpulseDown = close < open and (open - close) > ta.atr(14) * 1.5
if isImpulseUp and close[1] < open[1]
box.new(left=bar_index-1, top=high[1], right=bar_index+15, bottom=low[1], bgcolor=bullOBColor, border_color=color.blue)
if isImpulseDown and close[1] > open[1]
box.new(left=bar_index-1, top=high[1], right=bar_index+15, bottom=low[1], bgcolor=bearOBColor, border_color=color.purple)
.ex5 / .mq5 file.The Order Block & Liquidity Sweeps Indicator tracks where institutional participants absorb retail liquidity. It marks the last opposing candle prior to a strong impulsive break, creating validated Order Block reaction zones.
Need this indicator converted into an automated MT5 Expert Advisor or customized for your specific trading rules?
Order Custom Coding →Loading activity...
Just now