Pine Library · 1,149 open-source scripts

Free Session and Time Pine Scripts (page 22)

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

1 stars

This strategy tracks the high and low price levels established during the Tokyo trading session (00:00–08:00 UTC) and seeks breakout entries during the London and New York sessions. Long trades trigger when price breaks above the Tokyo high, confirmed by price

Strategy v6 BreakoutSessions & time
Updated 2 months ago · None stated GitHub repository of TN Tokyo Breakout Refined v6
6 stars

This Pine Script indicator calculates the Opening Range Breakout (ORB) high and low within user-defined New York or London session times. It plots a colored box on the price chart marking the ORB range and its start bar index. After the session ends it detects

Indicator v5 BreakoutSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of ORB + ICT Hybrid Indicator
1 stars

This validation strategy tests broker execution priority when opposing pending stop orders are active simultaneously. At scheduled times (02:45 and 14:45), when flat, it places paired long and short stop orders at percentage offsets from the closing price. Pos

Strategy v6 BreakoutSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 80 - Dual Stop Priority

SMC Strategy Hub + Alerts

by eddiebelaval
7 stars

This indicator marks market structure shifts when price closes beyond the prior lookback high or low, then labels a buy or sell with an ATR-based stop and a take-profit distance set by the TP multiplier. Optional boxes highlight bullish and bearish fair value

Indicator v5 SMC / ICT / price actionBreakout
Updated 3 months ago · None stated GitHub repository of SMC Strategy Hub + Alerts
6 stars

This indicator tracks opening range breakout (ORB) windows for the London and New York sessions and identifies ICT-style liquidity grabs. It calculates the high and low boundaries during the configured session periods and plots visual boxes directly on the pri

Indicator v5 BreakoutSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of ORB + ICT Hybrid Indicator
1 stars

This Pine Script v6 strategy is a validation probe that places competing stop entries close to price. At 02:45, while flat, it submits a long stop slightly above the close and a short stop slightly below the close. At 06:15, if a position is open, it closes ev

Strategy v6 BreakoutSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 81 - dual stop near only

TL Range X V3

by vedkanani123
1 stars

An indicator for the price chart that builds a ladder of resistance and support levels from a daily range divided by a divisor, measured from the daily, weekly or monthly open, with extra levels unlocking on strong runs and optional Fibonacci lines inside each

Indicator v6 Support & resistanceSessions & time Repaints
Updated 2 months ago · None stated GitHub repository of TL Range X V3

ORB + ICT Hybrid Strategy

by alboogycOdR
6 stars

This strategy builds a New York and London opening range from user-set start and end times and stores the session high and low on the price chart. After the range, it flags a bullish or bearish liquidity grab when price trades beyond the prior range and closes

Strategy v5 Sessions & timeSMC / ICT / price action Repaints
Updated 7 months ago · None stated GitHub repository of ORB + ICT Hybrid Strategy
1 stars

This strategy places two stop orders at 14:45 when flat: a long stop slightly above the close and a short stop slightly below it. Whichever stop fills first opens the position. At 18:15 it closes any open position. Quantity is fixed at one, with zero commissio

Strategy v6 BreakoutSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 82 - dual stop far only

ORB ON SLVRBL

by alboogycOdR
6 stars

ORB ON SLVRBL is a strategy that combines Opening Range Breakouts with ICT Silver Bullet concepts, including Fair Value Gaps (FVG) and Market Structure Shifts (MSS). It identifies breakouts based on candle closes or wicks within designated session windows. Tra

Strategy v5 SMC / ICT / price actionBreakout Repaints
Updated 7 months ago · None stated GitHub repository of ORB ON SLVRBL
1 stars

This Pine Script strategy draws on the price chart with overlay=true. It enters long and short positions using stop orders at the current close price at specific session times of 4:45 and 16:45. It then closes all open positions at 8:15 and 20:15. The strategy

Strategy v6 Sessions & timeScalping
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 83 - dual stop open tie
106 stars

This Pine Script strategy identifies potential Buy Today, Sell Tomorrow (BTST) opportunities based on price action and volume patterns. It calculates a 20-period simple moving average of volume and checks for three consecutive bullish candles with higher highs

Strategy v4 TrendVolume
Updated 2 years ago · GPL-3.0 GitHub repository of 3 Higher High Price & Vol

ORB Silver Bullet

by alboogycOdR
6 stars

This overlay indicator marks an opening-range breakout for a chosen session and combines it with fair value gaps, market structure shifts, order blocks, and optional liquidity sweeps. Buy and sell signals depend on the selected execution type, close or wick br

Indicator v5 SMC / ICT / price actionBreakout
Updated 7 months ago · None stated GitHub repository of ORB Silver Bullet
3 stars

This strategy calculates a Volume-Weighted Moving Average Convergence Divergence (VWMA MACD) and its histogram average to generate trade signals in a separate pane. It enters long positions when the MACD histogram crosses above its simple moving average and sh

Strategy v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of MACD VWMA Strategy
1 stars

A test strategy from a reference corpus that checks whether the order in which two stop entries are submitted changes which one fills. At 02:45 it submits a long stop 0.2 percent above the close, then a short stop 0.2 percent below. Any open position is closed

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 84 Dual Stop Long First
1 stars

This validation probe strategy tests how TradingView handles dual stop-order priority based on script source order. At a fixed time of 02:45, when no position is open, it submits a short stop order below the close followed by a long stop order above the close.

Strategy v6 BreakoutSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 85 - Dual Stop Short First
6 stars

The Professional ORB + ICT System combines Opening Range Breakout (ORB) techniques with Smart Money Concepts on the price chart. It defines session opening ranges across major global sessions, classifies range width using ATR metrics, and tracks Relative Volum

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

PF Probe 86 Dual Stop Low First

by pineforge-4pass
1 stars

A test strategy from a reference corpus that places a long stop and a short stop at the same time, 0.2 percent above and below the close of the 02:45 bar. It only does so on bars where the open is nearer to the low than to the high, so the price path is expect

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 86 Dual Stop Low First
1 stars

A gold-focused price-chart indicator that measures rolling correlation between the chart symbol and the dollar index, and when the correlation is inverse enough it generates signals from RSI crossing its oversold and overbought levels. It adds a Supertrend tre

Indicator v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Wake Up, Neo Gold/DXY Confluence
6 stars

This indicator marks a trading session in the GMT+2 timezone and builds a price range from the four hours before the session starts. It requests one-minute highs and lows, stores the range extremes, and draws two horizontal lines on the price chart that extend

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Range Rejection Trading Indicator

Market View++

by g-moe
3 stars

Market View++ is a multi-symbol market overview dashboard indicator that displays metrics across multiple financial assets on the price chart. It tracks up to ten customizable individual symbols alongside grouped composites, calculating key metrics such as rel

Indicator v5 Screeners & dashboardsSessions & time
Updated 5 months ago · None stated GitHub repository of Market View++
1 stars

A test strategy from a reference corpus that places a long stop and a short stop at the same time, 0.2 percent above and below the close of the 02:45 bar. It only does so on bars where the open is nearer to the high than to the low, so the price path is expect

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 87 Dual Stop High First
3 stars

Matt Moheeka Candles repaints price chart candles using custom color rules based on session timing and price action structures. It identifies and highlights session opening candles, long-wick reversal candles such as hammers or shooting stars, and doji pattern

Indicator v5 Candlestick patternsSessions & time
Updated 5 months ago · None stated GitHub repository of Matt Moheeka Candles
1 stars

This strategy places long and short entries on the price chart at fixed daily times of 8:00 and 20:00. It uses fixed position sizing of 1 share with pyramiding set to 1, so only one position is held. At entry it immediately sets a three-way bracket exit that i

Strategy v6 ScalpingSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 88 - 3-way exit set once

TnS_ICT_Combo_V6

by raybird
1 stars

TnSovereignIctComboV6 is a multi-confluence ICT SMC strategy on the price chart. It calculates HTF EMA bias, killzone sessions, FVG detection, liquidity sweeps, market structure shifts, premium discount arrays and V17 fractal gate to achieve minimum confluence

Strategy v6 SMC / ICT / price actionTrend
Updated 2 months ago · None stated GitHub repository of TnS_ICT_Combo_V6
3 stars

This indicator combines Bollinger Bands, fractal detection, and RSI-based swing analysis within a customizable trading session. It identifies regular or Bill Williams fractals during active session hours and generates long or short signals when fractal extreme

Indicator v5 Volatility & bandsSessions & time
Updated 5 months ago · None stated GitHub repository of MCF and Trendy Pipsy

This Pine Script strategy acts as a validation probe to examine TradingView order execution when using trail_points without an explicit trail_offset. It enters a long position at 08:00 and a short position at 20:00 when flat, setting wide 5% protective stop-lo

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 89 - trail_points 8 + far stop/limit
7 stars

This indicator identifies a specific anchor candle based on user-defined start hour, start minute, and time zone inputs. It calculates the high-to-low price range of that anchor bar to project entry levels, stop losses, and target levels for both buy and sell

Indicator v5 BreakoutSupport & resistance
Updated 3 months ago · None stated GitHub repository of XAUUSD Dynamic Breakout + SL Points

SMC Killzone Engine

by alboogycOdR
6 stars

This overlay indicator tracks smart-money points of interest during optional London, New York, and Asian killzones. It can detect fair value gaps, order blocks, breakers, and mitigation blocks using separate entry, point-of-interest, and structure timeframes.

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

This strategy is a validation probe that places one long at 08:00 and one short at 20:00 when flat, using a fixed quantity of one. Each entry is paired with a stop 10 price units away, a limit 20 units away, and a trailing stop of 8 points. Orders process on b

Strategy v6 ScalpingSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 90 - narrow stop/limit + trail8
1 stars

This strategy is a validation probe that opens one long at 08:00 and one short at 20:00 when the position is flat. Each entry sets an ATR-based stop, a limit at twice that stop distance, and a trailing stop whose trail points equal the current ATR. ATR length

Strategy v6 Volatility & bandsSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 91 - atr trail fixed entry

TnS_IctCombo_V6

by raybird
1 stars

This Pine Script strategy identifies high-confluence trading opportunities using ICT and SMC logic. It calculates a confluence score from HTF bias via EMA, FVG detection with lookback, liquidity sweep confirmation, market structure shift breaks, premium discou

Strategy v6 SMC / ICT / price actionTrend Repaints
Updated 2 months ago · None stated GitHub repository of TnS_IctCombo_V6
6 stars

This multi-timeframe indicator combines Smart Money Concepts (SMC) with customizable session killzones for London and New York trading. It identifies market structure points such as Break of Structure (BOS) and Change of Character (CHoCH), alongside Points of

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of SMC Killzone State Engine Enhanced
1 stars

This validation strategy tests position reversal mechanics via stop orders without explicit closing calls. It executes a long market entry at 00:15 when flat, then submits a short stop entry just below the bar low at 00:45 to trigger an automated position flip

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 92 - flip stop no paired close

TNT Opening Drive OD

by nishpa800
1 stars

Detects opening drive moves on the price chart by combining displacement, swing structure and return-to-level checks into named bull and bear signals. Inputs set sensitivity, swing length, the displacement deviation length and multiplier, and return percentage

Indicator v5 Sessions & timeVolatility & bands
Updated 2 months ago · None stated GitHub repository of TNT Opening Drive OD
1 stars

This validation strategy tests TradingView order execution behavior and position sizing during stop-entry position flips when pyramiding is set to 2. It opens long entries at specific times of day (0:15 and 6:15), sets opposite stop orders paired with exit com

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 93 - flip stop pyramiding 2
1 stars

Detects opening drive moves on the price chart by combining displacement, swing structure and return-to-level checks into named bull and bear signals. Inputs set sensitivity, swing length, the displacement deviation length and multiplier, and return percentage

Indicator v5 Sessions & timeVolatility & bands
Updated 2 months ago · None stated GitHub repository of TNT Opening Drive OD v2
1 stars

Overlay indicator for detecting extreme opening-drive anomalies, drawing swing-based zones and many combined markers. Version three adds a conditional gate requiring a relative volume, Grand Slam, unified combo, all-time high volume, HCT or large displacement

Indicator v5 BreakoutSessions & time
Updated 2 months ago · None stated GitHub repository of TNT Opening Drive OD v3
1 stars

A test strategy from a reference corpus that checks order flipping with stop entries set so far from price that they always fill at the next bar open. At 08:00 it places a short stop entry and at 14:00 a long one, closing the opposite position each time, so ea

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 95 Multi-Cycle Open Fill Stops
1 stars

Detects opening drive moves on the price chart by combining displacement, swing structure and return-to-level checks into named bull and bear signals. Inputs set sensitivity, swing length, the displacement deviation length and multiplier, and return percentage

Indicator v5 Sessions & timeVolatility & bands
Updated 2 months ago · None stated GitHub repository of TNT Opening Drive OD v3
1 stars

A test strategy from a reference corpus that repeats an order-flipping check with processing of orders at bar close switched on. At 08:00 it places a short stop entry and at 14:00 a long one, with stops set so far away that they fill at the next open, and clos

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 96 Multi-Cycle POOC Cross-Bar

8 Whittle Down

by hasnocool
106 stars

This strategy executes short positions during the end-of-day session (14:29–15:00) when the price is below the 200-day simple moving average. If price moves higher against the initial short trade, it scales into the position by submitting a second short order

Strategy v4 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 8 Whittle Down

New 30 Min Bar

by be-thomas
65 stars

This indicator detects the start of a new 30-minute bar. It defines a helper that reads the time of a given resolution and returns true when that time is valid and differs from the previous bar. The script calls the helper with a 30-minute resolution and plots

Indicator v4 Sessions & time
Updated 5 days ago · GPL-3.0 GitHub repository of New 30 Min Bar

Trailering V005

by ruckard
13 stars

Trailering V005 is an automated trading strategy template designed for integration with the Zignaly platform. It calculates position sizing and entry conditions based on price excursion and historical statistical metrics, adjusting exposure depending on trigge

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

Market Sessions by Leviathan highlights key global trading sessions including Tokyo, London, New York, and Sydney directly on the main price chart. It renders customizable colored boxes for each session based on UTC times. Additional visual features include se

Indicator v5 Sessions & time
Updated 8 months ago · None stated GitHub repository of Market Sessions - By Leviathan

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