OPEN-SOURCE SCRIPT

Breakout Liquidity Strategy

47
//version=5
indicator("Breakout Liquidity Strategy", overlay=true)

// ===== Inputs =====
lenVol = input.int(20, "Volume MA")
lenMFI = input.int(14, "MFI Length")

// ===== Indicators =====
volMA = ta.sma(volume, lenVol)
mfi = ta.mfi(hlc3, lenMFI)
vwap = ta.vwap(close)

// ===== Conditions =====
liquidityIn = mfi > 50 and volume > volMA
priceBreak = close > ta.highest(high, 20)[1]
aboveVWAP = close > vwap

breakout = liquidityIn and priceBreak and aboveVWAP

// ===== Plot =====
plotshape(breakout, title="BREAKOUT", style=shape.labelup,
location=location.belowbar, color=color.new(color.green, 0), text="🚀")

plot(vwap, color=color.orange, linewidth=2, title="VWAP")

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.