Pine Library · 1,149 open-source scripts

Free Session and Time Pine Scripts (page 21)

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

This overlay indicator plots a session VWAP that resets daily plus pivot-anchored VWAP highs and lows. It marks price crosses of those VWAPs, crosses between session and anchored VWAPs, and clusters where several VWAP lines sit close together. Display mode, cl

Indicator v6 VolumeSessions & time
Updated 2 days ago · MIT GitHub repository of VWAP Cross Visuals [WavesUnchained]
6 stars

This indicator identifies and plots custom time-based ranges on the price chart using GMT hours, monitoring for price breakouts within a configurable time window. When price breaks beyond the high or low of the range before expiration, it displays directional

Indicator v5 BreakoutSessions & time
Updated 7 months ago · None stated GitHub repository of MSG Enhanced Range Breakout System

PF Probe 60 Pyramiding Close Id

by pineforge-4pass
1 stars

A test strategy from a reference corpus that checks how closing by order id behaves after several entries have been stacked. It buys one unit at 00:15, 00:30 and 00:45 under the same id and closes all at 01:15, then repeats the pattern on the short side at 12:

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 60 Pyramiding Close Id
106 stars

This intraday strategy enters positions based on an alignment of trend, momentum, and oscillator indicators. It triggers long entries when the Commodity Channel Index is above a positive threshold, a fast Relative Strength Index crosses above a slow RSI, price

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of CCI + EMA with RSI Cross Strategy

PF Probe 61 Same Id Stop Raise

by pineforge-4pass
1 stars

A test strategy from a reference corpus that moves a pending stop entry in one direction before it fills. At 02:15, 02:30 and 02:45 it re-submits a buy stop one tick above the bar high, and at 14:15, 14:30 and 14:45 a sell stop one tick below the bar low, usin

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 61 Same Id Stop Raise

My Script

by be-thomas
65 stars

This indicator calculates and plots the number of bars elapsed since the start of the current trading day. It defines a custom function to identify a new day by monitoring changes in the day of the week attribute across bars. Using the barssince function, it t

Indicator v4 Sessions & time
Updated 5 days ago · GPL-3.0 GitHub repository of My Script
1 stars

This strategy tests pending stop order modification behavior in the Pine Script engine. It enters long or short positions using stop orders triggered at specific times of the trading day. An initial stop order is submitted, then modified on a later bar if no p

Strategy v6 Support & resistanceSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 62 - stop cross before modify
1 stars

This strategy rotates pending stop entries by the clock. Before noon it places a long stop one tick above the bar high and cancels the short order id; from noon it places a short stop one tick below the bar low and cancels the long order id. An open long is cl

Strategy v6 Sessions & timeBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 63 - dual stop cancel rotation
1 stars

This strategy identifies breakouts from session highs and lows on the price chart. It tracks the current session high and low for the configured time window in the specified timezone. Price crosses above the prior session high with an upward EMA trend confirm

Strategy v6 Sessions & timeBreakout
Updated 2 months ago · None stated GitHub repository of Tn Sovereign Session Quant v6
1 stars

A test strategy from a reference corpus that sends two market entry calls with the same order id on the same bar, to see whether they merge or stack. It does this long at 00:15 and closes at 01:15, then short at 12:15 and closes at 13:15. Pyramiding is set to

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 64 Same Id Market Repeat
1 stars

A session-based swing structure indicator drawn on the price chart. For three configurable sessions, by default Asian, London and New York, it finds the highest and lowest pivots and labels them HH or LH and HL or LL. It then draws one Fibonacci or standard-de

Indicator v6 Sessions & timeSupport & resistance
Updated 2 months ago · None stated GitHub repository of Session 2 Swings HH HL LL LH + SD v3
6 stars

NY SMC Suite Multi-Killzone is a Smart Money Concepts indicator that plots session killzones and structural supply and demand zones directly on the price chart. It identifies Order Blocks, Fair Value Gaps, Change in State of Delivery levels, and wick rejection

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Multi-Killzone
6 stars

Plots smart money concepts and session visuals directly on the price chart. It highlights trading killzones with session boxes, draws trend lines, and marks upper or lower wick rejections. Additionally, it identifies Order Blocks (OB), Fair Value Gaps (FVG), C

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Multi-Killzone
1 stars

This strategy tests whether a second strategy.exit call that reuses the same exit id replaces an existing bracket. At 08:15, when flat, it opens one long unit. While long, it submits a one-percent limit and stop, then immediately submits a tighter 0.3 percent

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 67 - same id exit replace
6 stars

This indicator draws six New York killzone boxes on the price chart, covering morning, afternoon, and opening windows plus their extended ranges. It detects order blocks, fair value gaps, and change-in-state-of-delivery marks on a selectable timeframe, and dra

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Multi-Killzone
1 stars

This validation strategy evaluates the execution order when strategy entry and exit orders sharing the same identifier are placed during the same bar calculation pass. It submits paired long and short entry and close orders at specific hours and minutes of the

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 68 - Entry Close Same Pass
1 stars

This Pine Script strategy enters long positions at specific times of day on the price chart. It places entries at 00:15 and 06:15 each day. It then exits or closes positions at 00:45 and 06:45 using a limit order above the average entry price and a stop order

Strategy v6 Sessions & timeMean reversion
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 70 - exit close same pass

NY SMC Suite Pro

by alboogycOdR
6 stars

NY SMC Suite Pro is an overlay indicator that visualizes Smart Money Concepts (SMC) and custom intraday trading sessions on the price chart. It detects and plots order blocks, fair value gaps, liquidity pools, market structure breaks (BOS and CHoCH), and chang

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Pro
1 stars

This strategy runs on the price chart and enters long positions at the top of each hour when the position is flat. It then closes those longs at the end of the hour while simultaneously entering a short position with a stop loss just below the low. Later in th

Strategy v6 Sessions & timeMean reversion
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 72 - opposite entry close
7 stars

This overlay strategy tracks the high and low of a user-defined London session and plots the previous session levels as support and resistance. It flags a break beyond a level when price closes past an ATR buffer, then waits a set number of bars for a retest w

Strategy v5 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of London SR Cleaner WR (TP 0.20)

NY SMC Suite Pro

by alboogycOdR
6 stars

This overlay indicator maps New York smart-money concepts on the price chart. It highlights three killzone sessions, draws order blocks and fair value gaps, and notes change-in-state-of-delivery events plus market-structure shifts. A statistics dashboard score

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Pro

PF probe 73 - minute zero stop

by pineforge-4pass
1 stars

This strategy is a validation probe that places stop orders only when the bar minute is zero. When flat, it enters long at 02:00 with a buy stop one tick above the bar high, and enters short at 14:00 with a sell stop one tick below the bar low. It closes a lon

Strategy v6 Sessions & timeBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 73 - minute zero stop
1 stars

Tn Sovereign VIOP Session v6 is an intraday session-filtered trend-following strategy. It generates buy and sell signals based on fast and slow Exponential Moving Average (EMA) crossovers strictly within specified session hours. Trade risk is managed using ATR

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Tn Sovereign VIOP Session v6

NY SMC Suite Pro

by alboogycOdR
6 stars

NY SMC Suite Pro is a price-chart indicator that marks New York killzone sessions and smart-money structure. It shades the 714 AM, NY Open, and afternoon windows, and it plots order blocks and fair value gaps on a selectable analysis timeframe. Presets switch

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Pro
1 stars

A test strategy from a reference corpus that updates a pending buy stop over four consecutive bars. During the first 45 minutes of the 02:00 hour it submits a buy stop one tick above the bar high with the same order id each bar until it fills, and closes any l

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 74 Four Bar Stop Window

Naga Disp v1

by nishpa800
1 stars

Marks a candle when a very high volume reading and a large displacement happen on the same bar. Volume tiers compare the bar against lookbacks of 1000, 2000, 3000 and 4000 bars, and displacement compares the candle range to a standard deviation multiple with a

Indicator v5 VolumeSessions & time
Updated 2 months ago · None stated GitHub repository of Naga Disp v1

Trailering

by ruckard
13 stars

This strategy enters trades on the price chart using price excursion logic and historical statistical advice to identify market opportunities. Depending on the number of trigger conditions met, it scales capital allocation per position. Exits are managed throu

Strategy v5 Sessions & time
Updated 1 year ago · None stated GitHub repository of Trailering

NY SMC Suite Pro v2.1

by alboogycOdR
6 stars

The NY SMC Suite Pro v2.1 is a TradingView indicator that plots Order Blocks and Fair Value Gaps directly on the price chart to visualize Smart Money Concepts. It also displays customizable trading sessions including 714AM, NY Open, and 714PM with adjustable t

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Pro v2.1

PF probe 75 - stop after flat

by pineforge-4pass
1 stars

This strategy enters long positions at specific time windows on the price chart. It places entries using a stop price set to high plus one tick and closes positions at predefined times during the trading day. The script supports pyramiding up to one position a

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 75 - stop after flat

Strong Gold Signals

by vedkanani123
1 stars

A gold-oriented price-chart indicator that looks for liquidity sweeps followed by a rejection wick. Swept levels can come from macro pivots, the previous higher-timeframe bar, or session highs and lows for Asia, London and New York. Each signal draws a stop be

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Strong Gold Signals

Naga Disp v1 (Tick)

by nishpa800
1 stars

Marks a candle when a very high volume reading and a large displacement happen on the same bar. Volume tiers compare the bar against lookbacks of 1000, 2000, 3000 and 4000 bars, and displacement compares the candle range to a standard deviation multiple with a

Indicator v5 VolumeSessions & time
Updated 2 months ago · None stated GitHub repository of Naga Disp v1 (Tick)

NY SMC Suite Strategy

by alboogycOdR
6 stars

This Smart Money Concepts strategy identifies trading setups based on Order Blocks, Fair Value Gaps, market structure alignment, and defined session killzones directly on the price chart. It calculates a confluence score combining active killzones, order block

Strategy v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Strategy

PF Probe 76 Dual Side No Cancel

by pineforge-4pass
1 stars

A test strategy from a reference corpus that lets a long stop entry and a short stop entry exist at the same time. During the first 45 minutes of the 02:00 hour it places a buy stop one tick above the bar high, and during the 14:00 hour a sell stop one tick be

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 76 Dual Side No Cancel

Naga Disp v2

by nishpa800
1 stars

Marks a candle when a very high volume reading and a large displacement happen on the same bar. Volume tiers compare the bar against lookbacks of 1000, 2000, 3000 and 4000 bars, and displacement compares the candle range to a standard deviation multiple with a

Indicator v5 VolumeSessions & time
Updated 2 months ago · None stated GitHub repository of Naga Disp v2

ORION: Hybrid Strategy

by eddiebelaval
7 stars

This strategy identifies volatility breakout opportunities by constructing dynamic ATR-based price boxes and detecting volatility squeezes. Trades are filtered using an exponential moving average trend condition and designated session hours. Entries trigger up

Strategy v5 Volatility & bandsBreakout
Updated 3 months ago · None stated GitHub repository of ORION: Hybrid Strategy
1 stars

This Pine Script strategy is a test probe designed to evaluate order engine execution around pending stop orders and position closures. On a 15-minute timeframe, it submits a long stop order above the current high at 02:15 UTC and closes open long positions at

Strategy v6 Sessions & timeBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 77 - Stale Stop After Close

Naga Disp v2 (Tick)

by nishpa800
1 stars

Marks a candle when a very high volume reading and a large displacement happen on the same bar. Volume tiers compare the bar against lookbacks of 1000, 2000, 3000 and 4000 bars, and displacement compares the candle range to a standard deviation multiple with a

Indicator v5 VolumeSessions & time
Updated 2 months ago · None stated GitHub repository of Naga Disp v2 (Tick)
6 stars

The ORB + Fib + MACD Indicator combines Opening Range Breakout mechanics with Fibonacci retracement levels and MACD momentum filtering. It determines the high and low bounds of a user-defined initial session window, projects Fibonacci entry zones, and calculat

Indicator v5 Sessions & timeSupport & resistance
Updated 7 months ago · None stated GitHub repository of ORB + Fib + MACD Indicator
1 stars

This strategy generates long entries during the 2:00 to 2:45 hour window by placing a stop order at the current high plus one tick. It produces short entries during the 14:00 to 14:45 hour window with a stop placed at the current low minus one tick. All open p

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 78 - dual four bar no close

Naga Disp v2.1

by nishpa800
1 stars

Marks a candle when a very high volume reading and a large displacement happen on the same bar. Volume tiers compare the bar against lookbacks of 1000, 2000, 3000 and 4000 bars, and displacement compares the candle range to a standard deviation multiple with a

Indicator v5 VolumeSessions & time
Updated 2 months ago · None stated GitHub repository of Naga Disp v2.1
106 stars

This script monitors opening gap conditions and breakout behavior relative to the first candle's range across up to twenty configurable stock tickers. It detects whether following bars remain inside the opening range before breaking out, displaying the status

Strategy v4 Screeners & dashboardsBreakout Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 1St Bar GAP+BkOut Screener v2 by RM

This overlay indicator draws prior month, week, and day reference levels on the price chart, plus current month levels. It plots prior month high and low, open and close, and point of control, current month high and low and point of control, prior week high an

Indicator v5 Support & resistanceSessions & time

ORB + Fib + MACD Strategy

by alboogycOdR
6 stars

This strategy builds a timed opening range and tracks session high and low on the price chart. It flags bullish and bearish breakouts of that range and uses Fibonacci levels for an entry zone, a default stop, and an optional take-profit extension. Take profit

Strategy v5 BreakoutSupport & resistance
Updated 7 months ago · None stated GitHub repository of ORB + Fib + MACD Strategy
1 stars

This strategy probes trading engine behavior on the price chart. It places time-based pending entries with stops: at 2:00 it adds a short with stop at half the low if flat; during the 2:00-2:45 window it adds a long with stop above the high plus tick if flat;

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 79 - far opposite pending

Naga Disp v2.1 (Tick)

by nishpa800
1 stars

Marks a candle when a very high volume reading and a large displacement happen on the same bar. Volume tiers compare the bar against lookbacks of 1000, 2000, 3000 and 4000 bars, and displacement compares the candle range to a standard deviation multiple with a

Indicator v5 VolumeSessions & time
Updated 2 months ago · None stated GitHub repository of Naga Disp v2.1 (Tick)

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