About This Indicator
EFX Structure Pro is a comprehensive market structure indicator built for ICT and Smart Money traders. It plots all key swing points and automatically identifies the trend structure on any timeframe. When a Break of Structure (BOS) or Change of Character (CHoCH) occurs, the indicator alerts you instantly so you never miss a structural shift.
Designed to be used top-down start on the Daily or 4H to define the higher-timeframe bias, then drop to the 15m or 1H for entry confirmation using the structural shifts as your guide.
Pine Script Preview
//@version=5
// EFX Structure Pro EntraFX
// © 2026 EntraFX. Pro licence required.
indicator("EFX Structure Pro", overlay=true, max_lines_count=500)
swingLen = input.int(10, "Swing Length", minval=3, maxval=50)
showBOS = input.bool(true, "Show BOS Lines")
showCH = input.bool(true, "Show CHoCH Lines")
showLabels = input.bool(true, "Show HH/HL/LH/LL Labels")
// Swing detection
ph = ta.pivothigh(high, swingLen, swingLen)
pl = ta.pivotlow(low, swingLen, swingLen)
// Structure arrays
var float[] swingH = array.new_float()
var float[] swingL = array.new_float()
// BOS / CHoCH logic (simplified preview)
bullBOS = close > ta.valuewhen(ph, ph, 0)
bearBOS = close < ta.valuewhen(pl, pl, 0)
// Plot labels
plotshape(ph and showLabels, style=shape.labeldown,
location=location.abovebar, color=color.red,
text="HH", textcolor=color.white, size=size.tiny)
plotshape(pl and showLabels, style=shape.labelup,
location=location.belowbar, color=color.green,
text="LL", textcolor=color.white, size=size.tiny)
// Alert conditions
alertcondition(bullBOS, "Bullish BOS", "EFX Structure: Bullish BOS detected")
alertcondition(bearBOS, "Bearish BOS", "EFX Structure: Bearish BOS detected")