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
At scheduled trigger times or recurring two-hour intervals, it creates a central reference box flanked by upper and lower breakout stop lines, followed by three tiered take-profit target zones. Alerts trigger when price closes beyond the buy or sell stop levels. User inputs allow adjustment of trigger timing, box height, gap spacing, and visual styling.
Central reference price box with configurable dollar height
Buy and sell stop breakout trigger levels with buffer offsets
Three tiered take-profit target boxes above and below the range
Scheduled daily timing or recurring two-hour zone generation
Customizable box transparency, label sizing, and breakout alerts
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Trigger Hour (UTC+1)
int
7
triggerHour
Trigger Minute
int
0
triggerMinute
Extension Minutes (Left/Right)
int
10
extensionMinutes
Plot Every 2 Hours
bool
true
enable2HourPlot
Gray Box Height (USD)
float
10.0
boxHeight
Show Gray Box
bool
true
showGrayBox
Gray Box Color
color
color.new(color.gray, 70)
grayBoxColor
Buffer: Gray Box to Stop Lines (USD)
float
2.0
stopLineBuffer
Gap: Stop Lines to TP Zones (USD)
float
2.0
stopToTPGap
Gap Between TP Zones (USD)
float
1.0
tpZoneGap
Show Dashed Lines (Buy/Sell Stop)
bool
true
showDashedLines
Dashed Line Color
color
color.new(color.white, 30)
dashedLineColor
Show all 28 settings
Setting
Type
Default
Variable
Dashed Line Width
int
1
dashedLineWidth
Show TP Zones
bool
true
showTPZones
TP1 Zone Height (USD)
float
4.0
tp1Height
TP2 Zone Height (USD)
float
4.0
tp2Height
TP3 Zone Height (USD)
float
4.0
tp3Height
TP1 Up Color
color
#26a69a
tp1ColorUp
TP1 Down Color
color
#b71c1c
tp1ColorDn
TP2 Up Color
color
#00897b
tp2ColorUp
TP2 Down Color
color
#880e4f
tp2ColorDn
TP3 Up Color
color
#004d40
tp3ColorUp
TP3 Down Color
color
#4a148c
tp3ColorDn
TP Box Transparency
int
85
tpBoxTransparency
TP Border Transparency
int
50
tpBorderTransparency
Show Labels
bool
true
showLabels
Label Size
string
normal
labelSize
Enable Alerts
bool
true
enableAlerts
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
The ORB Pro indicator calculates and plots Opening Range Breakout levels, stop-loss and take-profit zones, signal labels, and an status dashboard on the price chart. Built on academic research, it evaluates trades using an opening-candle direction filter, open
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
This indicator tracks session-specific price ranges and rejection patterns directly on the main price chart. Based on the South African Standard Time (SAST) session window, it establishes reference high and low boundaries from a lookback period and monitors pr