Pine Library · 1,149 open-source scripts

Free Session and Time Pine Scripts (page 5)

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

Sessions & time: Indicators, Strategies and Libraries

ICT Time Range

by vitahoang
5 stars

This overlay indicator marks configurable trading sessions and higher-timeframe ranges on the price chart. It draws session boxes with optional high, low, open, and middle lines, labels, and background shading, and it can extend those lines through a chosen ti

Indicator v5 SMC / ICT / price actionSessions & time
Updated 3 years ago · None stated GitHub repository of ICT Time Range
4 stars

This strategy executes trades on 5-minute index futures using Exponential Moving Averages, RSI, ADX, and volume filters across multiple timeframes. It supports trend pullback and VWAP reversion regimes with entry confirmation on breakout of prior high or low p

Strategy v6 TrendMean reversion
Updated 2 days ago · None stated GitHub repository of Lucid 100K Prop Bot (MES 5m)
4 stars

JoppanFX | Forex Sessions highlights four major global trading sessions—Sydney, Tokyo, London, and New York—directly on the price chart. The indicator calculates active market hours by converting time into each region's specific IANA timezone, ensuring automat

Indicator v6 Sessions & time
Updated 3 weeks ago · None stated GitHub repository of JoppanFX | Forex Sessions
4 stars

Meridian Futures Levels plots session structure for US index futures on the price chart. It marks the full futures session, overnight high and low, an optional overnight midpoint, and the regular-trading-hours open. It draws a configurable opening range with m

Indicator v6 Sessions & timeSupport & resistance
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Futures Levels

Hedge Fund SMC Strategy - QuantAlgo

by thesenegalesehitch
4 stars

This overlay strategy combines EMA trend following with simple Smart Money Concepts filters. It reads H4 and H1 bias, then looks for a liquidity sweep plus a displacement candle in that direction, gated by ADX, ATR, and volume. Entries are allowed only in Lond

Strategy v6 SMC / ICT / price actionTrend Repaints
Updated 4 months ago · Custom licence GitHub repository of Hedge Fund SMC Strategy - QuantAlgo

OPTD — Opening Range (ORB)

by drewautomates
3 stars

This indicator plots an opening-range high, low, and midpoint on the price chart. The levels build during a user-defined opening window and remain visible through the regular session before resetting the next day. A breakout marker appears after a chosen numbe

Indicator v6 BreakoutSessions & time
Updated yesterday · Custom licence GitHub repository of OPTD — Opening Range (ORB)

RSI Mean Reversion

by GifariKemal
3 stars

This strategy plots entry signals, stop loss, take profit levels, and an information panel directly on the price chart. It combines a relative strength index mean reversion model with ATR percentile thresholds to filter trades based on volatility conditions. T

Strategy v5 Oscillators & momentumVolatility & bands
Updated 4 days ago · MIT GitHub repository of RSI Mean Reversion

BTMM Asian Range

by jcortes254
3 stars

This indicator tracks and visualizes session ranges based on the Beat The Market Maker (BTMM) trading methodology directly on the price chart. It defines and draws session boxes for Asian accumulation, London manipulation, and New York distribution phases. It

Indicator v5 Sessions & timeSupport & resistance
Updated 1 year ago · None stated GitHub repository of BTMM Asian Range
2 stars

Gold Multi-TF NYSE Scalper v2 is an intraday trading strategy for XAUUSD that seeks momentum entries by aligning RSI and EMA bias across multiple timeframes. It filters trades using an optional NYSE session clock and an ATR volatility spike check. Entries exit

Strategy v6 Oscillators & momentumVolatility & bands
Updated 8 days ago · None stated GitHub repository of Gold Multi-TF NYSE Scalper v2

This indicator plots gamma exposure levels, multi-timeframe breakout structure, and trading session ranges directly on the price chart. It parses input strings containing option metrics to display key levels such as Zero Gamma, Max Pain, Expected Move boundari

Indicator v6 Support & resistanceBreakout
Updated 6 weeks ago · MIT GitHub repository of GEX Levels + Breakout Structure + Session AVWAP — NQ/NDX/QQQ

ORB Breakout Alert

by az9713
2 stars

The indicator identifies upside breakouts from the 30-minute US market opening range between 09:30 and 10:00 AM ET. It triggers a signal when price closes above the opening range high before 11:30 AM ET, provided bar volume exceeds a multiplier of the opening

Indicator v5 BreakoutSessions & time
Updated 5 months ago · None stated GitHub repository of ORB Breakout Alert
2 stars

Session Extreme Revisit identifies the highest supply candle and lowest demand candle formed during London and New York sessions and draws extended reaction zones on the price chart. It evaluates candidate candles using size, wick ratio, and displacement filte

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Session Extreme Revisit — Pro
2 stars

This overlay indicator maps a US equity day-trading framework of levels, trend, and patience candles onto the price chart. It plots 8 and 21 SMAs, higher-timeframe 200 SMAs, VWAP, the last five days of premarket highs and lows, and the 9:30–9:45 opening range.

Indicator v6 TrendMoving averages Repaints
Updated 6 months ago · None stated GitHub repository of Day Trading Strategy v2

DR/IDR

by avatar-lavventura
2 stars

This indicator plots Defining Range (DR) and Implied Defining Range (IDR) levels across Regular, After, and Overnight market sessions directly on the price chart. It visualizes high and low range boundaries, midline levels, opening lines, background boxes, and

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of DR/IDR

EMA Trend Surfer

by nxtaiapp
2 stars

This multi-timeframe strategy identifies trend direction using fast and slow exponential moving averages from a higher timeframe while seeking trade entries on a lower timeframe. Trend signals are filtered using minimum EMA percentage separation, an optional A

Strategy v5 TrendMoving averages
Updated 11 months ago · MIT GitHub repository of EMA Trend Surfer

GapDetect

by Electrified-Trading
2 stars

This library determines opening gap severity by calculating the standard deviation of overnight gaps. It exports functions for today's gap value as open minus previous close, gap percent change, and normal daily standard deviation of the gap using a rolling wi

Library v6 Volatility & bandsSessions & time
Updated 1 year ago · MPL-2.0 GitHub repository of GapDetect
2 stars

PriceCatch Intraday Range plots key daily price levels and projections on intraday price charts. It calculates daily open, high, low, and close values using higher-timeframe data requests, drawing reference lines for custom percentage change thresholds and dai

Indicator v6 Support & resistanceSessions & time
Updated 1 year ago · MPL-2.0 GitHub repository of PriceCatch Intraday Range

Custom Session VWAP

by ryangaraygay
2 stars

This indicator calculates and plots a Volume Weighted Average Price (VWAP) restricted to a user-defined trading session on the price chart. It uses the specified source (default hlc3) to compute the VWAP only while the market is in the custom session (default

Indicator v6 VolumeSupport & resistance
Updated 1 year ago · MIT GitHub repository of Custom Session VWAP

Manual DR w/ Waddah

by theupslidedown
2 stars

This indicator calculates and displays Defining Range (DR) and implied Defining Range (iDR) levels across selected trading sessions, such as main, early, and Asian ranges. It plots session high and low lines, extended projections, range boxes, and Fibonacci le

Indicator v5 Support & resistanceSessions & time
Updated 3 years ago · None stated GitHub repository of Manual DR w/ Waddah

Initial Balance

by MuMuLLC
2 stars

The Initial Balance indicator highlights high, low, and 50% midpoint levels calculated over a defined session timeframe, such as the opening hour. It draws primary initial balance bounds, optional extended x2 projection levels, intermediate 50% levels, and sha

Indicator v5 Support & resistanceSessions & time
Updated 3 years ago · MIT GitHub repository of Initial Balance

Gamma/X Killzone Sweeps (strategy)

by OverleveragedWhale
1 stars

A strategy version of the killzone sweep idea. In the Asia, London, New York AM and PM windows it waits for the previous killzone's high or low to be swept and reclaimed, then enters on the close with a stop just past the wick and a fixed point target for ES o

Strategy v6 SMC / ICT / price actionSessions & time
1 stars

A research strategy for the price chart, meant for a five-minute chart with Moscow time. It measures the price move between two time points of the same day, and if the move exceeds a threshold it opens a position at the end of the second slot, either with the

Strategy v6 Sessions & timeMean reversion
Updated yesterday · None stated GitHub repository of Session Triples - 5 Stocks
1 stars

An overlay that builds a skewed same-day iron condor on the S&P 500 index or its ETF and mini equivalents. After an opening observation window it measures price drift and range, then places short strikes at a base distance, shifted asymmetrically when drift is

Indicator v6 Sessions & timeVolatility & bands
Updated yesterday · None stated GitHub repository of ZeroDTE Iron Condor v2

Sleep Zone BG

by jometa9
1 stars

A simple time-based background shader for intraday charts. It colors the chart background inside or outside a chosen daily time range, by default 22:00 to 07:00 in an Argentina timezone, with options for active weekdays, fill mode and colors. Optional dotted v

Indicator v6 Sessions & time
Updated 4 days ago · None stated GitHub repository of Sleep Zone BG

An earlier Pine v6 version of a day trading research strategy for crypto charts. It combines RSI, Fibonacci Bollinger Bands, trend moving average, Ichimoku, pivot support and resistance, candlestick and chart pattern modules into a weighted score. A trading se

Strategy v6 Support & resistanceSessions & time
Updated 11 days ago · MIT GitHub repository of Crypto TA Pro Day Trading S/R Execution v2
1 stars

Measures the high to low range of a morning session and an afternoon session each weekday, defaulting to 0930 to 1200 and 1200 to 1600, and draws them as boxes on the price chart. A dashboard compares the two ranges and keeps statistics over previous days. A w

Indicator v6 Sessions & timeScreeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of AM vs PM Range Analysis

ORB + ICT Backtest Strategy v2

by mccallister-dev
1 stars

This strategy defines opening range breakouts within Asian, London and New York sessions using ATR-based width and buffer filters. It identifies potential entries on breakout after a retest followed by continuation, applying ICT-style context and SMC proxies f

Strategy v6 BreakoutSMC / ICT / price action
Updated 5 weeks ago · None stated GitHub repository of ORB + ICT Backtest Strategy v2

CH033 ORB+ Strategy

by sandovalchristian033
1 stars

A Pine v6 backtest strategy for the New York opening range on index futures. It marks the 09:30 to 09:45 range, then looks for a break by wick or close, a return inside the range, and a close across session VWAP in the opposite direction before entering. Stop

Strategy v6 Sessions & timeBreakout
Updated 2 months ago · None stated GitHub repository of CH033 ORB+ Strategy

Seconds v1

by nishpa800
1 stars

A high-volume plus displacement detection suite that draws 14 marker lanes, seven families on each side. Lanes combine a highest-volume test over a configurable window with a large body displacement, pocket pullback conditions, relative volume tiers and a Naga

Indicator v6 VolumeSessions & time
Updated 2 months ago · None stated GitHub repository of Seconds v1

Session Boxes

by insomniac-asif
1 stars

Draws shaded boxes on the price chart for intraday futures sessions in New York time: pre-market from 4:00, the New York open from 9:30, lunch from 11:00, afternoon from 13:00 and the close from 15:00 to 16:00. Each box spans the high and low of its window, an

Indicator v6 Sessions & time
Updated 2 months ago · MIT GitHub repository of Session Boxes
1 stars

This is a synchronised build of a basket strategy that places a stop entry just beyond the close of a confirmed signal candle, for 10 lots, inside a trading session. Take profit and stop orders are armed together with the entry so same-bar touches execute corr

Strategy v6 ScalpingTrend Repaints
Updated 2 months ago · Custom licence GitHub repository of 5m Weapon One Leg Basket Synced

GrimmArty Strategy

by GreyssonEnterprises
1 stars

A Pine v5 strategy version of a candle and moving average indicator. It draws four smoothed moving averages (21, 50, 100 and 200), a trend fill against the 200 average, three line strike markers and engulfing-style candle markers, and can shade a time-zone tra

Strategy v5 Moving averagesCandlestick patterns
Updated 2 months ago · MIT GitHub repository of GrimmArty Strategy

PineFlow — ICT FVG Liquidity Model

by loveyuanfandj-glitch
1 stars

PineFlow is an ICT-based multi-timeframe strategy that identifies fair value gaps on 4H context and 15m setup timeframes to signal liquidity-driven entries on the 1m execution chart. It plots FVG zones as support and resistance levels directly on the price cha

Strategy v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · MIT GitHub repository of PineFlow — ICT FVG Liquidity Model

Abhi's Live Price Action

by abhinaynatraj
1 stars

An overlay built around quarter theory for NQ and ES style futures. Each hour is split into four 15-minute quarters, and the script tints hours and three-hour blocks, draws quarter dividers, labels in-stat and out-of-stat extremes, marks sweepers, bias shifts

Indicator v6 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Abhi's Live Price Action

Dollar Cross Play

by majohnst
1 stars

The Dollar Cross Play strategy detects price breakouts above a user-defined dollar threshold. It qualifies long entries by verifying that the previous day's close was at or below a maximum ceiling, aiming to capture fresh crosses rather than overextended moves

Strategy v6 BreakoutSupport & resistance
Updated 4 months ago · None stated GitHub repository of Dollar Cross Play

Smart Money Zones PRO

by KavyaBaghel
1 stars

Maps buy and sell zones on the price chart from confirmed pivots with above-average volume, using the nearest opposite-colour candle as the order block. Nearby zones merge within a pip gap and are capped in size, graded by volume, and marked fresh, tapped or w

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of Smart Money Zones PRO
1 stars

This overlay indicator maps smart-money market structure on the price chart. It labels swing points as higher highs, higher lows, lower highs, and lower lows, and draws Break of Structure and Change of Character lines when structure breaks. A multi-timeframe t

Indicator v6 SMC / ICT / price actionScreeners & dashboards
Updated 4 months ago · None stated GitHub repository of SMC Market Structure + MTF

Marketman Intraday Profile Indicator

by brandonking078-boop
1 stars

An indicator for the price chart aimed at index futures such as ES and NQ. It tracks the New York session, building a session volume profile from price and volume to derive the point of control and value area, and shows session VWAP with bands, previous day hi

Indicator v5 VolumeSessions & time
Updated 4 months ago · MIT GitHub repository of Marketman Intraday Profile Indicator

Titan Edge Multi Strategy

by spfogels-web
1 stars

A futures strategy that bundles five entry styles, pivot rejection, dynamic zone rejection, opening range breakout, VWAP rejection and EMA bounce, each of which can be switched on or off. Trades pass optional filters for VWAP, EMA, RSI momentum, volume, a VIX

Strategy v6 BreakoutSupport & resistance
Updated 5 months ago · None stated GitHub repository of Titan Edge Multi Strategy
1 stars

An overlay indicator that tracks the Asia, London and New York sessions in a chosen timezone and draws each session's high, low and opening range. It marks sweeps of the previous session's high or low and reclaims back inside, derives a bullish or bearish sess

Indicator v6 Sessions & timeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT Session Bias v1

AlgoBot FHB Strategy Long Only

by ghostnathan30-ops
1 stars

A long-only first-hour breakout strategy for Nasdaq futures on the 15-minute chart. It records the 9:30 to 10:30 New York range, then enters at the close of the first bar after 10:30 that closes above it while price is above a 50-period EMA. The stop is an ATR

Strategy v6 BreakoutSessions & time
Updated 6 months ago · None stated GitHub repository of AlgoBot FHB Strategy Long Only

Kill Zone Liquidity Sweeps tracks the Asian trading session high and low prices and monitors for liquidity sweeps during the London session. When price temporarily breaches the prior Asian high or low during the London kill zone but closes back within the rang

Indicator v5 SMC / ICT / price actionSessions & time
Updated 6 months ago · MIT GitHub repository of Kill Zone Liquidity Sweeps - Castle Trade
1 stars

An overlay indicator that shades four trading sessions, New York, London, Tokyo and Sydney, with editable hours, colours, labels, range boxes and dividers. It also detects pivot-based order blocks and draws them on the chart, with a mitigation setting that dec

Indicator v6 Sessions & timeSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Sessions + Order Blocks

NQ SSR Strategy

by CathalF
1 stars

The NQ SSR Strategy is a trading strategy for Nasdaq futures contracts. It generates buy and sell signals based on multi-timeframe pivot high and low detection across 4H, 1H and 5M timeframes. Signals are plotted directly on the price chart as entry and exit p

Strategy v6 TrendSupport & resistance
Updated 7 months ago · None stated GitHub repository of NQ SSR Strategy
1 stars

A price-chart overlay for DAX, based on the Advanced School Run Strategy. Inside a configurable session window in Berlin time, it numbers the opening five candles, takes the fourth candle's high and low and draws buy and sell breakout lines offset by a buffer

Indicator v6 Sessions & timeBreakout
Updated 7 months ago · None stated GitHub repository of TraderTom's ASRS Indicator

More Pine Script Categories

Browse the whole Pine Library

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.
  7. 7What Pine Script isThe language, what it can and cannot do, and where to start.
  8. 8Write your first indicatorA complete script, line by line, in the Pine Editor.
  9. 9Read a script before you trust itA routine for checking inputs, logic and red flags.
  10. 10Edit a script safelyChange colours and lengths, add a filter or an alert.
  11. 11Pine Script alertsalertcondition(), alert(), placeholders and webhooks.
  12. 12Build a crossover strategyAn EMA cross strategy with an ATR stop, ready to test.

Trade Your Charts With a Regulated Broker

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

Compare brokers