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
A range is flagged when the recent high-low span is small against its longer average and the bars overlap enough. A daily EMA, default 100 periods, sets the trend bias, and an hourly EMA, default 21, provides a trailing reference. Inputs control the squeeze factor, overlap ratio and range boxes. It is an indicator only, without orders.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Khung Filter TF (EMA D1)
timeframe
D
i_filterTF
Chu kỳ EMA Filter (D1)
int
100
i_emaPeriod
Khung Trailing TF (EMA H1)
timeframe
60
i_trailTF
Chu kỳ EMA Trailing (H1)
int
21
i_trailEMA
Số nến Range (Range Period)
int
20
i_rangePeriod
Số nến trung bình (Avg Period)
int
100
i_avgPeriod
Hệ số nén (Squeeze)
float
0.85
i_threshold
Tỷ lệ Overlap (%)
float
0.60
i_overlapPct
Khoảng cách Overlap tối thiểu
int
5
i_minGap
Hiển thị Range Box
bool
true
i_showBoxes
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 marks the New York initial balance and a configurable opening range on the price chart and reports live range statistics in two tables. It builds an IB box for a default 09:30–10:30 ET window, an ORB box from 09:30 for a set number of mi
This indicator calculates and plots session ranges and key breakout levels for DAX futures directly on the price chart. It defines the overnight Globex session, the Frankfurt pre-market range, and the regular trading hours open using European timezone settings
Point-Clip Unified Indicator plots breakout and directional labels on the price chart. It scores volume spikes against a volume average, range or opening-range breaks, optional VWAP or session-anchored VWAP, fast and slow EMA trend, and a higher-timeframe EMA
This indicator plots several New York opening-range breakout models on the price chart and can also show a combined confidence-scored signal. Enabled models include classic Crabel, a five-minute scalper, a standard fifteen-minute breakout, and a gold variant,
This indicator plots opening range breakout levels across multiple timeframes, including five, fifteen, thirty, and sixty minutes, directly on the price chart. It also displays the session open and overnight high and low levels. The script calculates an openin
FX Market Sessions highlights distinct trading sessions, such as London, New York, and Tokyo, directly on the main price chart. It draws background boxes for each active session and optionally plots opening ranges, Fibonacci retracement levels, and session ext