Indicator · Pine Script v5 · On the chart

Day Trading

by iamc1oud

This indicator plots global forex trading sessions, opening ranges, and opening channels for Sydney, Tokyo, Frankfurt, London, and New York markets.

View on GitHub

Repaints

GitHub stars56on the repository
Pine versionv5runs as is
Lines of code1,891
Settings40inputs
LicenceNone stated
Last update2 months ago20 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

Day Trading calculates and draws daily reference levels based on Average True Range (ATR) multipliers from the day open directly on the price chart. An optional tabular dashboard displays active market sessions and global events. Higher-timeframe session calculations use security calls that introduce historical lookahead bias.

Details

Published by

iamc1oud on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Sessions & time, Support & resistance, Screeners & dashboards, Volatility & bands

Markets

Forex

Timeframes

M1-M5, M15-H1

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
Openning ChannelstringNoneopeningChannel
cChannelcolorcolor.graycChannel
Sydney Session stringNoneshSydney
cSydneycolorcolor.navycSydney
DSTbooltruei_sydneySummerTime
Tokyo Session  stringNoneshTokyo
cTokyocolorcolor.fuchsiacTokyo
Frankfurt Sessionstring5m Opening RangeshFrankfurt
cFrankfurtcolorcolor.yellowcFrankfurt
DSTboolfalsei_frankfurtSummerTime
London Session string5m Opening RangeshLondon
cLondoncolorcolor.bluecLondon
Show all 40 settings
SettingTypeDefaultVariable
DSTboolfalsei_londonSummerTime
New York Sessionstring15m Opening RangeshNYork
cNYorkcolorcolor.greencNYork
DSTboolfalsei_newyorkSummerTime
Global Forex Market Sessions Tabular Viewbooltruei_forex
Hide if not Forex Market InstrumentbooltruehideIfNot
  Table Text SizestringSmalli_textSize2
statPosstringTop RightstatPos
Global Forex Market EventsbooltrueforexEvents
  Vertical Offsetint0oscVerticalOffset
Hightint7Hight
Day Open     string5m Opening RangedayOpen
dayColorcolorcolor.aquadayColor
Day Referance LevelsstringAverage True Range (ATR)dayRefLevels
dayRefColorcolorcolor.orangedayRefColor
  Referance Level #1float.5dayRefLevel1
#2float1.dayRefLevel2
  ATR Referance Levels : ATR Lengthint5dayATRLength
Week OpenboolfalseweekOpen
weekColorcolorcolor.aquaweekColor
Month OpenboolfalsemonthOpen
monthColorcolorcolor.aquamonthColor
Volume Weighted Average Price (VWAP) ----------|boolfalseisVwap
Anchor TimeframestringAutohtf_tf
Sourcesourcehlc3vwapSource
Interactive Anchortimetimestamp("29 Nov 2022")startDate
Bands #1booltruevwapBand1
stdevMult1float1stdevMult1
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

AM TBR — NQ Stats

by TamaraKGreen
46 stars

The AM TBR indicator calculates statistical levels for NQ futures using standard deviation. It plots a sigma ladder showing touch levels at 0.5 to 2.0 standard deviations, marks touch points, displays Mean Absolute Error (MAE) zones after touches, and shows Me

Indicator v6 Volatility & bandsSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of AM TBR — NQ Stats

Zen Trading Toolkit

by Zen-Tim
29 stars

This indicator plots average bar range (ABR) measured move targets, opening range boxes, and historical key reference levels directly on the price chart. It projects bullish and bearish targets (0.5x, 1.0x, 1.5x, 2.0x ABR) from the previous session's close, al

Indicator v6 Support & resistanceVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Zen Trading Toolkit
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 overlays an intraday SPX and ES chart with a midnight session range, regular-trading-hours opening levels, and a VWAP projection box. It draws the midnight high, mid, and low, flags edge rejections within an absolute tolerance, and plots optiona

Indicator v6 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of SPX Midnight Box + Snag Logic

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
92 stars

This indicator classifies the market into gamma regime types (negative gamma trend, positive gamma mean-reversion, or transition) by calculating a composite score based on daily ATR ratios, session VWAP crossover frequencies, and opening range displacement. It

Indicator v5 Volatility & bandsTrend
Updated 8 weeks ago · Custom licence GitHub repository of Moon Dev GEX Regime & Trap

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