Pine Library · 1,149 open-source scripts

Free Session and Time Pine Scripts (page 17)

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

SMC NQ Pro v3 - Auto SL/TP

by rosijay17-cmd
1 stars

An overlay indicator for smart money concepts on Nasdaq futures. It marks order blocks, fair value gaps, break of structure and change of character, liquidity sweeps and premium and discount zones, with lookbacks for each. London, New York and Asian sessions c

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 7 days ago · GPL-3.0 GitHub repository of SMC NQ Pro v3 - Auto SL/TP

TN HFT Engine

by raybird
1 stars

A smart money style strategy that scores setups from 0 to 100 using market structure, momentum, range context and liquidity sweeps, with fair value gaps and order blocks drawn on the price chart. Trades need a minimum score, optional higher-timeframe agreement

Strategy v6 SMC / ICT / price actionSessions & time
Updated 2 months ago · None stated GitHub repository of TN HFT Engine
46 stars

This indicator tracks regular trading hours for Nasdaq futures on the price chart. It stores the current session open, high, and low and keeps yesterday's RTH high and low. It can draw those levels as lines with labels shifted a chosen number of bars to the ri

Indicator v5 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of NQ Stats - RTH Breaks w/stats
6 stars

Apex Protocol v3.0 plots smart-money structure on the price chart. It marks break of structure and market structure shifts, order blocks, fair value gaps with optional midlines, automatic Fibonacci levels, and higher-high, lower-high, higher-low, and lower-low

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

DMI ADX Signals

by g-moe
3 stars

This indicator combines the Directional Movement Index (DMI) and the Stochastic oscillator to plot directional trade signals directly on the price chart. It offers two distinct signal logic modes: one based on DI line crossovers confirmed by Stochastic levels,

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of DMI ADX Signals

Getting User Input

by Web3Degenerate
2 stars

The script Getting User Input is a Pine Script v5 indicator that demonstrates various user input settings. It provides boolean toggles for on/off states, color pickers, integer and float numeric controls, symbol choices, price levels, price sources, timestamp

Indicator v5 Sessions & time
Updated 2 years ago · None stated GitHub repository of Getting User Input
1 stars

An ICT-style strategy on the price chart that requires two confirmations before entering: an inverse fair value gap flip and a change in state of delivery, which is a structure break from recent swing levels. Optional filters are an EMA trend check, a liquidit

Strategy v6 SMC / ICT / price actionSessions & time
Updated 2 months ago · None stated GitHub repository of TN IFVG CISD Double Confirm

NQ Stats Helper

by TamaraKGreen
46 stars

NQ Stats Helper is an overlay indicator that plots custom trading session ranges, session high and low boundaries, and 50% equilibrium levels directly on the price chart. It visualizes major sessions like New York, London, and Asia with colored range boxes and

Indicator v5 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of NQ Stats Helper

Apex Protocol v3.3

by alboogycOdR
6 stars

Apex Protocol v3.3 is a Smart Money Concepts trading indicator that plots order blocks, fair value gaps, BOS and MSS markers, auto Fibonacci levels, area of interest zones and external internal structures on the price chart. It supports multiple killzone sessi

Indicator v5 SMC / ICT / price actionScalping Repaints
Updated 7 months ago · None stated GitHub repository of Apex Protocol v3.3

This indicator plots entry signals directly on the price chart by combining Directional Movement Index (DMI) and Moving Average Convergence Divergence (MACD) indicators. It offers two distinct signal logic modes that trigger when DMI and MACD confirm each othe

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of DMI ADX Signals with MACD Signals

One Setup for Life ICT

by alvinng214
2 stars

This indicator plots horizontal lines, boxes and text labels on the price chart to mark key trading sessions. It displays daily session ranges, Silver Bullet, LN, NY, PM, London, Prev AM, Lunch and PM sessions using New York timezone calculations. The script c

Indicator v5 Sessions & timeSupport & resistance
Updated 2 months ago · None stated GitHub repository of One Setup for Life ICT

Strong NQ ORB Breakouts

by rosijay17-cmd
1 stars

An overlay indicator for opening range breakouts on Nasdaq futures. The range can start automatically at the session open or use a custom window, with an adjustable length in minutes. A breakout by close or wick produces a signal with a stop based on ATR, the

Indicator v6 BreakoutSessions & time
Updated 7 days ago · GPL-3.0 GitHub repository of Strong NQ ORB Breakouts

Session Filter Template

by TradersPost
228 stars

Session Filter Template highlights major global trading sessions including Asia, London, New York, and a user-defined custom session directly on the price chart. It visualizes active sessions using background color fills, tracks high and low price levels for e

Indicator v6 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Session Filter Template
46 stars

This indicator plots the New York 5-minute and 15-minute Opening Ranges (ORB) directly on the main price chart. It projects opening range boxes along with midlines and median extensions to identify intraday key levels. Additionally, it can draw custom lower ti

Indicator v5 Support & resistanceSessions & time Repaints
Updated 7 weeks ago · None stated GitHub repository of NY Opening Range (Enhanced with LTF)
6 stars

Apex Protocol - The SMC Engine is a comprehensive Smart Money Concepts indicator that overlays key market structure levels directly on the main price chart. It calculates internal and external market structures (BOS and MSS), Order Blocks, Fair Value Gaps (FVG

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

TMA Overlay

by webcrack4
1 stars

TMA Overlay plots four smoothed moving averages of close, with lengths 21, 50, 100 and 200, on the price chart. The 100-period line can be hidden. It fills the area between a two-period EMA and the 200-period smoothed average green or red according to which is

Indicator v4 Moving averagesCandlestick patterns
Updated 9 months ago · None stated GitHub repository of TMA Overlay
46 stars

This overlay indicator maps Asia, London, and New York session ranges on the price chart and compares later price action with the Asia range. It draws optional session boxes, a grid of Asia-range multiples from the New York open, and statistical extension and

Indicator v5 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of NY vs Asia Statistical Levels

AuthLib

by alboogycOdR
6 stars

AuthLib is a Pine Script utility library providing access control and state management structures for technical indicators. It checks callers against a hardcoded array of authorized TradingView usernames before executing operations. The library exports user-de

Library v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of AuthLib

Try Trading Future

by dearvn
257 stars

This futures trading strategy combines Fair Value Gap (FVG) detection filtered by Average True Range (ATR) with multi-timeframe Exponential Moving Averages (8, 55, and 165 lengths). It identifies entry setups during a defined intraday trading session window wh

Strategy v5 SMC / ICT / price actionMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of Try Trading Future

Bar date/time

by be-thomas
65 stars

This indicator plots each bar's opening time as a numeric series in a separate pane. It uses Pine Script's built-in time value and draws one plot, not an overlay on price. There are no inputs, so the line follows the chart's bar timestamps without filters or o

Indicator v4 Sessions & time
Updated 5 days ago · GPL-3.0 GitHub repository of Bar date/time

AuthLib

by alboogycOdR
6 stars

AuthLib is a Pine Script v5 library that checks a caller username against a fixed list and, when authorized, prepares drawings for six killzone sessions. It stores boxes, labels, trend lines and price labels in a DrawingData type. For each window it tracks the

Library v5 Sessions & timeSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of AuthLib
4 stars

This strategy trades USD/JPY on the price chart during Tokyo and London sessions. It enters long when the fast EMA crosses above the slow EMA while price is above the trend EMA and RSI is above its midpoint, and it enters short on the opposite cross. Position

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of USD/JPY Carry Trend [trugurpala]

Volume profile

by dearvn
257 stars

This indicator builds a session volume profile on the price chart for a daily or weekly period. It distributes volume, or open-interest change when that data type is selected, across price rows and plots the point of control plus optional value-area high and l

Indicator v5 VolumeSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Volume profile
46 stars

Range Projections [Statistical Levels] calculates and projects expected price range levels based on historical statistical percentile data for specific trading session opens, such as Globex, London, NY Futures, and NY RTH. It uses day-of-week data to plot stat

Indicator v5 Support & resistanceSessions & time
Updated 7 weeks ago · None stated GitHub repository of Range Projections [Statistical Levels]
4 stars

This strategy trades USD/JPY on the price chart. It enters long when a fast EMA crosses above a slow EMA and short when the fast EMA crosses below, but only during the Tokyo or London sessions in GMT. Each entry places an ATR-based stop loss and take profit us

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of USD/JPY Forex Strategy [trugurpala]

Parity probe 03 - equity mirror

by pineforge-4pass
1 stars

This strategy mirrors TradingView strategy.equity by computing position quantity as equity divided by close at each potential entry bar. It signals long entries every Monday at 00:00 UTC when no position exists and flattens at the next bar open. The overlay=tr

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of Parity probe 03 - equity mirror

VP

by dearvn
257 stars

This indicator calculates and plots a session-based volume profile directly on the price chart. It maps volume distribution across price levels, highlighting key structural reference points including the Point of Control, Value Area High, and Value Area Low. C

Indicator v5 VolumeSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of VP

Session & RTH VWAP

by TamaraKGreen
46 stars

Calculates and plots session Volume Weighted Average Price along with Regular Trading Hours VWAP, historical session tracking, and statistical deviation bands. The script features customizable time zones, session highlighting, and an optional statistics table

Indicator v5 Support & resistanceSessions & time
Updated 7 weeks ago · None stated GitHub repository of Session & RTH VWAP

Complete CRT System

by alboogycOdR
6 stars

This indicator identifies time-based candle range theory patterns on a higher timeframe, defaulting to four hours, and projects the matching high and low lines onto the price chart. The user chooses a 1AM, 5AM, or 9AM CRT model and can toggle fair value gap bo

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Complete CRT System

This strategy generates trading signals using a dual exponential moving average cross confirmed by the Relative Strength Index. It restricts entries to specific market session hours (09:30-18:15 UTC+3) designed for Turkish VIOP index futures. Long positions en

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of VİOP BIST30 Alert Strategy [trugurpala]

This overlay indicator maps ICT Silver Bullet structure on the price chart for the 10-11 AM New York window. It draws demand and supply order blocks and fair value gaps, and marks high and low CISD levels. Users can refine order blocks as defensive or aggressi

Indicator v5 SMC / ICT / price actionSessions & time
Updated 2 months ago · None stated GitHub repository of Silver Bullet ICT Strategy [TradingFinder] 10-11 AM +FVG

HMD Session Candles

by Web3Degenerate
2 stars

This Pine Script indicator plots session summary bars on the price chart for Tokyo, London, and New York sessions. It tracks open, high, low, and close values for each session period defined by user inputs. At session start and end, it draws purple bars showin

Indicator v5 Sessions & timeCandlestick patterns
Updated 2 years ago · None stated GitHub repository of HMD Session Candles
1 stars

This strategy is a parity probe that enters long only when the chart is flat at Monday 00:00 UTC. Position size is left to Pine's percent-of-equity path at 99 percent of equity, with no explicit quantity argument. It closes the position on a later bar after th

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of Parity probe 04 - percent_of_equity sizing

Session Based Statistical Levels w/Closes Table calculates and plots key statistical levels across distinct trading session windows on the main price chart. Traders can select standard global trading sessions such as London, Asia, or New York, set custom sessi

Indicator v5 Support & resistanceSessions & time
Updated 7 weeks ago · None stated GitHub repository of Session Based Statistical Levels w/Closes Table

Complete CRT System

by alboogycOdR
6 stars

This overlay indicator projects higher-timeframe Candle Range Theory levels onto the current chart, with the analysis timeframe defaulting to H4. It draws CRT high and low lines for a selected time-based model, and can show fair value gap boxes and the most re

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Complete CRT System

VİOP Session Strategy

by trugurpala
4 stars

This strategy trades Turkish VIOP BIST 30 futures on the price chart. It opens positions when a fast exponential moving average crosses a slow one, but only while chart time falls inside the 09:30 to 18:15 UTC+3 session. Stop loss and take profit distances are

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

This strategy enters long positions every Monday at 00:00 UTC on the 15-minute chart. It computes quantity as 10 percent of current equity divided by the bar close, rounded to three decimal places for stability. Market orders open the position and it flattens

Strategy v6 TrendMean reversion
Updated 6 days ago · Apache-2.0 GitHub repository of Parity probe 05 - small equity fraction

Session First Bar Range

by TamaraKGreen
46 stars

Session First Bar Range calculates and projects the high, low, and mid-level of the opening bar of a specified higher timeframe session. It draws range boxes directly on the price chart, along with historical ranges, statistical standard deviation levels, and

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 7 weeks ago · None stated GitHub repository of Session First Bar Range
6 stars

The script identifies time-filtered Candle Range Theory (CRT) patterns on higher-timeframe candles using New York session timing. It detects liquidity sweeps and range manipulation setups relative to specific H4 candles for user-selected models, such as 1AM, 5

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Complete CRT System (MTF v2)
3 stars

This strategy overlays three Simple Moving Averages, one Exponential Moving Average, and a dynamic trailing swing line directly on the price chart. It determines market direction by tracking recent highest highs and lowest lows over a customizable swing period

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of EMA Crossover Scott Strategy
1 stars

This strategy opens a long position at the start of each Monday at midnight by sizing it to 50% of current equity divided by the close price. It automatically flattens the position on the next bar close. No stop loss or take profit is used. The strategy runs o

Strategy v6 Sessions & timeMean reversion
Updated 6 days ago · Apache-2.0 GitHub repository of Parity probe 06 - 50% equity sizing

Bgcolor Example

by be-thomas
65 stars

Bgcolor Example demonstrates background chart shading based on trading sessions in Pine Script v4. It evaluates whether the current candle falls into pre-market, regular market, or post-market trading hours using a custom session check on a thirty-minute resol

Indicator v4 Sessions & time
Updated 5 days ago · GPL-3.0 GitHub repository of Bgcolor Example

Session Opening Bar Range

by TamaraKGreen
46 stars

This indicator plots the opening range of selected trading sessions directly on the price chart. Users can choose preset market sessions like New York, London, or Asia, or configure custom time windows. It draws high, low, and midline boundaries for the first

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 7 weeks ago · None stated GitHub repository of Session Opening Bar Range

Gold Breakout Trader

by eddiebelaval
7 stars

Plots timed breakout ranges directly on the price chart, designed for gold trading using dollar-based spacing. At scheduled trigger times or recurring two-hour intervals, it creates a central reference box flanked by upper and lower breakout stop lines, follow

Indicator v6 BreakoutSupport & resistance
Updated 3 months ago · None stated GitHub repository of Gold Breakout Trader

CRT + Turtle Soup Scanner

by alboogycOdR
6 stars

Calculates CRT session range boundaries and detects Turtle Soup setups to identify potential breakout signals. The script tracks session high, low, and midpoint values to determine intraday bias while measuring price break distances against ATR thresholds. It

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT + Turtle Soup Scanner

VWAP Bands [trugurpala]

by trugurpala
4 stars

This indicator plots a volume-weighted average price that restarts at the beginning of each daily session, using typical price and cumulative volume. It draws the VWAP line on the price chart and optional standard-deviation bands at two user-set multipliers. B

Indicator v6 VolumeVolatility & bands
Updated 2 months ago · MIT GitHub repository of VWAP Bands [trugurpala]

SW's Asia/London H/L's

by alvinng214
2 stars

This indicator draws high and low levels for the Asia, London, New York, and Sydney sessions on the price chart. Each session can be enabled separately, with its own line color, thickness, opacity, labels, and an optional vertical line at the session start. It

Indicator v5 Sessions & timeSupport & resistance
Updated 2 months ago · None stated GitHub repository of SW's Asia/London H/L's

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