Indicator · Pine Script v5 · On the chart

Time And Price of Candle Range Theory

by lewisaeofburma

This overlay indicator draws labeled time lines and two colored session boxes on the price chart.

View on GitHub

GitHub stars8on the repository
Pine versionv5runs as is
Lines of code257
Settings35inputs
LicenceNone stated
Last update2 years ago22 Aug 2024

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

Default labels mark the 7:00 line, the New York open, the NYSE open, a four-hour open, midnight NYO, and the NDOG window, using New York timestamps. Users can hide each line, change its color and label, and restyle the yellow and blue box backgrounds and outlines. It also shows previous higher-timeframe candles, with a selectable timeframe and candle count. It does not generate entries, exits, or stop losses.

Details

Published by

lewisaeofburma on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Sessions & time, Support & resistance, SMC / ICT / price action

Markets

Any symbol

Timeframes

Any timeframe

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.

Settings

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

SettingTypeDefaultVariable
Show Line 1booltrueshowLine1
Color for Line 1colorcolor.rgb(255, 0, 0, 46)color1
Label for Line 1string7label1
Show Line 2booltrueshowLine2
Color for Line 2color#000000color2
Label for Line 2stringNewlabel2
Show Line 3booltrueshowLine3
Color for Line 3color#000000color3
Label for Line 3stringNYSElabel3
Show Line 4booltrueshowLine4
Color for Line 4color#2200ffcolor4
Label for Line 4string4H openlabel4
Show all 35 settings
SettingTypeDefaultVariable
Show Line 5booltrueshowLine5
Color for Line 5color#000000color5
Label for Line 5stringNYOlabel5
Show Line 6booltrueshowLine6
Color for Line 6colorcolor.rgb(255, 0, 0, 51)color6
Label for Line 6stringNDOGlabel6
BoxbooltruehighlightBoxEnabled1
BoxbooltruehighlightBoxEnabled2
Box Background Colorcolorcolor.new(color.yellow, 90)boxBgColor
Box Outline ColorcolorTRANS_COLORboxOutlineColor
Box Outline Widthint0boxOutlineWidth
Box Background Colorcolorcolor.new(color.blue, 90)boxBgColor2
Box Outline ColorcolorTRANS_COLORboxOutlineColor2
Box Outline Widthint0boxOutlineWidth2
Show HTF CandlesbooltrueshowHTF1
Number of Previous HTF Candlesint3numCandles1
Select Time Frametimeframe15higherTimeFrame1
Show HTF 2 CandlesbooltrueshowHTF2
Number of Previous HTF Candles 2int1numCandles2
Select Time Frametimeframe240higherTimeFrame2
Show HTF 2 CandlesbooltrueshowHTF3
Number of Previous HTF Candles 3int1numCandles3
Select Time FrametimeframeDhigherTimeFrame3
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

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

This indicator detects and draws the first Fair Value Gap (FVG) that forms in each hourly session based on a selected lower timeframe, with specialized handling for Regular Trading Hours (RTH) confluence windows. It draws FVG range boxes, midpoint lines, hourl

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints

This indicator combines six trading tools into a single chart overlay to optimize indicator limits. It calculates Bollinger Bands, projects weekend price boundaries, plots market structure elements like order blocks, breaker blocks, and MSB lines, marks New Yo

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
19 stars

This indicator highlights Inner Circle Trader (ICT) killzones and key session pivot points directly on the price chart. It projects shaded boxes for specific trading sessions, including Asia, London, NY AM, NY Lunch, and NY PM, to help traders identify high-li

Indicator v5 SMC / ICT / price actionSessions & time
Updated 3 years ago · MIT GitHub repository of ICT Killzones & Pivots

Bandz Session Ranges + ORG + Opening Prices plots trading session ranges, killzones, opening RTH gaps, standard deviation projections, and key opening prices directly on the price chart. It calculates gap ranges based on prior regular trading hours close sourc

Indicator v6 Sessions & timeSupport & resistance
Updated 2 weeks ago · MPL-2.0 GitHub repository of Bandz Session Ranges + ORG + Opening Prices

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