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 a set time in a chosen time zone, by default 8:30 in the Bogota zone, it records the high and low of the first five minutes and draws them as a box and lines. During a trading window of 90 minutes it signals a break of that range, optionally requiring a candle close beyond it and a retest, and limits trades per day. Take profit and stop loss boxes are projected from a risk-reward ratio.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Zona horaria
string
America/Bogota
tz
Hora apertura
int
8
openHour
Minuto apertura
int
30
openMinute
Minutos de rango inicial
int
5
rangeMinutes
Ventana operativa (minutos)
int
90
tradeWindowMinutes
Risk/Reward
float
1.0
rr
Ruptura valida por cierre
bool
true
confirmByClose
Esperar retesteo del nivel roto
bool
true
requireRetest
Max operaciones por dia
int
1
maxTradesPerDay
Mostrar caja rango 5m
bool
true
showRangeBox
Mostrar lineas Maximo/Minimo 5M
bool
true
showRangeLines
Mostrar caja TP/SL
bool
true
showTradeBoxes
Show all 20 settings
Setting
Type
Default
Variable
Ancho visual TP/SL (barras)
int
45
projectionBars
Color caja rango
color
color.new(color.gray, 88)
cRange
Color Maximo 5M
color
color.new(color.white, 0)
cMax
Color Minimo 5M
color
color.new(color.white, 0)
cMin
Color Long
color
color.new(color.lime, 0)
cLong
Color Short
color
color.new(color.red, 0)
cShort
Color TP
color
color.new(color.green, 82)
cTP
Color SL
color
color.new(color.red, 78)
cSL
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