OPEN-SOURCE SCRIPT

Aivance Opening Range & Vol Factor

93
Aivance Opening Range & Volume Factor

Overview

The Aivance Opening Range & Volume Factor is a comprehensive tool designed for Day Traders and Scalpers who rely on the "Opening Drive" or "Opening Range Breakout" (ORB) strategies.

The first candle of the trading session often sets the tone for the entire day. This indicator not only visualizes the price action of that critical first candle but also contextualizes the Volume to help you determine if there is enough institutional participation to sustain a trend.

Key Features

1. Opening Volume Factor

Unlike standard volume indicators, this tool calculates a specific Volume Factor for the opening candle:

Formula: (Volume of 1st Candle / Total Volume of Previous Day) * 100

Why it matters: A high Volume Factor (thresholds vary significantly depending on the chart timeframe and asset) suggests strong institutional interest immediately at the open. This often increases the probability of a sustained trend day rather than a choppy range day.

2. Automatic Session Detection

No manual time inputs are required.

The indicator uses time("D") to automatically detect the start of the trading day.

RTH vs. ETH: It adapts to your chart settings. If you use "Regular Trading Hours" (RTH), it marks the 09:30 NY open. If you use "Extended Trading Hours" (ETH), it marks the pre-market open.

3. Visual Opening Range

Box & Lines: Draws a box highlighting the High/Low and the Body (Open/Close) of the opening candle.

Extension: Extends support/resistance lines across the session to help identify breakouts or retests of the opening range later in the day.

4. Smart "Pullback" Logic (Optional)

This script includes a unique filter called "Show only on Pullback":

Default (False): The range is drawn immediately when the first candle closes.

Enabled (True): The range is hidden until the market prints a candle in the opposite direction of the opening move.

Strategy: This helps filter out impulsive moves and encourages trading the "retest" or the failure of the initial drive, rather than chasing the first tick.

How to Use

Trend Confirmation: Look for a breakout of the Opening Box combined with a high Volume Factor.

Support/Resistance: Use the extended gray lines (High/Low of the first candle) as key pivot points for stop-losses or entry targets.

Context: Compare the Volume Factor across different days to establish a baseline for your specific asset (e.g., what constitutes "High Volume" for NQ vs. ES vs. AAPL).

Settings

Colors: Fully customizable colors for Long (Bullish) and Short (Bearish) opening ranges.

Volume Factor: Toggle the text label on/off and adjust size/color.

Logic: Toggle the "Pullback" requirement on/off.

Disclaimer: This tool is for informational purposes only and does not constitute financial advice. Always manage your risk.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.