Indicator · Pine Script v6 · On the chart

BAKOME ICT Institutional

by BAKOME-Hub

BAKOME ICT Institutional is an overlay indicator that implements Inner Circle Trader concepts directly on the price chart.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code185
Settings11inputs
LicenceMIT
Last update5 months ago14 May 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

185 lines of Pine Script v6 from BAKOME_ICT_Institutional.pine, published under MIT. Keep the author's credit and licence lines when you reuse it.

BAKOME_ICT_Institutional.pine
//@version=6
indicator("BAKOME ICT INSTITUTIONAL", overlay=true, max_labels_count=500, max_boxes_count=100, max_lines_count=500)

// ═══════════════════════════════════════════════════════════════════════════
//  INPUTS
// ═══════════════════════════════════════════════════════════════════════════
showFVG          = input.bool(true, "Show FVG")
showStructure    = input.bool(true, "Show BOS / CHOCH")
showLiquidity    = input.bool(true, "Show Liquidity")
showSessions     = input.bool(true, "Show ICT Sessions (Silver Bullet)")
showPDH_PDL      = input.bool(true, "Show Previous Day High/Low")
showPWH_PWL      = input.bool(true, "Show Previous Week High/Low")
showNYOpen       = input.bool(true, "Show NY Open")
showSignals      = input.bool(true, "Show Signals")
showDashboard    = input.bool(true, "Show Dashboard")

atrPeriod        = input.int(14, "ATR Period")
riskMultiplier   = input.float(2.0, "TP Multiplier (x ATR)")

// ═══════════════════════════════════════════════════════════════════════════
//  TREND ENGINE (EMA 50/200)
// ═══════════════════════════════════════════════════════════════════════════
ema50  = ta.ema(close, 50)
ema200 = ta.ema(close, 200)
bullTrend = ema50 > ema200
bearTrend = ema50 < ema200

plot(ema50,  "EMA50",  color=color.new(color.aqua, 0), linewidth=2)
plot(ema200, "EMA200", color=color.new(color.orange, 0), linewidth=2)

// ═══════════════════════════════════════════════════════════════════════════
//  MARKET STRUCTURE (BOS / CHOCH)
// ═══════════════════════════════════════════════════════════════════════════
swingHigh = ta.pivothigh(high, 3, 3)
swingLow  = ta.pivotlow(low, 3, 3)

var float lastHigh = na
var float lastLow  = na
if not na(swingHigh)
    lastHigh := swingHigh
if not na(swingLow)
    lastLow := swingLow

bosBull = close > lastHigh and not na(lastHigh)
bosBear = close < lastLow  and not na(lastLow)
chochBull = bosBull and bearTrend
chochBear = bosBear and bullTrend

if showStructure and bosBull
    label.new(bar_index, high, "BOS ↑", style=label.style_label_up, color=color.green, textcolor=color.white)
if showStructure and bosBear
    label.new(bar_index, low,  "BOS ↓", style=label.style_label_down, color=color.red, textcolor=color.white)
if showStructure and chochBull
    label.new(bar_index, high, "CHOCH ↑", style=label.style_label_up, color=color.lime, textcolor=color.black)
if showStructure and chochBear
    label.new(bar_index, low,  "CHOCH ↓", style=label.style_label_down, color=color.maroon, textcolor=color.white)

// ═══════════════════════════════════════════════════════════════════════════
//  FAIR VALUE GAPS (FVG)
// ═══════════════════════════════════════════════════════════════════════════
bullFVG = low > high[2]
bearFVG = high < low[2]

if showFVG and bullFVG
    box.new(bar_index-2, low, bar_index, high[2],
            bgcolor=color.new(color.green, 85), border_color=color.green)
if showFVG and bearFVG
    box.new(bar_index-2, low[2], bar_index, high,
            bgcolor=color.new(color.red, 85), border_color=color.red)

// ═══════════════════════════════════════════════════════════════════════════
//  LIQUIDITY SWEEPS
// ═══════════════════════════════════════════════════════════════════════════
buyLiquidity  = low  < ta.lowest(low, 10)[1] and close > open
sellLiquidity = high > ta.highest(high, 10)[1] and close < open

if showLiquidity and buyLiquidity
    label.new(bar_index, low,  "BUY SIDE LIQUIDITY", style=label.style_label_up,   color=color.teal,   textcolor=color.white)
if showLiquidity and sellLiquidity
    label.new(bar_index, high, "SELL SIDE LIQUIDITY", style=label.style_label_down, color=color.purple, textcolor=color.white)

// ═══════════════════════════════════════════════════════════════════════════
//  PREVIOUS DAY / WEEK LEVELS
// ═══════════════════════════════════════════════════════════════════════════
pdh = request.security(syminfo.tickerid, "D", high[1])
pdl = request.security(syminfo.tickerid, "D", low[1])
pwh = request.security(syminfo.tickerid, "W", high[1])
pwl = request.security(syminfo.tickerid, "W", low[1])
nyOpen = request.security(syminfo.tickerid, "D", open)

plot(showPDH_PDL ? pdh : na, "PDH", color=color.green,  linewidth=1, style=plot.style_linebr)
plot(showPDH_PDL ? pdl : na, "PDL", color=color.red,    linewidth=1, style=plot.style_linebr)
plot(showPWH_PWL ? pwh : na, "PWH", color=color.blue,   linewidth=2)
plot(showPWH_PWL ? pwl : na, "PWL", color=color.orange, linewidth=2)
plot(showNYOpen   ? nyOpen : na, "NY Open", color=color.yellow, linewidth=2)

// ═══════════════════════════════════════════════════════════════════════════
//  ICT SILVER BULLET SESSIONS (Heures NY)
// ═══════════════════════════════════════════════════════════════════════════
sessionLondon = not na(time(timeframe.period, "0300-0400"))
sessionNYAM   = not na(time(timeframe.period, "1000-1100"))
sessionNYPM   = not na(time(timeframe.period, "1400-1500"))

if showSessions
    bgcolor(sessionLondon ? color.new(color.blue,  92) : na)
    bgcolor(sessionNYAM   ? color.new(color.green, 92) : na)
    bgcolor(sessionNYPM   ? color.new(color.orange,92) : na)

// ═══════════════════════════════════════════════════════════════════════════
//  SIGNAL ENGINE (tous les ICT confluents)
// ═══════════════════════════════════════════════════════════════════════════
buySignal  = bullTrend and bullFVG and buyLiquidity and bosBull
sellSignal = bearTrend and bearFVG and sellLiquidity and bosBear

// ═══════════════════════════════════════════════════════════════════════════
//  ATR TP/SL
// ═══════════════════════════════════════════════════════════════════════════
atr = ta.atr(atrPeriod)
buySL = close - atr
buyTP = close + atr * riskMultiplier
sellSL = close + atr
sellTP = close - atr * riskMultiplier

// ═══════════════════════════════════════════════════════════════════════════
//  SIGNAL LABELS & TP/SL LINES (uniquement sur la barre du signal)
// ═══════════════════════════════════════════════════════════════════════════
if showSignals
    if buySignal
        label.new(bar_index, low, "BUY\nTP: " + str.tostring(buyTP, "#.##") + "\nSL: " + str.tostring(buySL, "#.##"),
                  style=label.style_label_up, color=color.lime, textcolor=color.black)
    if sellSignal
        label.new(bar_index, high, "SELL\nTP: " + str.tostring(sellTP, "#.##") + "\nSL: " + str.tostring(sellSL, "#.##"),
                  style=label.style_label_down, color=color.red, textcolor=color.white)

// Lignes TP/SL (affichées seulement si le signal est présent, disparaissent après)
var line buyTPLine = na, var line buySLLine = na, var line sellTPLine = na, var line sellSLLine = na
if buySignal
    line.delete(buyTPLine)
    line.delete(buySLLine)
    buyTPLine := line.new(bar_index, buyTP, bar_index+1, buyTP, color=color.green, width=2, style=line.style_dotted)
    buySLLine := line.new(bar_index, buySL, bar_index+1, buySL, color=color.red,   width=2, style=line.style_dotted)
if sellSignal
    line.delete(sellTPLine)
    line.delete(sellSLLine)
    sellTPLine := line.new(bar_index, sellTP, bar_index+1, sellTP, color=color.green, width=2, style=line.style_dotted)
    sellSLLine := line.new(bar_index, sellSL, bar_index+1, sellSL, color=color.red,   width=2, style=line.style_dotted)

// ═══════════════════════════════════════════════════════════════════════════
//  DASHBOARD
// ═══════════════════════════════════════════════════════════════════════════
if showDashboard and barstate.islast
    var table dash = table.new(position.top_right, 2, 9, bgcolor=color.new(color.black, 85))
    table.cell(dash, 0, 0, "BAKOME ICT", text_color=color.yellow)
    table.cell(dash, 1, 0, syminfo.ticker, text_color=color.yellow)
    table.cell(dash, 0, 1, "TREND", text_color=color.white)
    table.cell(dash, 1, 1, bullTrend ? "BULL" : "BEAR", text_color=bullTrend ? color.lime : color.red)
    table.cell(dash, 0, 2, "FVG", text_color=color.white)
    table.cell(dash, 1, 2, bullFVG ? "BULLISH" : (bearFVG ? "BEARISH" : "NONE"), text_color=color.white)
    table.cell(dash, 0, 3, "LIQUIDITY", text_color=color.white)
    table.cell(dash, 1, 3, buyLiquidity ? "BUY SIDE" : (sellLiquidity ? "SELL SIDE" : "NONE"), text_color=color.white)
    table.cell(dash, 0, 4, "SESSION", text_color=color.white)
    var sessionText = ""
    if sessionLondon
        sessionText := "LONDON"
    else if sessionNYAM
        sessionText := "NY AM"
    else if sessionNYPM
        sessionText := "NY PM"
    else
        sessionText := "OFF"
    table.cell(dash, 1, 4, sessionText, text_color=color.white)
    table.cell(dash, 0, 5, "ATR", text_color=color.white)
    table.cell(dash, 1, 5, str.tostring(atr, "#.##"), text_color=color.white)
    table.cell(dash, 0, 6, "SIGNAL", text_color=color.white)
    table.cell(dash, 1, 6, buySignal ? "BUY" : (sellSignal ? "SELL" : "WAIT"), text_color= buySignal ? color.lime : (sellSignal ? color.red : color.gray))
    table.cell(dash, 0, 7, "BOS/CHOCH", text_color=color.white)
    table.cell(dash, 1, 7, bosBull ? "BOS ↑" : (bosBear ? "BOS ↓" : (chochBull ? "CHOCH ↑" : (chochBear ? "CHOCH ↓" : "—"))), text_color=color.white)
    table.cell(dash, 0, 8, "MODEL", text_color=color.white)
    table.cell(dash, 1, 8, "ICT/SMC", text_color=color.orange)

// ═══════════════════════════════════════════════════════════════════════════
//  ALERTS
// ═══════════════════════════════════════════════════════════════════════════
alertcondition(buySignal,  title="BUY SIGNAL (ICT)", message="BAKOME ICT BUY SIGNAL")
alertcondition(sellSignal, title="SELL SIGNAL (ICT)", message="BAKOME ICT SELL SIGNAL")

Overview

BAKOME ICT Institutional calculates 50 and 200 EMAs for trend direction, identifies market structure breaks and changes of character using pivot points, and detects Fair Value Gaps and liquidity sweeps. It highlights Silver Bullet sessions alongside previous daily and weekly highs and lows. Input settings allow users to toggle individual visual elements and adjust ATR parameters. The indicator plots labels, level lines, and an onscreen dashboard.

Details

Published by

BAKOME-Hub on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

SMC / ICT / price action, Support & resistance, Sessions & time, Screeners & dashboards

Markets

Forex, Crypto, Indices

Timeframes

M1-M5, M15-H1

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Show FVGbooltrueshowFVG
Show BOS / CHOCHbooltrueshowStructure
Show LiquiditybooltrueshowLiquidity
Show ICT Sessions (Silver Bullet)booltrueshowSessions
Show Previous Day High/LowbooltrueshowPDH_PDL
Show Previous Week High/LowbooltrueshowPWH_PWL
Show NY OpenbooltrueshowNYOpen
Show SignalsbooltrueshowSignals
Show DashboardbooltrueshowDashboard
ATR Periodint14atrPeriod
TP Multiplier (x ATR)float2.0riskMultiplier
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

Golden Bullet Strategy

by TradersPost
218 stars

The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh

Indicator v6 SMC / ICT / price actionSessions & time
Updated 3 months ago · None stated GitHub repository of Golden Bullet Strategy

This indicator detects and draws the first Fair Value Gap (FVG) that forms in each hourly session based on a selected lower timeframe, with specialized handling for Regular Trading Hours (RTH) confluence windows. It draws FVG range boxes, midpoint lines, hourl

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints

Clusterbreak

by Jferheart
15 stars

This indicator identifies Break of Structure (BOS) and Market Structure Shift (MSS) zones, plotting automated bracket levels on the price chart. It triggers signals when a reversal breaks a swing point formed inside an opposing zone, projecting stop loss and t

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 weeks ago · None stated GitHub repository of Clusterbreak

MyTTFM - Clean

by dbruce1990
12 stars

MyTTFM - Clean draws a higher-timeframe candle overlay on the price chart and marks related ICT fractal structure. It plots configurable HTF candles, period separator lines, midpoint levels, a T-Spot box, and labels for recent C2 and C3 patterns plus swept lev

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of MyTTFM - Clean

Apex Protocol Assistant

by alboogycOdR
6 stars

Apex Protocol Assistant is a Smart Money Concepts indicator designed for session-based trading. It determines market direction using a higher timeframe Exponential Moving Average and highlights Asian range boundaries alongside London and New York killzones. Th

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Apex Protocol Assistant

This overlay indicator researches multi-timeframe setup zones for NQ and ES futures on the price chart. It builds chart, five-minute through four-hour zones, including transformed IFVG and BB zones, scores them, and tracks liquidity pools and structure. During

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Futures Setups Research

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers