Indicator · Pine Script v5 · On the chart

Combined Indicators: SMC + OBD + 7MA

by sahansbandara

An overlay indicator that combines smart money concepts with order blocks and moving averages.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code1,887
Settings40inputs
LicenceNone stated
Last update5 months ago11 May 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  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

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Combined Indicators: SMC + OBD + 7MA draws swing and internal market structure with sweep and bubble options, volumetric order blocks that show recent buy and sell activity, optional breaker blocks and metrics, and limits calculation to a set number of bars for speed. Settings cover structure mode and length, number of order blocks, construction and mitigation method, colours and label sizes.

Details

Published by

sahansbandara on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

SMC / ICT / price action, Support & resistance, Moving averages

Markets

Any symbol

Timeframes

Any timeframe

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
Windowbooltruewindowsis
mswindowint5000mswindow
SwingbooltrueshowSwing
swingLimitint100swingLimit
swingcssupcolor#089981swingcssup
swingcssdncolor#f23645swingcssdn
Mapping StructureboolfalseshowMapping
mappingStylestring----mappingStyle
mappingcsscolorcolor.silvermappingcss
Color Candlesboolfalsecandlecss
mstextstringTinymstext
Algorithmic LogicstringAdjusted Pointsmsmode
Show all 40 settings
SettingTypeDefaultVariable
mslenint5mslen
Build Sweep (x)booltruebuildsweep
Bubblesbooltruemsbubble
Show Lastbooltrueobshow
oblastint5oblast
obupcscolorcolor.new(#089981, 90)obupcs
obdncscolorcolor.new(#f23645, 90)obdncs
Show Buy/Sell Activitybooltrueobshowactivity
obactupcolorcolor.new(#089981, 50)obactup
obactdncolorcolor.new(#f23645, 50)obactdn
Show Breakersboolfalseobshowbb
bbupcolorcolor.new(#089981, 100)bbup
bbdncolorcolor.new(#f23645, 100)bbdn
ConstructionstringLengthobmode
lenint5len
Mitigation MethodstringCloseobmiti
Metric SizestringNormalobtxt
Show Metricsbooltrueshowmetric
Show Mid-Linebooltrueshowline
Hide Overlapbooltrueoverlap
wichlapstringRecentwichlap
fvg_enableboolfalsefvg_enable
what_fvgstringFVGwhat_fvg
Show Lastint5fvg_num
fvg_upcsscolorcolor.new(#089981, 80)fvg_upcss
fvg_dncsscolorcolor.new(#f23645, 80)fvg_dncss
fvgbbupcolorcolor.new(#089981, 100)fvgbbup
fvgbbdncolorcolor.new(#f23645, 100)fvgbbdn
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

HH-LL Buy/Sell + EMA

by vinitpatil519
5 stars

This overlay indicator classifies market structure with an ATR-based ZigZag that marks higher highs, higher lows, lower highs, and lower lows. A state machine plots buy and sell labels on the confirmation bar, not on the earlier pivot, and by default waits for

Indicator v5 TrendSupport & resistance
Updated 2 months ago · None stated GitHub repository of HH-LL Buy/Sell + EMA

Imbalance + 3EMA

by linkcla
4 stars

This overlay indicator plots three exponential moving averages on the price chart and marks imbalance zones with boxes. Each EMA has its own length, color, and visibility toggle, with defaults of 10, 50, and 200. Fair value gaps are detected across three bars

Indicator v5 Moving averagesSMC / ICT / price action
Updated 2 years ago · None stated GitHub repository of Imbalance + 3EMA
4 stars

This indicator computes the Watchtower Axis as a 257-period weighted moving average of closing prices to establish the main trend baseline. It defines volatility gates using the highest high and lowest low over 463 periods, along with a 377-period exponential

Indicator v6 TrendMoving averages
Updated 10 months ago · MIT GitHub repository of Miela Labs | John Dee's Watchtower
3 stars

This indicator detects bearish M and bullish W chart formations on the price chart based on Steve Mauro's Beat The Market Maker (BTMM) methodology. It emphasizes second-leg entries confirmed by a clean close across the 13 EMA, volume filters, and minimum ATR p

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of BTMM M&W Pattern Detection

This indicator identifies Smart Money Concepts structure alongside a four-line moving average ribbon on the price chart. It detects swing highs and lows across a user-defined lookback period, generating price action labels such as higher highs, lower highs, hi

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of FluidTrades - SMC Lite + Moving Average Ribbon

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