Pine Library · 1,149 open-source scripts

Free Session and Time Pine Scripts (page 13)

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

Monday Range (Lines)

by alvinng214
2 stars

This indicator plots key levels from historical Monday sessions, including Monday High, Low, Open, Close, and custom ratio levels such as the equilibrium line. Extending these level lines across the trading week, it draws reference levels and labels directly o

Indicator v6 Support & resistanceSessions & time Repaints
Updated 2 months ago · None stated GitHub repository of Monday Range (Lines)

Z-Score Highlighter

by ryangaraygay
2 stars

Calculates the Z-score of closing prices over a specified moving average period and standard deviation length. It identifies potential statistical outliers by checking if the Z-score breaches positive or negative threshold levels during a user-configurable tra

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · MIT GitHub repository of Z-Score Highlighter
257 stars

Donald SPX - Options Trading is an overlay indicator designed for intraday SPX analysis. It plots a 200-period Weighted Moving Average (WMA) on the price chart while evaluating multi-timeframe market structure across Daily, 15-minute, 5-minute, and 2-minute ba

Indicator v5 Moving averagesTrend Repaints
Updated 7 weeks ago · None stated GitHub repository of Donald SPX - Options Trading

Zen Toolkit ETH

by Zen-Tim
29 stars

This indicator plots intraday reference levels, projection targets, and opening range boundaries tailored for continuous electronic trading session instruments such as gold. It calculates Average Bar Range targets in bullish and bearish multiples, previous day

Indicator v6 Support & resistanceSessions & time
Updated 2 weeks ago · MIT GitHub repository of Zen Toolkit ETH
9 stars

Peak Trading Activity Graphs displays historical market activity across cyclical timeframes directly on the main chart using an on-screen dashboard table. It evaluates volume or volatility across selected periods, including hours of the day, days of the week,

Indicator v6 VolumeVolatility & bands
Updated 4 months ago · MIT GitHub repository of Peak Trading Activity Graphs [LuxAlgo]

Static Lines

by lunarticktrading
7 stars

Static Lines calculates and draws key daily price levels directly on the main price chart. It plots horizontal lines for the previous daily open, high, low, and close, as well as the current daily open. Traders can customize individual line colors, toggle spec

Indicator v6 Support & resistanceSessions & time Repaints
Updated 2 weeks ago · None stated GitHub repository of Static Lines
3 stars

This strategy evaluates price movement over a specified lookback period against custom percentage or price change thresholds. It generates buy or sell signals when movement rules are met, overlaid directly on the price chart. Users can customize entry criteria

Strategy v5 BreakoutOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Bars%Move Strategy

This indicator identifies ICT trading setups by detecting Order Blocks, Fair Value Gaps, and Change in State of Delivery levels directly on the price chart. It highlights supply and demand zones alongside specific time windows such as the New York AM and PM se

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of One Trading Setup ICT [TradingFinder] Sweep Session FVG
257 stars

This indicator plots a 200-period weighted moving average (WMA) on the main chart and monitors price deviations across multiple timeframes. It retrieves daily, 15-minute, 5-minute, and 2-minute price data to track distance from the 200 WMA relative to key sess

Indicator v5 Moving averagesSessions & time Repaints
Updated 7 weeks ago · None stated GitHub repository of Donald SPX - Options Trading
106 stars

This strategy places buy-stop and sell-stop orders around the opening-session high and low, offset by a user-defined pip gap, and only allows those orders during a separate trading session. It exits with a fixed or ATR-based stop loss and a matching take-profi

Strategy v5 Sessions & timeBreakout Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 50 Pips A Day Strategy - Kaspricci

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

This overlay indicator maps an opening drive for a chosen session, using the first 30 or 60 minutes. It tracks drive high, low, midpoint, range, pace, and volume versus a multi-session average, then projects continuation lines from the drive edge and fade line

Indicator v6 Sessions & timeSupport & resistance
Updated 2 months ago · MIT GitHub repository of Capital41 Opening Drive Playbook

Monthly Seasonality

by piecioshka
2 stars

Monthly Seasonality colors the price chart background according to the calendar month using an HSV color wheel gradient spanning winter through autumn. Primarily designed for monthly timeframes, it helps identify recurring seasonal cycles across markets, such

Indicator v6 Sessions & time
Updated 12 days ago · MIT GitHub repository of Monthly Seasonality
1 stars

This strategy trades based on calculated astronomical lunar phases. It computes the current lunar day using a fixed 29.53-day cycle from a reference timestamp to identify full moon and new moon events. Full moons trigger long entries, while new moons trigger s

Strategy v5 Sessions & time
Updated 8 days ago · None stated GitHub repository of Moon Phases Long/Short Strategy

XSP Daily Lotto

by majohnst
1 stars

This strategy models a zero-days-to-expiration (0DTE) Opening Range fade system on the price chart, designed around Mini-SPX index options. It calculates an opening range box and gauges directional sentiment from an external symbol like ES futures. Bullish con

Strategy v6 Sessions & timeSupport & resistance
Updated 4 months ago · None stated GitHub repository of XSP Daily Lotto

NY Anchor Range FVG Breakout

by riegodavid-git
1 stars

An overlay indicator that marks an anchor range during a configurable morning session, by default 09:00 to 10:00 New York time. It detects a breakout from that range, sets a bullish or bearish bias, and finds fair value gaps in the breakout leg. It then tracks

Indicator v5 SMC / ICT / price actionBreakout
Updated 4 months ago · None stated GitHub repository of NY Anchor Range FVG Breakout

VWAP Bounce & Cross

by Basant1Saini
1 stars

This strategy trades intraday price interactions with the Volume Weighted Average Price (VWAP). It offers bounce and crossover entry modes, filtered by an Exponential Moving Average trend filter and a customizable trading session window. Stop loss levels are c

Strategy v5 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of VWAP Bounce & Cross

A chart-overlay indicator that detects pivot-based swings and marks break of structure and change of character events. It measures the percentage size of each move that follows and sorts it into four levels with adjustable minimum and maximum percentages. Labe

Indicator v5 SMC / ICT / price actionSessions & time
Updated 9 months ago · None stated GitHub repository of BOS/CHoCH Impulsive Move Detector

Session Raid Stats

by TamaraKGreen
46 stars

Session Raid Stats highlights custom session price ranges and projects range extension lines at fixed point intervals above and below session highs and lows. It identifies liquidity raids exceeding user-defined point thresholds within a specified time cutoff f

Indicator v6 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Session Raid Stats
43 stars

Donald - AI Futures is a price-chart strategy that estimates inner and outer high-low zones and a smoothed close with rational quadratic kernel regression. It builds bullish and bearish momentum signals, optionally compares volume with a volume-weighted moving

Strategy v5 Oscillators & momentumSMC / ICT / price action Repaints
Updated 2 years ago · None stated GitHub repository of Donald - AI Futures

Zen Trading Toolkit

by Zen-Tim
29 stars

Zen Trading Toolkit is an overlay indicator that plots average bar range measured-move targets from the prior regular-hours close, plus optional yesterday high, low, close and range projections. It draws an N-bar opening-range box and a volatility table of ave

Indicator v6 Volatility & bandsSupport & resistance
Updated 2 weeks ago · MIT GitHub repository of Zen Trading Toolkit
6 stars

This indicator draws Wednesday high, low, and open lines and daily midnight high and low lines on the price chart. It captures the first Wednesdays of each month around 20:30 SAST, shifting the clock for US daylight saving time, and plots the high and low of t

Indicator v6 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of WED & MIDNIGHT DST System (Alerts)
3 stars

Identifies continuation trade setups based on Beat the Market Maker (BTMM) second-leg patterns directly on the price chart. It defines trading session phases across Asian, London, and New York sessions, filters impulse legs using fast and slow exponential movi

Indicator v5 SMC / ICT / price actionSessions & time
Updated 1 year ago · None stated GitHub repository of BTMM Second Leg Confirmation

HTF Candles & Pivots

by itmakesyousick
2 stars

Plots higher-timeframe candlestick overlays and pivot points directly on the price chart. It draws HTF candle bodies and wicks using boxes and lines across custom or auto-selected higher timeframes. The indicator can also compute and display traditional pivot

Indicator v5 Candlestick patternsSupport & resistance
Updated 3 years ago · None stated GitHub repository of HTF Candles & Pivots

Silver Setup Indicator

by GreyssonEnterprises
1 stars

An indicator that flags paint bars, meaning candles whose low is above the high from two bars earlier or whose high is below the low from two bars earlier. Signals are limited to up to three user-defined sessions on weekdays, with a daily close check at 1 PM P

Indicator v5 Sessions & timeSupport & resistance
Updated 3 months ago · MIT GitHub repository of Silver Setup Indicator
1 stars

This overlay indicator calculates intraday standard deviation sigma bands using live implied volatility from VIX or a manual percentage input. Designed for index options credit spread placement, it projects 1s, 2s, and 3s expected move boundaries anchored to e

Indicator v5 Volatility & bandsSupport & resistance
Updated 4 months ago · None stated GitHub repository of 3s Credit Spread [DTO]

Smart Levels Pro

by Focal-QuantAI
1 stars

An indicator on the price chart that draws previous day, previous week and previous month highs and lows as extended horizontal lines, with choices for colour, style and width. Optional equilibrium lines mark the midpoint of each high and low pair. It also sho

Indicator v6 Support & resistanceSessions & time
Updated 6 months ago · None stated GitHub repository of Smart Levels Pro

Hello World

by fiji-solutions
1 stars

This indicator plots a background color fill on the price chart to highlight a specific time session. It checks if the current time falls within the user-defined session range and colors the background red when active. The main setting lets users customize the

Indicator v5 Sessions & time
Updated 2 years ago · None stated GitHub repository of Hello World

Session Range Projections

by TamaraKGreen
46 stars

Session Range Projections measures the high-low or open-close range of a user-defined session and projects that range on the price chart. It draws horizontal range and deviation lines, optional range boxes, range extensions, and true standard deviations at sel

Indicator v6 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Session Range Projections

Zen Trading Toolkit

by Zen-Tim
29 stars

The Zen Trading Toolkit calculates and projects key volatility levels, intraday targets, and session statistics on the price chart. It features three main components: ABR-based measured moves projected from the prior day's close and extremes, an opening range

Indicator v6 Support & resistanceVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Zen Trading Toolkit

Market Sessions

by benso87
24 stars

This indicator highlights major regional trading sessions directly on the price chart, including Asia, Europe, and America. Users can customize the exact start and stop times in UTC for each region, as well as the background fill colors. Additional settings al

Indicator v5 Sessions & time
Updated 4 years ago · MPL-2.0 GitHub repository of Market Sessions

This indicator implements an ICT Silver Bullet trading framework directly on the price chart. It detects and visualizes Fair Value Gaps (FVG), Market Structure Shifts (MSS), Order Blocks, Breaker Blocks, Breaks of Structure (BOS), and Equal Highs/Lows across d

Indicator v5 SMC / ICT / price actionSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of ICT Silver Bullet Flux Charts v2 - Claude

This strategy builds the opening range high and low during the first configurable minutes of the New York regular session, then enters on a close break of that range. A long triggers when price crosses above the range high while flat; a short triggers on a cro

Strategy v6 BreakoutSessions & time
Updated 2 months ago · MIT GitHub repository of ES Opening Range Breakout [trugurpala]

An overlay indicator that records the high and low of a configurable opening range, starting at a set market open hour and minute, and projects the average, sub-levels and second and third support and resistance lines from it. It also plots 9 and 21 EMAs with

Indicator v5 Sessions & timeSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of OR Levels + EMA Cross Integrated

Silver Setup Strategy

by GreyssonEnterprises
1 stars

A strategy version of the paint bar setup. It detects candles whose low is above the high from two bars earlier, or the mirror case, and trades only inside up to three user-set sessions on weekdays. Inputs set the take profit multiplier, stop offset in bars, a

Strategy v5 Sessions & timeSupport & resistance
Updated 3 months ago · MIT GitHub repository of Silver Setup Strategy

MES + XSP Busby Pivot

by majohnst
1 stars

This indicator draws Busby-style pivot levels on the price chart for XSP, using a selectable MES or ES futures symbol. It stores New York premarket highs, lows, and closes on the chart and on a 15-minute MES series, then builds an opening-range box after the r

Indicator v5 Support & resistanceSessions & time
Updated 4 months ago · None stated GitHub repository of MES + XSP Busby Pivot

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