OPEN-SOURCE SCRIPT

Opening Range v3 (Dynamic)

142
Opening Range Signals v3 (Dynamic) - Indicator Guide
Created by: MecarderoAurum

Why This Indicator Exists: An Overview
The "Opening Range Signals" indicator is a sophisticated tool designed for day traders who focus their strategy on the price action that unfolds during the Regular Trading Hours (RTH) of the New York session (09:30 - 16:00 ET). The opening period of the market, often called the "initial balance," is a critical time where institutions and traders establish the early high and low for the day. Trading the breakout of this range is a classic and effective strategy, but it's often plagued by false moves and "head fakes."

This indicator was built to solve that problem. It not only identifies the initial range but also incorporates a powerful dynamic expansion feature. This allows the indicator to intelligently adapt to early session volatility, filter out false breakouts, and establish more reliable support and resistance levels for the rest of the trading day. It provides a clear, visual framework for executing opening range strategies with more confidence.

Key Features & How to Use Them
1. Customizable Opening Range

This is the foundation of the indicator. It draws the high and low of the initial trading period on your chart.

What it does: Establishes the initial support and resistance levels for the day.

How to use it: In the settings under "Time Settings," you can set the "Opening Range Duration" from 1 to 30 minutes. A shorter duration (e.g., 5 minutes) will be more sensitive and give earlier signals, while a longer duration (e.g., 30 minutes) will establish a wider, more robust range.

2. Dynamic Range Expansion

This is the indicator's most powerful and unique feature. It helps you avoid getting trapped in false breakouts.

What it does: If the price breaks out of the initial range but then quickly closes back inside, the indicator will automatically expand the range to include the full wick of the failed breakout. This tells you the market is still establishing its true range.

How to use it: In the settings under "Dynamic Range," you can:

"Enable Dynamic Range Expansion": This is on by default.

"Expansion Time Limit (Min)": Set how long the indicator should look for these failed breakouts. After this time, the range will be locked for the day.

3. Clear Visual Trading Signals

The indicator provides three distinct signals to help you interpret the price action around the opening range.

Breakout Body (Yellow plotshape):

What it means: The first confirmation that the price has decisively moved outside the established range. It appears when a candle's body closes entirely above the high or below the low.

How to use it: This is your alert that a potential breakout is underway. Do not enter yet; wait for confirmation.

Continuation (Green plotshape):

What it means: This signal appears on the candle immediately following a breakout if it shows momentum in the same direction. It confirms that the breakout has strength.

How to use it: This is a potential entry trigger. A continuation signal suggests the breakout is valid and may continue.

Failure (Red plotshape):

What it means: This signal appears if, after a breakout and continuation, the price quickly reverses and closes back inside the range. It's a strong indication of a false breakout.

How to use it: If you are in a breakout trade, a failure signal is a clear sign to exit. It can also be used as a setup for a reversal trade in the opposite direction.

Sample Strategy: The Breakout-Continuation Trade
This strategy uses the indicator's signals to trade a classic opening range breakout with added confirmation.

Setup:

Set the "Opening Range Duration" to your preferred time (e.g., 5 or 15 minutes).

Ensure the "Dynamic Range Expansion" is enabled to filter out early noise.

Entry Trigger:

Wait for a Breakout signal (yellow) to appear. This puts you on high alert.

Wait for a Continuation signal (green) on the very next candle. This is your entry trigger. Enter a long trade on a bullish continuation or a short trade on a bearish continuation.

Stop-Loss:

For a bullish (long) trade, a common stop-loss placement is just below the low of the continuation candle or, for a more conservative stop, just inside the opening range high.

For a bearish (short) trade, place your stop-loss just above the high of the continuation candle or just inside the opening range low.

Trade Management:

If a Failure signal (red) appears after you've entered, it indicates the breakout has failed. This is a strong signal to exit your trade immediately to protect your capital.

If the trade moves in your favor, you can manage it by taking profits at key levels or using a trailing stop.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.