Indicator · Pine Script v5 · On the chart

ICT Sessions One Setup for Life

by alvinng214

This indicator plots colored session boxes and horizontal lines on the price chart for Asia, London, New York AM, New York Lunch, and New York PM sessions.

View on GitHub

Repaints

GitHub stars2on the repository
Pine versionv5runs as is
Lines of code847
Settings40inputs
LicenceNone stated
Last update2 months ago5 Aug 2026

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

ICT Sessions One Setup for Life draws high and low lines with an optional 50% midpoint line for each session. Users customize colors, toggle sessions on or off, select a timezone, and set border width. The main settings control session visibility and visual appearance. It draws directly on the chart and identifies session boundaries to help traders recognize time-based market activity. The script supports Pine Script v5.

Details

Published by

alvinng214 on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Sessions & time, Support & resistance

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • Reads higher-timeframe data with lookahead on, so the history can show signals that were not there in real time

Settings

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

SettingTypeDefaultVariable
TimezonestringAmerica/New_YorktZone
Max Timeframeint15i_maxtf_RTHsess
Bordercolorcolor.new(color.orange,100)AsiaBorderColor
Boxcolorcolor.new(color.orange,80)AsiaBackgroundColor
Linecolorcolor.new(color.orange,0)AsiaHLColor
Asia Sessionbooltrueasia
Bordercolorcolor.new(color.red,100)EuropeBorderColor
Boxcolorcolor.new(color.red,80)EuropeBackgroundColor
Linecolorcolor.new(color.red,0)EuropeHLColor
London Sessionbooltrueeurope
Bordercolorcolor.new(color.green,100)USABorderColor
Boxcolorcolor.new(color.green,80)USABackgroundColor
Show all 40 settings
SettingTypeDefaultVariable
Linecolorcolor.new(color.green,0)USAHLColor
New York AM Sessionbooltrueusa
Bordercolorcolor.new(color.gray,100)nylBorderColor
Boxcolorcolor.new(color.gray,80)nylBackgroundColor
Linecolorcolor.new(color.gray,0)nylHLColor
New York Lunch Sessionbooltruenyl
Bordercolorcolor.new(color.blue,100)USA2BorderColor
Boxcolorcolor.new(color.blue,80)USA2BackgroundColor
Linecolorcolor.new(color.blue,0)USA2HLColor
New York PM Sessionbooltrueusa2
Border widthint1lineWidth
Session High/Low Linesbooltruelines
Session 50% Lineboolfalsemids
Textcolorcolor.new(color.silver,0)RTH_txt
TextbooltrueRTH_txt_on
Asia Sessionsession2000-0000Asia
London Sessionsession0200-0500Europe
New York AM Sessionsession0930-1200USA
New York Lunch Sessionsession1200-1330NYL
New York PM Sessionsession1330-1600USA2
Previous Days to Showint10event_days
Backgroundcolorcolor.new(color.silver,90)bgrnd_prev_clr
Show Days Backgroundbooltrueshowdaysbg
RTH Opening Gap booltrueshowBox
Standard Gap Boxcolorcolor.new(color.purple, 75)boxColor
Bordercolorcolor.new(color.purple, 0)borderColor
Widthint1border_w
Historical Boxes to Showint3boxesToShow
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

575 stars

This indicator builds Market Profile Time Price Opportunity (TPO) structures across defined session timeframes directly on the main price chart. It visualizes the Point of Control (POC) and Value Area boundaries using dynamic box drawings. An integrated multi-

Indicator v5 Support & resistanceScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of Market Profile with Screener
257 stars

This indicator plots auto trade signals for E-mini S&P 500 futures on the price chart. It computes an EMA200 filter along with day ETH RTH session levels and percentage-based entry zones. Signals trigger CALL or PUT cases when price crosses defined thresholds

Indicator v6 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Auto Trade Futures ES
219 stars

This indicator plots reference levels for previous daily high and low prices directly on the price chart. It requests daily timeframe data using the security function and plots the offset values as continuous lines, displaying resistance in red and support in

Indicator v4 Support & resistanceSessions & time
Updated 5 years ago · None stated GitHub repository of 昨日高低點標示

Golden Bullet Strategy

by TradersPost
218 stars

The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh

Indicator v6 SMC / ICT / price actionSessions & time
Updated 3 months ago · None stated GitHub repository of Golden Bullet Strategy

Moon Dev GEX Arrows

by moondevonyt
92 stars

This overlay indicator plots option strike walls and an optional session VWAP on the price chart for SPY or ES. It spaces major strikes by the selected instrument, draws a set number of strikes on each side, and marks wall-trap and sweep events after a cooldow

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · Custom licence GitHub repository of Moon Dev GEX Arrows

Key Levels

by cryptorife
75 stars

This indicator plots reference levels and session markers directly on the price chart. It calculates and draws lines for the daily open, weekly open, monthly open, previous day OHLC, and previous week extremes, along with a selectable day-of-week range and ini

Indicator v4 Support & resistanceSessions & time Repaints
Updated 3 years ago · GPL-3.0 GitHub repository of Key Levels

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers