OPEN-SOURCE SCRIPT

GFG Daily Levels Auto by Agaam

182
GFG Daily Levels Auto is a clean daily-level overlay that helps avoid a messy chart by hiding distant levels and automatically showing them only when price comes near. It tracks key levels such as premarket high/low, opening ranges, yesterday high/low, pivots, and previous HOD/LOD references while keeping the chart focused on the levels currently relevant to price action.



GFG Daily Levels Auto by Agaam

**GFG Daily Levels Auto** is a chart-overlay indicator designed to automatically display important intraday and daily reference levels on the chart. The goal of this script is to help traders keep the most useful session levels visible without manually drawing them every day.

This indicator focuses on price levels that many intraday traders watch, including premarket high/low, opening range levels, yesterday’s high/low, daily pivot levels, and previous high-of-day / low-of-day reference levels. It also includes an optional “near price” display mode that helps reduce chart clutter by showing selected levels only when price is approaching them.

## What Makes This Script Useful

Many daily-level indicators plot every level all the time, which can make the chart crowded and hard to read. This script is designed to be more flexible by giving traders control over which levels appear, how they look, and whether they should only appear when price is close.

The main idea is to combine daily market structure levels with intraday session levels in one organized overlay. This allows traders to watch important areas of interest without needing separate indicators for premarket levels, opening ranges, yesterday levels, and daily pivots.

## Main Levels Included

### Premarket High and Low

The script tracks the premarket session and records:

* PMH 1: primary premarket high
* PMH 2: secondary premarket high
* PML 1: primary premarket low
* PML 2: secondary premarket low

The second premarket levels are separated using a tick-based distance filter. This helps avoid plotting nearly identical levels too close together.

### 3-Minute Opening Range

The script can plot the high and low of the first 3 minutes after the regular market open.

These levels are labeled:

* 3H
* 3L

The 3-minute opening range is intended to be used only on 3m, 5m, and 15m charts. This keeps the feature more consistent and avoids using it on chart timeframes where the 3-minute range would not be represented clearly.

### 30-Minute Opening Range

The script can also plot the high and low of the first 30 minutes after the regular market open.

These levels are labeled:

* 30H
* 30L

The 30-minute opening range can be useful for traders who watch the first major balance area of the regular session.

### Yesterday High and Low

The indicator plots the prior daily candle’s high and low:

* YH
* YL

These levels can act as important reference areas because traders often watch whether price accepts above, rejects below, or reacts around the previous day’s range.

### Daily Pivot Levels

The script calculates classic daily pivot levels using yesterday’s high, low, and close.

Included levels:

* Pivot Point
* R1 / S1
* R2 / S2
* R3 / S3

These levels give traders a structured daily support and resistance framework based on the prior day’s price range.

### Previous HOD / LOD Reference Levels

The script also tracks previous high-of-day and low-of-day reference levels as price creates new highs or new lows during the session.

These levels are labeled:

* HOD 1
* HOD 2
* LOD 1
* LOD 2

They are designed to show earlier intraday high/low reference areas that may still matter after price has moved beyond them.

## Auto Near Price Mode

One of the key features of this script is the optional **Auto Show Only Near Price** mode.

When enabled, selected levels appear only when price is close to them. The script measures distance using:

* Tick distance
* ATR-based distance
* Actual candle touch of the level

This helps keep the chart cleaner by hiding levels that are far away from current price action. When price comes close to a level, the line and label become visible again.

This feature is useful for traders who want the important levels available, but do not want every daily level displayed across the chart at all times.

## ATR and Tick-Based Approach Distance

The near-price logic can use a fixed tick distance and/or an ATR multiplier.

The tick distance gives a fixed market-based approach zone.
The ATR setting adjusts the approach distance based on current volatility.

Using both allows the indicator to adapt better across different instruments and market conditions.

## Custom Line Styles

Each major level type has its own style controls.

Users can adjust:

* Line style: solid, dashed, or dotted
* Line width
* Line color
* Label visibility
* Label size
* Line extension
* Left and right line length

This makes the indicator flexible for different chart layouts and personal visual preferences.

## Labels

The script includes optional labels for each level. Labels show the level name and price, such as:

PMH 1
PML 1
3H
3L
30H
30L
YH
YL
P
R1
S1

Labels can be turned on or off by category, allowing traders to keep the chart clean while still seeing the level names they care about.

## How Traders Can Use It

This indicator can be used as a daily level map for intraday trading.

Possible uses include:

* Watching reactions at premarket high and low
* Using 3-minute or 30-minute opening range levels as intraday reference areas
* Tracking whether price accepts or rejects yesterday’s high/low
* Watching daily pivot levels for possible support or resistance
* Keeping previous HOD/LOD levels visible as intraday structure
* Reducing clutter with the near-price auto display mode

A possible workflow is:

1. Load the indicator before the session begins.
2. Let the script automatically calculate premarket and opening range levels.
3. Watch how price behaves when it approaches a visible level.
4. Use the level as context, not as an automatic entry signal.
5. Combine the level with price action, volume, trend, and risk management.

## Important Notes

This script is a level-mapping tool, not an automatic buy or sell system.

A level appearing on the chart does not mean price must reverse there. Levels should be treated as areas of interest where traders can watch for reaction, rejection, breakout, retest, or continuation.

Daily levels and pivot levels are based on the prior daily candle data provided by TradingView for the selected symbol. For some instruments, especially futures, daily data may include extended-hours movement depending on the symbol and chart settings.

## Disclaimer

This indicator is for educational and informational purposes only. It is not financial advice, investment advice, or a guaranteed trading system. Trading involves risk, and every trader is responsible for their own decisions. Always use proper risk management.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.