1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
174 lines of Pine Script v5 from OB_EMA_hop_nhat.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Mc War OB + EMA visualizes bullish and bearish order block zones as customizable boxes, identifies confluence between order blocks and fair value gaps, and tracks mitigated blocks by recoloring broken zones. User settings control order block styling, label visibility, mitigation coloring, and box quantities.
Bullish and bearish order block box visualization
Mitigated order block recoloring
EMA 34 and EMA 89 trend overlays
Order block and fair value gap confluence detection
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
OB
bool
true
plotOB
Bullish OB Color
color
color.new(color.green, 90)
obBullColor
Bearish OB Color
color
color.new(color.red, 90)
obBearColor
OB Box Border Style
string
line.style_solid
obBoxBorder
OB Border Box transparent
int
1
obBorderTransparency
Số lượng OB
int
1000000
obMaxBoxSet
Chỉnh màu OB bị phá qua
bool
true
filterMitOB
Chọn màu OB bị phá qua
color
color.new(color.gray, 90)
mitOBColor
OB Label
bool
false
plotLabelOB
Color
color
color.gray
obLabelColor
Size
string
size.small
obLabelSize
MC War
bool
false
bosBoxFlag
Show all 16 settings
Setting
Type
Default
Variable
Bao nhiêu điểm
int
10
bosBoxLength
Đánh dấu có OB+FVG
bool
true
plotOBFVG
Bullish OB+FVG Color
color
color.new(color.green, 0)
obfvgBullColor
Bearish OB+FVG Color
color
color.new(color.red, 0)
obfvgBearColor
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.
This indicator combines Centered Triangular Moving Average (TMA) bands offset by Average True Range (ATR) with Smart Money Concepts (SMC) market structure analysis on the price chart. It calculates upper, center, and lower bands alongside swing and internal ma
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
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
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
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
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