Indicator · Pine Script v5 · On the chart

MSG Enhanced Range Breakout System

by alboogycOdR

This indicator identifies and plots custom time-based ranges on the price chart using GMT hours, monitoring for price breakouts within a configurable time window.

View on GitHub

GitHub stars6on the repository
Pine versionv5runs as is
Lines of code495
Settings33inputs
LicenceNone stated
Last update7 months ago16 Mar 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

When price breaks beyond the high or low of the range before expiration, it displays directional signals and updates the range boundary colors. It also overlays major trading sessions including Asia, London, and New York. Settings allow users to customize session times, breakout timeout hours, visual risk levels, and signal arrows.

Details

Published by

alboogycOdR on GitHub

Draws

On the price chart

Markets

Forex, Gold

Timeframes

M1-M5, M15-H1

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
Risk LevelstringLow RiskriskLevel
Number of Orders (Visual Only)int1numberOfOrders
Show Signal ArrowsbooltrueshowSignalArrows
Show Risk ZonesbooltrueshowRiskZones
Range Start Hour GMTint23rangeStartHour
Range Start Minuteint0rangeStartMinute
Range End Hour GMTint1rangeEndHour
Range End Minuteint0rangeEndMinute
Range Color (No Breakout)colorcolor.yellowrangeColorDefault
Range Color (Buy Signal)colorcolor.new(color.green, 0)rangeColorBuy
Range Color (Sell Signal)colorcolor.new(color.red, 0)rangeColorSell
Range Line Widthint2rangeLineWidth
Show all 33 settings
SettingTypeDefaultVariable
Breakout Line Widthint4breakoutLineWidth
Hours After Range to Allow Breakoutint4hoursAfterRangeForBreakout
Show Timeout LinebooltrueshowTimeoutLine
Gray Out Expired RangesbooltruegrayOutExpiredRanges
Show Trading SessionsbooltrueshowSessions
Show Asia SessionbooltrueshowAsiaSession
Show London SessionbooltrueshowLondonSession
Show New York SessionbooltrueshowNewYorkSession
Show Session LabelsbooltrueshowSessionLabels
Asia Session Colorcolorcolor.new(color.blue, 80)asiaColor
London Session Colorcolorcolor.new(color.green, 80)londonColor
New York Session Colorcolorcolor.new(color.orange, 80)nyColor
Asia Start Hour GMTint0asiaStartHour
Asia End Hour GMTint9asiaEndHour
London Start Hour GMTint8londonStartHour
London End Hour GMTint17londonEndHour
New York Start Hour GMTint13nyStartHour
New York End Hour GMTint22nyEndHour
Show DashboardbooltrueshowDashboard
Dashboard PositionstringTop RightdashboardPosition
Arrow SizestringNormalarrowSize
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 8 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

ORB Pro - Research-Based ORB

by Mrshahidali420
16 stars

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

Indicator v6 BreakoutSessions & time Repaints
Updated 3 months ago · None stated GitHub repository of ORB Pro - Research-Based ORB

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 2 weeks 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

Gold Breakout Trader

by eddiebelaval
7 stars

Plots timed breakout ranges directly on the price chart, designed for gold trading using dollar-based spacing. At scheduled trigger times or recurring two-hour intervals, it creates a central reference box flanked by upper and lower breakout stop lines, follow

Indicator v6 BreakoutSupport & resistance
Updated 3 months ago · None stated GitHub repository of Gold Breakout Trader

More Breakout scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

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

Compare brokers