Pine Library · 1,149 open-source scripts

Free Session and Time Pine Scripts (page 16)

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

Midnight VWAP

by TradersPost
228 stars

The Midnight VWAP indicator calculates and overlays two distinct Volume Weighted Average Price (VWAP) lines on the price chart based on customizable session timeframes. It tracks an overnight or pre-market session alongside regular trading hours, resetting cal

Indicator v6 Moving averagesSessions & time
Updated 3 months ago · None stated GitHub repository of Midnight VWAP
46 stars

This indicator plots expected volatility zones on the price chart. It requests the previous daily close of the chart symbol and a user-selected volatility index, then converts the index into log space. Two volatility measures build upper and lower bands at 0.2

Indicator v5 Volatility & bandsSupport & resistance Repaints
Updated 7 weeks ago · None stated GitHub repository of Expected Volatility (Log-Transformed)
6 stars

This indicator detects Turtle Soup liquidity sweeps and Candle Range Theory setups directly on the price chart. It checks breakout distances against ATR boundaries while requiring optional volume spikes and momentum shifts to confirm reversal signals or flag i

Indicator v5 SMC / ICT / price actionSupport & resistance

Grimmarty Backtest

by GreyssonEnterprises
1 stars

A Pine v4 indicator that draws four smoothed moving averages (21, 50, 100 and 200), a trend fill between a short EMA and the 200 average, and three line strike candle markers for bullish and bearish cases. It also shades a time-zone trading session and holds i

Indicator v4 Moving averagesCandlestick patterns
Updated 2 months ago · MIT GitHub repository of Grimmarty Backtest

MTF VİOP Strategy

by trugurpala
4 stars

This overlay strategy combines a higher-timeframe trend filter with chart-timeframe entries. The trend timeframe, default five minutes, uses a fast and slow EMA together with Supertrend. On the chart, recommended at one minute, it looks for an entry EMA cross,

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of MTF VİOP Strategy

LQDT Monitor

by ivansoft
1 stars

An indicator on the price chart that tracks the day's opening price, high and low and marks bars where the bar range moves away from the previous bar, as pressure. A small down character above the bar marks downward pressure, a small up character below the bar

Indicator v6 Sessions & time
Updated 1 year ago · None stated GitHub repository of LQDT Monitor

714AutoM8trDST

by alboogycOdR
6 stars

Calculates Smart Money Concepts market structure elements including internal and swing breaks of structure, change of character, and order blocks directly on the price chart. It highlights bullish and bearish structures, customizable internal and swing order b

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of 714AutoM8trDST
4 stars

This intraday strategy executes trades on the Nikkei 225 index based on exponential moving average crossovers restricted to Tokyo Stock Exchange trading hours (09:00 to 15:30 JST). Long and short positions are taken on fast and slow EMA crossovers during activ

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of Nikkei Japan Strategy [trugurpala]
1 stars

An overlay indicator for the New York morning window that looks for qualified structure breaks on a 5-minute chart. Direction is filtered by a one-hour bias built from swing structure and EMAs. A break must clear swing, channel or session-extreme levels and pa

Indicator v6 BreakoutSessions & time Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of Morning Structure + Flow Research

Hourly Time Levels

by TamaraKGreen
46 stars

Hourly Time Levels plots opening price horizontal lines and text labels at specific user-selected times of the trading day directly on the main price chart. It marks key intraday timestamps such as midnight, market opens, and specific hourly intervals includin

Indicator v5 Support & resistanceSessions & time
Updated 7 weeks ago · None stated GitHub repository of Hourly Time Levels
6 stars

This strategy combines Opening Range Breakout (ORB) mechanics with Inner Circle Trader (ICT) concepts like Fair Value Gaps, Order Blocks, and liquidity grabs. It identifies session opening ranges and generates signals when price breaks out with supporting rela

Strategy v5 BreakoutSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of Advanced ORB + ICT Strategy
4 stars

This strategy calculates fast and slow exponential moving averages, the Relative Strength Index, and the Average True Range directly on the price chart. It enters long positions when the fast EMA crosses above the slow EMA with RSI above the minimum threshold

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of NQ Nasdaq Strategy [trugurpala]

MTF Second-Flip Continuation

by rosijay17-cmd
1 stars

A strategy that trades continuation after a second directional flip, intended for a 15-minute chart. Bias must agree between confirmed one-hour and four-hour structure. Lower-timeframe states are rebuilt relative to the bar open, the setup is frozen once the s

Strategy v6 TrendSessions & time
Updated 7 days ago · GPL-3.0 GitHub repository of MTF Second-Flip Continuation

GrimmTurtleTest

by GreyssonEnterprises
1 stars

A Pine v4 indicator that combines several tools on the price chart: smoothed moving averages of 21, 50, 100 and 200 bars, a trend fill between a fast EMA and the 200 line, a three-line strike candle pattern and engulfing candle markers. A configurable trading

Indicator v4 Moving averagesCandlestick patterns
Updated 2 months ago · MIT GitHub repository of GrimmTurtleTest
46 stars

This indicator calculates and plots the Initial Balance (IB) high, low, and intermediate Fibonacci levels based on a user-defined trading session. It overlays standard deviation channels and mean or median extension levels directly on the price chart. Users ca

Indicator v5 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Initial Balance & Extensions DOW

Advanced ORB + ICT System

by alboogycOdR
6 stars

Advanced ORB + ICT System plots Opening Range Breakout (ORB) levels alongside Inner Circle Trader (ICT) concepts directly on the price chart. It highlights ORB boxes, Fair Value Gaps (FVGs), Order Blocks, liquidity grabs, and key support and resistance levels

Indicator v5 SMC / ICT / price actionBreakout
Updated 7 months ago · None stated GitHub repository of Advanced ORB + ICT System
4 stars

This strategy draws on the price chart and identifies mean-reversion opportunities around daily volume-weighted average price (VWAP) bands. It enters long positions when the price crosses above the lower band while the Relative Strength Index indicates oversol

Strategy v6 Mean reversionSessions & time
Updated 2 months ago · MIT GitHub repository of NQ VWAP Reversion [trugurpala]
3 stars

This indicator calculates and plots the NYSE Cumulative Tick Index as colored candles in a separate pane, with green indicating upward tick trends and red downward trends. Overbought and oversold zones are marked using smoothed averages of high and low tick va

Indicator v5 Oscillators & momentumVolatility & bands
Updated 5 months ago · None stated GitHub repository of CSW Tick Internals
1 stars

A long-only breakout strategy built on a Donchian channel, 25 bars by default, drawn on the price chart as upper and lower lines. At a chosen exchange hour each day it places a buy stop at the previous upper band. The order is cancelled if not filled within a

Strategy v6 BreakoutSessions & time
Updated 2 months ago · None stated GitHub repository of TN Donchian Breakout
46 stars

Initial Balance Statistical Mapping plots the high, low, and midpoint of a defined initial balance session, such as the first hour of trading, directly on the main price chart. It projects statistical extension levels using fixed percentile multipliers (25th,

Indicator v5 Support & resistanceSessions & time
Updated 7 weeks ago · None stated GitHub repository of Initial Balance Statistical Mapping
6 stars

Apex Protocol - The SMC Engine is a Smart Money Concepts indicator designed for price chart analysis across multiple timeframes. It automatically detects key SMC market structure events including Break of Structure (BOS), Market Structure Shifts (MSS), Order B

Indicator v5 SMC / ICT / price actionSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of Apex Protocol - The SMC Engine

ORB Break and Retest v3

by rosijay17-cmd
1 stars

An opening range breakout strategy with two entry modes. Breakout mode enters when price clears the opening range by a tick or ATR-based buffer, and retest mode waits for a pullback to the range boundary using a limit or alternative entry type. The range, entr

Strategy v6 BreakoutSessions & time Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of ORB Break and Retest v3
6 stars

This indicator plots Smart Money Concepts structures directly on the price chart. It identifies and tracks break of structure markers, market structure shifts, fair value gaps, order blocks, and session ranges across London, New York, and Asian trading hours.

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Apex Protocol - The SMC Engine
1 stars

A strategy built on the opening range. It waits for price to break above or below the range, return to the broken level, and then cross back through it in the same direction, at which point it enters. The range duration, buffer percentage, touch or close trigg

Strategy v6 BreakoutSessions & time Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of ORB Break-Return-Cross Strategy
46 stars

Leptokurtic Directional Bias is an overlay indicator that measures kurtosis on a chosen source and marks directional bias on the price chart. The source can be a moving average, ATR, volume, close, or a Bollinger-band trend stop. Bias mode switches among RSI m

Indicator v5 Volatility & bandsMean reversion
Updated 7 weeks ago · None stated GitHub repository of Leptokurtic Directional Bias

Apex Protocol Assistant

by alboogycOdR
6 stars

Apex Protocol Assistant is a Smart Money Concepts indicator designed for session-based trading. It determines market direction using a higher timeframe Exponential Moving Average and highlights Asian range boundaries alongside London and New York killzones. Th

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Apex Protocol Assistant

Andean Scalping

by hasnocool
106 stars

Andean Scalping is a Pine Script v5 strategy template designed for backtesting trading signals. It features session and date-range filtering, directional trade toggles for long and short entries, and optional trend filtering tools including higher-timeframe EM

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Andean Scalping

Apex Protocol Assistant

by alboogycOdR
6 stars

Apex Protocol Assistant is a Smart Money Concepts overlay indicator designed for session-based market structure analysis. It highlights the Asian range, London and New York killzones, and key daily and weekly price levels. The indicator evaluates higher timefr

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Apex Protocol Assistant

Polish

by GreyssonEnterprises
1 stars

This indicator overlays multiple smoothed moving averages, candlestick reversal patterns, and trading session highlights directly onto the price chart. It calculates 21, 50, optional 100, and 200-period smoothed moving averages alongside a short-term moving av

Indicator v4 Moving averagesCandlestick patterns
Updated 2 months ago · MIT GitHub repository of Polish

Opening High Low

by ivansoft
1 stars

Records the high and low of the candle that begins a chosen session window and plots them as circles on the price chart, holding them until the next session start. The session is an input, defaulting to a five-minute window starting at 10:30. It works on intra

Indicator v6 Sessions & timeSupport & resistance
Updated 1 year ago · None stated GitHub repository of Opening High Low

Quick Flip Scalper

by TradersPost
228 stars

This strategy executes an opening-range liquidity fade based on the first candle of a session. It qualifies the opening range against the daily ATR to confirm manipulation or liquidity spikes. If qualified, it searches for reversal candlestick patterns, such a

Strategy v6 Sessions & timeCandlestick patterns
Updated 3 months ago · None stated GitHub repository of Quick Flip Scalper

Archens Shares

by hasnocool
106 stars

Archens Shares is an intraday breakout strategy designed for session-based trading. It tracks the highest high and lowest low from a 30-minute timeframe during a specified session window, defaulting to 09:45 to 10:15. A long position is entered when the closin

Strategy v5 BreakoutSessions & time
Updated 2 years ago · GPL-3.0 GitHub repository of Archens Shares

Apex Protocol Assistant

by alboogycOdR
6 stars

Apex Protocol Assistant is a Smart Money Concepts charting tool designed to identify session-based setups and market structure shifts. It determines directional bias using a higher-timeframe exponential moving average and highlights key trading windows includi

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Apex Protocol Assistant

Daily Levels

by g-moe
3 stars

Daily Levels plots horizontal price offset lines based on the current day's open and previous day's close. Users can define two custom price offsets to project key reference levels above opening and closing values. The indicator renders directly on the price c

Indicator v5 Support & resistanceSessions & time Repaints
Updated 5 months ago · None stated GitHub repository of Daily Levels
46 stars

This overlay indicator marks swing highs and lows with Bill Williams fractals and draws them as offset labels and extended lines on the price chart. Fractal length can be 3, 5, 7, or 9 bars, and an optional filter reduces weaker fractal points. It also plots c

Indicator v5 Support & resistanceSessions & time
Updated 7 weeks ago · None stated GitHub repository of MTF Swing Highs and Lows with Key Levels
6 stars

Apex Protocol Assistant is an intraday technical indicator that overlays smart money concepts and trading session levels directly on the price chart. It evaluates higher timeframe EMA trends, change of character shifts, and fair value gaps. The tool highlights

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Apex Protocol Assistant (Optimized)
4 stars

Visualizes custom trading sessions directly on the main price chart. Highlights active session bars with a light background color, plots intra-session high and low levels, and optionally places labels at session opening and closing bars. Built default for VİOP

Indicator v6 Sessions & timeSupport & resistance
Updated 2 months ago · MIT GitHub repository of Session Highlight [trugurpala]
947 stars

This indicator counts down to a fixed Litecoin halving timestamp in August 2019, using Greenwich Mean Time. It subtracts the current time from that stamp and formats the remaining days, hours, minutes, and seconds. The day, hour, and minute of the target are u

Indicator v4 Sessions & time
Updated 11 days ago · GPL-3.0 GitHub repository of Litecoin Halving UTC Countdown
46 stars

NQ Hourly Retracement Levels highlights NY, London, and Asia trading sessions directly on the price chart. It plots hourly open prices and midpoint retracement levels at the New York session open, filtering levels based on a configurable minimum hit rate thres

Indicator v5 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of NQ Hourly Retracement Levels
3 stars

This indicator tracks the low of day and high of day during the specified RTH session hours in the New York timezone. It calculates the high at the current low of day (lod_h) and the low at the current high of day (hod_l). Horizontal lines are drawn at these l

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Day Trading Reversal System

Setup Backtest

by GreyssonEnterprises
1 stars

A Pine v4 indicator that shades a trading session window on the chart, with an earlier analysis start and a later session start and end, all set in a chosen time zone that defaults to Chicago. Individual weekdays can be switched on or off and the label and col

Indicator v4 Sessions & time
Updated 2 months ago · MIT GitHub repository of Setup Backtest

NQ Statistical Mapper

by TamaraKGreen
46 stars

NQ Statistical Mapper plots key trading sessions including New York, London, and Asia directly on the price chart. It visualizes session high and low ranges, displays configurable session and intraday levels, and presents session performance metrics in an on-s

Indicator v5 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of NQ Statistical Mapper
6 stars

Apex Protocol v3.0 - The SMC Engine is an overlay indicator designed for Smart Money Concepts market structure analysis. It identifies and plots Break of Structure (BOS) and Market Structure Shift (MSS) markers, Fair Value Gaps (FVG), Order Blocks (OB), and se

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of Apex Protocol v3.0 - The SMC Engine

FTB Strategy

by Web3Degenerate
2 stars

The FTB Strategy is a short-only overlay strategy targeting EURUSD during the European session from 0200-0700. It enters short positions when filters confirm RSI overbought, a bullish prior bar close, or a high price level within lookback bars, combined with a

Strategy v5 Mean reversionSessions & time
Updated 2 years ago · None stated GitHub repository of FTB Strategy
1 stars

An overlay indicator that tracks Asia, London and New York sessions in a chosen timezone and classifies how the day is developing into numbered profiles. It adds opening range boxes, previous day high and low sweeps, higher-timeframe market structure, a TDI an

Indicator v6 Sessions & timeSupport & resistance Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of Session Profile + Trading Coach Merged
1 stars

A strategy for gold futures based on the initial balance, the high and low of a set New York time window that starts at 9:30 and ends at 10:30 by default. Ranges outside a minimum and maximum percent of price are skipped. After price breaks the range, it waits

Strategy v6 BreakoutSessions & time
Updated 2 months ago · None stated GitHub repository of TN Gold IB Retracement

NQ Stats - ALN Profiler

by TamaraKGreen
46 stars

Plots trading session ranges for New York, London, and Asia directly on the price chart. The indicator draws customizable boxes highlighting the high and low of each session, with options for dotted borders, background transparency, and identifying labels. It

Indicator v5 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of NQ Stats - ALN Profiler
6 stars

Apex Protocol v3.0 - The SMC Engine is an overlay indicator designed for Smart Money Concepts (SMC) trading strategies. It detects market structure shifts (MSS), breaks of structure (BOS), M5 Fair Value Gaps (FVG), Order Blocks (OB), and Asian session ranges.

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Apex Protocol v3.0 - The SMC Engine

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