Indicator · Pine Script v6 · On the chart

Primera Vela NY - 5m to 1m

by dtheran1

An opening range tool for the price chart.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code352
Settings20inputs
LicenceNone stated
Last update6 months ago17 Apr 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

dtheran1 on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Sessions & time, Breakout

Markets

Any symbol

Timeframes

M1-M5

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Zona horariastringAmerica/Bogotatz
Hora aperturaint8openHour
Minuto aperturaint30openMinute
Minutos de rango inicialint5rangeMinutes
Ventana operativa (minutos)int90tradeWindowMinutes
Risk/Rewardfloat1.0rr
Ruptura valida por cierrebooltrueconfirmByClose
Esperar retesteo del nivel rotobooltruerequireRetest
Max operaciones por diaint1maxTradesPerDay
Mostrar caja rango 5mbooltrueshowRangeBox
Mostrar lineas Maximo/Minimo 5MbooltrueshowRangeLines
Mostrar caja TP/SLbooltrueshowTradeBoxes
Show all 20 settings
SettingTypeDefaultVariable
Ancho visual TP/SL (barras)int45projectionBars
Color caja rangocolorcolor.new(color.gray, 88)cRange
Color Maximo 5Mcolorcolor.new(color.white, 0)cMax
Color Minimo 5Mcolorcolor.new(color.white, 0)cMin
Color Longcolorcolor.new(color.lime, 0)cLong
Color Shortcolorcolor.new(color.red, 0)cShort
Color TPcolorcolor.new(color.green, 82)cTP
Color SLcolorcolor.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.

Similar Pine Scripts

IB / ORB Live Stats

by TamaraKGreen
46 stars

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

Indicator v6 Sessions & timeBreakout
Updated 7 weeks ago · None stated GitHub repository of IB / ORB Live Stats

Zen-DAX GX

by Zen-Tim
29 stars

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

Indicator v5 Sessions & timeBreakout
Updated 2 weeks ago · MIT GitHub repository of Zen-DAX GX
23 stars

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

Indicator v6 BreakoutVolume Repaints
Updated 3 weeks ago · Custom licence GitHub repository of Point-Clip Unified Indicator

ORB Multi-Model Indicator

by Mrshahidali420
16 stars

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,

Indicator v6 BreakoutSessions & time Repaints
Updated 3 months ago · None stated GitHub repository of ORB Multi-Model Indicator

Nexural ORB

by JasonTeixeira
9 stars

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

Indicator v6 BreakoutSessions & time
Updated 13 days ago · Custom licence GitHub repository of Nexural ORB

FX Market Sessions

by itmakesyousick
7 stars

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

Indicator v5 Sessions & timeSupport & resistance
Updated 3 years ago · None stated GitHub repository of FX Market Sessions

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers