1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
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
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
BTMM Stop Hunt Detection tracks key liquidity levels, Optimal Trade Entry (OTE) zones, and premium or discount areas based on swing points and Fibonacci retracements. Users can customize hunt sensitivity, minimum liquidity levels, and confirmation bar counts, as well as toggle individual Fibonacci levels and zone displays. It highlights stop hunt signals to assist traders following the Beat the Market Maker methodology.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Hunt Sensitivity
float
1.0
hunt_sensitivity
Min Liquidity Level
int
3
min_liquidity_level
Hunt Confirmation Bars
int
3
hunt_confirmation_bars
Show Liquidity Levels
bool
true
show_liquidity_levels
Show Hunt Zones
bool
true
show_hunt_zones
Extend Levels
bool
true
extend_levels
Asian High
source
close
asian_hi_src
Asian Low
source
close
asian_lo_src
EMA 13
source
close
ema13_src
EMA 50
source
close
ema50_src
EMA 200
source
close
ema200_src
Show Hunt Signals
bool
true
show_hunt_signals
Show all 37 settings
Setting
Type
Default
Variable
Show Liquidity Sweep
bool
true
show_liquidity_sweep
Enable Fibonacci Levels
bool
true
enable_fibonacci
Enable Premium/Discount Zones
bool
true
enable_premium_discount
Swing Point Lookback
int
20
swing_lookback
OTE Zone Sensitivity
float
1.0
ote_sensitivity
Show OTE Labels
bool
true
show_ote_labels
Show 61.8% Level
bool
true
show_fib_618
Show 78.6% Level
bool
true
show_fib_786
Show 70.5% Level (OTE)
bool
true
show_fib_705
Show 79% Level (OTE)
bool
true
show_fib_79
Extend Fibonacci Lines
bool
true
fib_extension
Auto Fibonacci Detection
bool
true
auto_fib_detection
Premium Zone Threshold (%)
float
70.0
premium_threshold
Discount Zone Threshold (%)
float
30.0
discount_threshold
Show Premium/Discount Zones
bool
true
show_pd_zones
Zone Transparency
int
80
pd_zone_transparency
OTE Zone Color
color
color.new(color.yellow, 70)
ote_zone_color
Premium Zone Color
color
color.new(color.red, pd_zone_transparency)
premium_zone_color
Discount Zone Color
color
color.new(color.green, pd_zone_transparency)
discount_zone_color
Fibonacci Line Width
int
1
fib_line_width
Show Price Labels on Levels
bool
true
show_price_labels
OTE Zone Entry Alerts
bool
true
enable_ote_alerts
Premium/Discount Alerts
bool
true
enable_pd_alerts
Fibonacci Level Touch Alerts
bool
true
enable_fib_touch_alerts
Alert Frequency
string
once_per_bar
alert_frequency
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 overlay indicator finds pivot highs and lows on the price chart and compares the last two highs and the last two lows. When the percentage difference between a pair is below the Equal HL threshold, it treats them as equal levels and draws a box. Left and
This indicator plots labels on the TradingView price chart to mark ARK Invest's buy and sell trades for the DE stock. Buy transactions appear in green with X1 or X2 multipliers showing the number of ARK ETFs involved on the same day; sells appear in red. The m
This Pine Script indicator plots a ZigZag on the price chart. It identifies reversal points when price moves more than a set percentage from the last pivot. The script calculates forecasts using zigzag data and labels detected geometric patterns including harm
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
Indicatorv6SMC / ICT / price actionSessions & time
This indicator implements the Fractal Model concept to plot market structure shifts, liquidity sweeps, and Change in State of Delivery (CISD) levels. It overlays custom higher-timeframe candle previews, open prices, and time markers directly on the price chart
This indicator calculates pivot highs and pivot lows to detect liquidity sweeps and Swing Failure Patterns. It identifies when price breaks past recent key swing highs or lows within a configurable historical window, then looks for a quick reversal or change i