Pine Library · 1,149 open-source scripts

Free Session and Time Pine Scripts

Open-source Pine scripts that mark time: Asian, London and New York session boxes, opening ranges, kill zones, day and week separators.

Pine scripts1,149
Code shown here551open licence
Updated in a year961
No repaint flag969

About Sessions & time Scripts

Session tools shade or box the hours when each major market is open, so you can see the Asian range, the London breakout or the New York open at a glance.

Session times shift when the UK, Europe and the US change their clocks, on different dates. Check whether a script follows daylight saving time or uses fixed hours.

180 of these 1,149 scripts are marked Repaints, or read higher-timeframe data with lookahead on.

Before You Use One

Sessions & time: Indicators, Strategies and Libraries

550 stars

Range Volume Change compares volume inside a chosen session window with the same window on the previous day and plots that change as a percentage. It accumulates volume during the window and, when enabled, volume outside it, drawing growing columns in a separa

Indicator v5 VolumeSessions & time Repaints
Updated 10 months ago · None stated GitHub repository of Range Volume Change

This overlay strategy offers two selectable entry modes: a Bollinger squeeze on typical price and a simple moving-average cross. It filters trades by weekday, session, date range, and an optional news window, and can restrict direction or invert the side. Risk

Strategy v5 Volatility & bandsMoving averages
Updated yesterday · None stated GitHub repository of Boilerplate Configurable Strategy [Yosiet]
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

Forex Sessions

by PythonForForex
64 stars

Forex Sessions highlights specific global trading hours directly on the main price chart using background colors. It tracks three major market sessions using predefined time ranges: Tokyo, London, and New York. Active session hours are distinguished by distinc

Indicator v5 Sessions & time
Updated 4 years ago · None stated GitHub repository of Forex Sessions

Session Edge Probabilities

by TraderOracle
61 stars

Session Edge Probabilities tracks eight session-based trading rules using statistical probabilities evaluated on historical chart data. It utilizes a fixed calculation timeframe to evaluate opening ranges, midnight levels, afternoon reversal windows, and price

Indicator v6 Sessions & timeScreeners & dashboards
Updated 10 days ago · None stated GitHub repository of Session Edge Probabilities

4H Candle Curves

by TamaraKGreen
46 stars

4H Candle Curves highlights 4-hour trading sessions based on New York time by overlaying customizable colored boxes directly on the main price chart. It divides 4-hour sessions with quarter separator lines at one-hour intervals and places name labels at the mi

Indicator v6 Sessions & timeScreeners & dashboards
Updated 7 weeks ago · None stated GitHub repository of 4H Candle Curves

ATOM 1m scalp HK

by dearvn
43 stars

This overlay strategy targets one-minute ATOM scalps. It tracks pivot highs and lows as resistance and support, compares a three-period EMA with a multi-stage smoothed close, and flags long or short when price crosses that curve in the matching direction. Dail

Strategy v5 ScalpingSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of ATOM 1m scalp HK
39 stars

This intraday strategy implements Mark Fisher's Opening Range Breakout (ORB) methodology tailored for index futures like ES and NQ. It calculates session opening ranges, volume z-scores, and VWAP bands to plot support, resistance, and confirmation levels on th

Strategy v6 BreakoutSessions & time Repaints
Updated 5 days ago · MIT GitHub repository of Futures Intraday Pro (ES/NQ) Strategy
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

FDL pro

by cantolab
16 stars

This overlay indicator plots the 100-period and 200-period exponential moving averages on the price chart and marks buy or sell triangles after an EMA crossover when the next two candle opens stay on the correct side of the 100 EMA and price stays within a sym

Indicator v5 Moving averagesSessions & time
Updated 2 months ago · None stated GitHub repository of FDL pro

ORB Multi-Model Indicator

by Mrshahidali420
16 stars

This indicator plots several New York opening-range breakout models on the price chart and can also show a combined confidence-scored signal. Enabled models include classic Crabel, a five-minute scalper, a standard fifteen-minute breakout, and a gold variant,

Indicator v6 BreakoutSessions & time Repaints
Updated 3 months ago · None stated GitHub repository of ORB Multi-Model Indicator

NWOG + ORG

by traderdiegox
16 stars

This overlay indicator draws the new week opening gap and the opening range gap on the price chart. It paints each gap as a colored zone with optional borders, a dashed midpoint line, and a text label. Users can hide either gap, change colors and border style,

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 6 months ago · None stated GitHub repository of NWOG + ORG

P404 Smoke

by Musyimi97
16 stars

P404 Smoke is a price-chart strategy that sequences an optional higher-timeframe EMA bias, a liquidity range from recent pivots, a sweep of buy-side or sell-side liquidity, and a market structure shift within a set bar window. Comments state it then looks for

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · MIT GitHub repository of P404 Smoke

Clusterbreak

by Jferheart
15 stars

This indicator identifies Break of Structure (BOS) and Market Structure Shift (MSS) zones, plotting automated bracket levels on the price chart. It triggers signals when a reversal breaks a swing point formed inside an opposing zone, projecting stop loss and t

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 weeks ago · None stated GitHub repository of Clusterbreak

XAUUSD SMC Bot

by GifariKemal
15 stars

This strategy plots on the XAUUSD price chart and looks for Smart Money Concepts entries on the fifteen-minute timeframe. It scores fair value gaps, order blocks, liquidity sweeps, break of structure, and change of character, plus EMA, RSI, MACD, and higher-ti

Strategy v5 SMC / ICT / price actionOscillators & momentum
Updated 8 months ago · None stated GitHub repository of XAUUSD SMC Bot

1BullBear

by KweeBoss
10 stars

The 1BullBear indicator is an all-in-one chart utility that displays key trading sessions, reference levels, and market structure helpers directly on the price chart. It highlights Asian, London, and New York sessions with customizable background ranges, label

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of 1BullBear
10 stars

The Reverse RSI Strategy is a scalping system designed for forex pairs during specific trading sessions. It combines a smoothed RSI indicator with five Exponential Moving Averages to identify mean-reversion trade opportunities. Position sizing dynamically adju

Strategy v4 Oscillators & momentumMoving averages
Updated 3 years ago · GPL-3.0 GitHub repository of Strategy - Reverse RSI

Nexural Flow Pro

by JasonTeixeira
9 stars

Nexural Flow Pro plots real order flow data in a separate pane as stacked buy and sell volume columns. It highlights imbalances at 3:1 ratios with glow effects, detects absorption patterns, and marks unfinished auction continuations. Session filtering optional

Indicator v6 VolumeSessions & time
Updated 13 days ago · Custom licence GitHub repository of Nexural Flow Pro
8 stars

This indicator analyzes Maximum Adverse Excursion (MAE) and Maximum Favorable Excursion (MFE) across hourly and multi-hour intraday trading sessions. It plots session open baselines, historical excursion boundaries, custom probability target zones, and time hi

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 8 days ago · None stated GitHub repository of Hourly Time and Price [JerryG & Smitty]

Larper Suite

by DeolinNaidoo
8 stars

Larper Suite is an overlay indicator for ICT and quarterly-theory analysis. It plots true session, daily, weekly, monthly, and yearly opens plus prior and current high-low liquidity levels. It tracks multi-asset SMT, swing divergence, fair-value-gap fills, and

Indicator v6 SMC / ICT / price actionDivergence Repaints
Updated 3 months ago · GPL-3.0 GitHub repository of Larper Suite

This indicator plots core Inner Circle Trader (ICT) concepts directly on the price chart. It visualizes session killzones (Asia, London, NY AM, London Close, NY PM) with high and low boundaries, opening price levels, multi-timeframe Fair Value Gaps with conseq

Indicator v5 SMC / ICT / price actionSessions & time Repaints
Updated 3 weeks ago · GPL-3.0 GitHub repository of All-in-One ICT v1.2 + RTH Gap + HTF Candles

1-Min Gold Taylor Technique

by eddiebelaval
7 stars

This intraday strategy implements session-based trading rules tailored for gold on short timeframes. It tracks the Asian session price range, VWAP, 20-period EMA, and previous day high and low levels to identify liquidity sweeps during London and New York trad

Strategy v6 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of 1-Min Gold Taylor Technique
7 stars

This strategy opens a long position when the bar hour matches the opening hour, the close is above a simple moving average, and the day is not Thursday or Saturday. It closes that long when the bar hour matches the closing hour. Default inputs set the open hou

Strategy v5 Moving averagesSessions & time Repaints
Updated 1 year ago · None stated GitHub repository of Strategia Buy 20:00 - Close 00:00

LIT - Timing

by rpanchyk
7 stars

LIT - Timing plots key market session ranges directly on the price chart based on Liquidity Inducement Theorem concepts. It renders customizable boxes alongside horizontal projection lines representing the high, low, and midpoint for the Asian, London, and New

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 2 years ago · MIT GitHub repository of LIT - Timing

This strategy trades EUR/USD breakouts on the price chart using Ichimoku values. It marks a compressed range when the Senkou spans twist and the range height stays under a pip limit. It enters long on a close above the prior range high, or short below the prio

Strategy v4 TrendBreakout
Updated 2 years ago · MIT GitHub repository of Robot Forex BREAKOUT EUR/USD 5MIN - Ichimoku
7 stars

Acts as a modular strategy boilerplate designed for automated and manual trading strategies on the price chart. It provides execution infrastructure including trade direction toggles, signal reversal, alternating orders, session filtering, and anti-news volati

Strategy v5 Sessions & time
Updated 2 years ago · None stated GitHub repository of Git Pine Script v5 Template

FX Market Sessions

by itmakesyousick
7 stars

This indicator draws custom trading session boxes directly on the price chart, with presets for London, New York, and Tokyo sessions. It calculates and outlines session ranges using boxes and lines, with optional extensions, opening ranges, and Fibonacci retra

Indicator v5 Sessions & timeSupport & resistance
Updated 3 years ago · None stated GitHub repository of FX Market Sessions

CG-ISMARKET Session Flags

by pineforge-4pass
6 stars

This diagnostic strategy inspects and records TradingView session built-in flags on each chart bar. It alternates between long and short entries on every bar, encoding the state of regular market, premarket, postmarket, and boundary flags into the order commen

Strategy v6 Sessions & time
Updated yesterday · Custom licence GitHub repository of CG-ISMARKET Session Flags

FxHD Strategy v2.0

by alboogycOdR
6 stars

FxHD Strategy v2.0 is a Fibonacci multi-timeframe strategy drawn on the price chart. It reads a higher timeframe, defaulting to four hours, and sets bias with CRT kill zones, the last two candles, dynamic CRT, or market structure, plus a fallback method. It pl

Strategy v6 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of FxHD Strategy v2.0

Cross Levels (ES-SPY/SPX)

by 345-strategies
5 stars

Translates key reference levels between CME E-mini S&P 500 futures (ES) and cash equity equivalents (SPY or SPX), displaying them directly on the price chart. When applied to an ES chart, it projects cash session highs, lows, opens, prior period levels, and ga

Indicator v6 Support & resistanceSessions & time
Updated 3 days ago · MPL-2.0 GitHub repository of Cross Levels (ES-SPY/SPX)

BPA [yohtza]

by forecho
5 stars

This indicator plots key session-based price action reference levels on the price chart. It calculates and displays the current session open, previous day close, Globex session high and low, weekly open, and higher-timeframe boundaries. It also supports bar co

Indicator v6 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of BPA [yohtza]

ORB Algo | Flux Charts

by vaskosmihaylov
5 stars

This indicator calculates and visualizes Opening Range Breakout (ORB) zones directly on the price chart. Breakout signals are identified when the close or an EMA crosses the opening range boundary, with entry sensitivity managed by retest requirements. It mode

Indicator v6 BreakoutSessions & time
Updated 2 months ago · GPL-3.0 GitHub repository of ORB Algo | Flux Charts
5 stars

This strategy enters one long trade when the bar low comes within a set point tolerance of the prior day's low and the close finishes above that level. Entries are allowed only inside a UTC session and are blocked after a Friday cutoff hour. It stays flat unti

Strategy v5 Support & resistanceMean reversion Repaints
Updated 5 months ago · MIT GitHub repository of PDL — Prior Day Level Retest (Bull)

Path A — ORB (Demo)

by plutothedev
5 stars

This indicator calculates the opening range high and low for the first N minutes of a user-defined session. It plots the ORB levels on the price chart and emits long breakout signals when price closes above the ORB high and short breakout signals when price cl

Indicator v5 BreakoutSessions & time
Updated 5 months ago · Custom licence GitHub repository of Path A — ORB (Demo)

I2.0 SM Radar

by CedInvest
5 stars

I2.0 SM Radar plots Smart Money Concepts zones on the price chart for crypto. It marks bullish and bearish Order Blocks, Fair Value Gaps with age-based fading, liquidity zones at equal highs and lows, and previous day week month highs and lows. It also detects

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · Custom licence GitHub repository of I2.0 SM Radar
4 stars

Lucid 100K is an automated evaluation strategy tailored for micro futures contracts such as MES, MGC, and MNQ on lower timeframes. It operates a two-phase state machine that moves from an initial risk-averse lock-in phase to an expanded payout phase once targe

Strategy v6 TrendMean reversion
Updated 2 days ago · None stated GitHub repository of Lucid 100K (MES/MGC/MNQ)

42H Map

by aurorascarlet1102
4 stars

42H Map calculates custom time cycle structures and session ranges directly on the price chart. It partitions market action into forty-two-hour cycles, ten-and-a-half-hour micro-sessions, half-week periods, and quarter-month segments to track highs, lows, and

Indicator v5 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of 42H Map

OPTD ORB Strategy

by drewautomates
3 stars

The OPTD ORB Strategy detects an opening range from a user-defined session window on the chart timeframe. It waits for a specified number of consecutive closes beyond the range high or low on a separate signal timeframe to generate a long or short entry. The d

Strategy v6 BreakoutSessions & time
Updated yesterday · Custom licence GitHub repository of OPTD ORB Strategy

GBPUSD H1 QuadLayer

by GifariKemal
3 stars

An institutional order block and EMA pullback indicator designed for GBPUSD on the 1-hour timeframe. It filters trading signals based on specific London and New York session kill zones, ATR volatility thresholds, signal quality metrics, and day or hour multipl

Indicator v5 SMC / ICT / price actionMoving averages
Updated 4 days ago · MIT GitHub repository of GBPUSD H1 QuadLayer

RTD IFVG

by Rickylel
3 stars

RTD IFVG tracks inverted fair value gaps (IFVGs) and identifies bullish or bearish trade setups when price closes through gaps following liquidity sweeps, higher-timeframe FVG reactions, or SMT divergence. The indicator grades setups from A+ to C based on posi

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of RTD IFVG

Luxy Big Beautiful ORB

by hintheman
3 stars

Draws Opening Range Breakout levels on the price chart for 5, 15, 30 and 60 minute ranges, each with its own colour and an optional mid-range line. It detects breakouts and retests of those ranges using a percentage buffer, a minimum number of bars outside the

Indicator v6 BreakoutSessions & time
Updated 2 months ago · Custom licence GitHub repository of Luxy Big Beautiful ORB
3 stars

Daily High Levels calculates and tracks regular trading hours (RTH) session open, high, low, and close values for intraday charts based on customizable New York session bounds. It fetches the prior daily close of NQ futures using higher-timeframe data retrieva

Indicator v6 Support & resistanceSessions & time Repaints
Updated 5 months ago · None stated GitHub repository of Daily High Levels
3 stars

This strategy plots Bollinger bands and a simple moving average on the price chart. It opens a short when price crosses above the upper band while below the average, and a long when price crosses below the lower band while above the average. Entries are allowe

Strategy v5 Volatility & bandsMoving averages
Updated 2 years ago · None stated GitHub repository of 周末布林带策略

TRH Hunter AI

by davoodepb
2 stars

This indicator identifies Smart Money Concepts and liquidity levels directly on the price chart. It detects equal highs, equal lows, liquidity sweeps, fair value gaps, order blocks, displacement moves, and market structure shifts such as break of structure and

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 days ago · None stated GitHub repository of TRH Hunter AI

More Pine Script Categories

Browse the whole Pine Library

Related on ForexR

Third-party code. ForexR lists open-source Pine scripts from GitHub; it did not write, test or endorse them, and their summaries are generated automatically from each script's code and README. Indicators describe the past, and a strategy's backtest can look better than live trading. Check a script on a demo account before you rely on it. CFDs and leveraged forex are complex instruments with a high risk of losing money rapidly.

Learn to Use Pine Scripts

Free, plain-English guides: add a script to TradingView, read what it does, test it and avoid the common traps.

  1. 1Using this librarySearch, filters, licences and what the badges mean.
  2. 2Add a script to TradingViewCopy, paste into the Pine Editor, save and add to chart.
  3. 3Indicators, strategies and librariesWhat each type does and how to tell them apart.
  4. 4Spot a script that repaintsWhy some signals change after the bar closes.
  5. 5Backtest a strategyStrategy Tester settings that keep results honest.
  6. 6Send alerts to MT4 or MT5From a TradingView alert to an order in MetaTrader.

Trade Your Charts With a Regulated Broker

Compare regulated brokers on platforms, spreads, minimum deposit and leverage.

Compare brokers