Indicator · Pine Script v5 · On the chart

Session Range & Advanced Analysis Tools

by Astralchemist

This chart indicator tracks session-specific high and low price ranges over user-defined time windows.

View on GitHub

GitHub stars2on the repository
Pine versionv5runs as is
Lines of code931
Settings40inputs
LicenceNone stated
Last update11 months ago16 Nov 2025

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

Session Range & Advanced Analysis Tools plots session ranges alongside three configurable moving averages, volume-weighted average price (VWAP) with standard deviation bands, dynamic support and resistance pivot levels, and volume highlights. Additionally, it computes RSI divergence and calculates a confluence score using higher timeframe trend filtering to identify multi-indicator setups directly on the main chart.

Details

Published by

Astralchemist on GitHub

Draws

On the price chart

Timeframes

M1-M5, M15-H1, H4 and above

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.

Topics

pinescriptpinescript-indicatorstradingtradingvewsignal

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Session Start Hourint7sessionStartHour
Session Start Minuteint30sessionStartMinute
Session End Hourint10sessionEndHour
Session End Minuteint0sessionEndMinute
Extend LinesbooltrueextendLines
Range Box Opacityint80rangeOpacity
Show LabelsbooltrueshowLabels
Max Bars to Extendint50maxBarsExtend
Show Moving AveragesbooltrueshowMA
MA1 Lengthint21ma1_length
MA2 Lengthint50ma2_length
MA3 Lengthint200ma3_length
Show all 40 settings
SettingTypeDefaultVariable
MA TypestringEMAma_type
Show RSI LevelsbooltrueshowRSI
RSI Lengthint14rsi_length
RSI Overboughtfloat70.0rsi_overbought
RSI Oversoldfloat30.0rsi_oversold
Show RSI Divergencebooltrueshow_rsi_divergence
Divergence Lookbackint5divergence_lookback
Show VWAPbooltrueshowVWAP
Show VWAP Bandsbooltruevwap_bands
VWAP Standard Deviationfloat2.0vwap_std_dev
Show Volume at Session LevelsbooltrueshowVP
Min Volume Multiplier for Signalsfloat1.3min_volume_multiplier
Show Key S/R LevelsbooltrueshowSR
S/R Lookback Periodint20lookback_period
Max S/R Linesint20max_sr_lines
Use ATR-Based Thresholdsbooltrueuse_atr_threshold
ATR Lengthint14atr_length
ATR Threshold Multiplierfloat0.5atr_multiplier
Minimum Confluence Scoreint70min_confluence_score
Show Confluence Scorebooltrueshow_confluence_score
Enable MTF Trend Filterbooltrueenable_mtf_filter
Higher Timeframetimeframe60htf_timeframe
Show Risk Levelsbooltrueshow_risk_levels
Risk/Reward Ratiofloat2.0risk_reward_ratio
ATR Stop Loss Multiplierfloat1.5atr_stop_multiplier
Enable Multiple Sessionsboolfalseenable_multi_sessions
Asian Start Hourint0asian_start_hour
Asian End Hourint8asian_end_hour
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

Polish Setup Indicator

by GreyssonEnterprises
1 stars

Plots a smoothed moving average stack alongside detected W and M patterns, RSI momentum filtering, and Fibonacci-style extension targets. The indicator evaluates trend alignment across fast, medium, and slow SMMAs, scans recent price bars for double top or bot

Indicator v5 Moving averagesOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Polish Setup Indicator

PivotHighLow

by Alorse
330 stars

This indicator calculates pivot high and pivot low points on the price chart based on configurable left and right bar counts. Confirmed pivot highs and lows are plotted with negative bar offsets directly on the price chart using line and cross styles. Addition

Indicator v4 Support & resistanceOscillators & momentum Repaints
Updated 2 months ago · None stated GitHub repository of PivotHighLow

Midnight VWAP

by TradersPost
228 stars

The Midnight VWAP indicator calculates and overlays two distinct Volume Weighted Average Price (VWAP) lines on the price chart based on customizable session timeframes. It tracks an overnight or pre-market session alongside regular trading hours, resetting cal

Indicator v6 Moving averagesSessions & time
Updated 3 months ago · None stated GitHub repository of Midnight VWAP

Moon Dev GEX Walls & Trap

by moondevonyt
92 stars

This indicator estimates gamma exposure levels and intraday context for index instruments like SPY and ES. It calculates VWAP with standard deviation bands as a gamma flip proxy, highlighting market regimes through background colors. It plots prior day high, l

Indicator v5 Support & resistanceSessions & time
Updated 2 months ago · Custom licence GitHub repository of Moon Dev GEX Walls & Trap
23 stars

This indicator collection calculates and plots previous daily high and low price levels on the chart to identify potential supply and demand zones. It includes real-time intraday high and low calculations, RSI divergence detection across a customizable period

Indicator v4 Support & resistanceDivergence
Updated 3 years ago · None stated GitHub repository of Daily High and Low Strategy

More Sessions & time 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