indicator · on price · open source

Smart Money Composite

Deepwick · @deepwickv1Updated 2 Oct 2026▲ 0 users
Running…
Loading chart…

About

Smart Money Composite — colours each bar based on whether it broke the most recent confirmed swing high (BOS up = green) or swing low (BOS down = red). The prior swing levels are plotted so structure is visible.

  • BOS + retest = high-quality entry.
  • Two BOS in the same direction = trending day.

Source code

//@version=5
indicator("Smart Money Composite", overlay=true)
ph = ta.pivothigh(high, 5, 5)
pl = ta.pivotlow(low, 5, 5)
priorH = ta.valuewhen(not na(ph), high[5], 0)
priorL = ta.valuewhen(not na(pl), low[5], 0)
bosUp = close > priorH
bosDn = close < priorL
p_Prior_High = plot(priorH, "Prior High", color=color.green, style=plot.style_linebr)
p_Prior_Low = plot(priorL, "Prior Low", color=color.red, style=plot.style_linebr)
alertcondition(bosUp and not bosUp[1], "BOS up", "Smart money break of structure to the upside")
alertcondition(bosDn and not bosDn[1], "BOS down", "Smart money break of structure to the downside")

Comments

No comments yet.

Sign in to comment.