Code Snippets
SOFLMARKET Opening Range
Opening range for TradingView with breakouts, retests, failed breaks, range-height targets and alerts.
What you get: 3 files · 40.82 KB · TXT
See purchase optionsProduct description
What it is
SOFLMARKET Opening Range is a Pine Script v6 indicator for TradingView. It builds the opening range of a trading session and marks what happens after it.
The opening range is the first N minutes after the session start. The indicator draws the range box, the range high and low, and then marks a confirmed breakout, a retest of the broken level, a failed breakout when price closes back inside the range, and optional targets projected from the range height.
It is built for day traders who want a clear, visual map of the first move of the session: where the range was, whether it was broken, whether the break was retested, and whether it held.
What is inside
Session
- Session start in 24-hour HHMM (default 0930).
- Selectable timezone: New York, London, Moscow, Tokyo, UTC.
- Range length in minutes (5-240), converted to whole bars.
- On daily and higher timeframes it uses the first bar of the period.
Breakout
- Confirmed only by a close beyond the range high / low.
- Optional ATR buffer above / below the range.
- Optional volume filter: the breakout bar must trade above its average volume.
- First confirmed breakout in each direction is marked OR UP / OR DOWN.
Retest
- After a break, a return to the broken level that holds.
- Marked RETEST UP / RETEST DOWN.
- Failed breaks are not retested.
Failure
- A close back inside the range after a break.
- Marked FAILED UP / FAILED DOWN.
Targets
- Range height x target multiple above / below the range.
- Marked T UP / T DOWN when reached.
- Optional; on by default.
Visuals
- Range box with a dashed border.
- OR high and OR low lines.
- Breakout / retest / failure labels.
- Compact 2 x 8 panel: OR HIGH, OR LOW, RANGE, STATUS, BREAKOUT, RETEST, VOLUME, BARS.
- Panel movable to nine positions.
What you get
- SOFLMARKET Opening Range.txt - Pine Script v6 source code (v1.0.0)
- README.txt - installation, every input with defaults, calculations, alerts and FAQ
- LICENSE.txt - SOFLMARKET Commercial Licence v1.0
Requirements
- A TradingView account with Pine Script v6 support.
- No external libraries: the script is fully self-contained.
Installation
- Download the product files.
- In TradingView open the Pine Editor.
- Paste the supplied source into a new script.
- Save it and click "Add to chart".
- Pick the session start, timezone and range minutes.
Alerts
- Opening range complete
- OR high break
- OR low break
- OR high retest
- OR low retest
- Upper target reached
- Lower target reached
Notes
- Works on any timeframe, but intraday is recommended. On daily and higher timeframes the range is the first bar of the period.
- The range is rounded to whole bars. On a 1H chart, a 30-minute range is one 1H bar.
- The range is capped at 1000 bars to stay within Pine's max_bars_back.
- On FX/CFD the volume is tick volume, not exchange volume.
- The indicator visualises price and volume data. It does not predict prices and does not promise results. Trading leveraged instruments carries a high risk of loss. Past performance is not indicative of future results. This is not financial advice.
Changelog
v1.0.0 - 21.11.2026 - First release.
What you get
3 files · 40.82 KB
- LICENSE.txtTXT · 4.13 KB
- README.txtTXT · 10.74 KB
- SOFLMARKET Opening Range.txtTXT · 25.95 KB
Code Snippets
SOFLMARKET Opening Range
Opening range for TradingView with breakouts, retests, failed breaks, range-height targets and alerts.
Tags
Frequently asked questions
Do I get access instantly?
Yes. This is a digital product - you can download it right after checkout, straight from your library.
Can I use it for commercial projects?
Personal use only. Use it for yourself - not in work you sell or hand to a client - and do not resell or redistribute the file.
What's your refund policy?
You can request a refund within 30 days. If something isn't right, request it from your order and the Getly team reviews it.
What file formats and sizes will I get?
You'll download 3 files - TXT - 40.82 KB in total.
Do I get free updates?
Yes - when the seller ships a new version, you can re-download the latest files from your library at no extra cost. Check the changelog for recent updates.
Price
$39.00



