Pine Library · 1,149 open-source scripts

Free Session and Time Pine Scripts (page 2)

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

ORB Multi-Model Indicator

by BobLeeHacker
2 stars

This indicator plots Opening Range Breakout signals on the price chart for the New York session. It implements nine ORB models with varying conditions including volume filters, RSI thresholds, FVG detection, and compression requirements. Signals display entrie

Indicator v6 BreakoutSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of ORB Multi-Model Indicator

SMC Marks

by kxngHADES
2 stars

This Pine Script indicator automatically marks Smart Money Concepts on the price chart. It identifies swing highs and lows as HH, HL, LH, LL using a configurable swing length. It detects breaks of market structure (BMS/BOS) and changes of character (CHoCH), wi

Indicator v6 SMC / ICT / price actionTrend
Updated 4 weeks ago · None stated GitHub repository of SMC Marks

This indicator plots Gamma Exposure (GEX) levels, market breakout structures, and session anchors directly on the price chart for ES, SPX, and SPY. It renders key options analytics including Zero Gamma, Max Pain, Call and Put Walls, Volatility Bands, and Delta

Indicator v6 Support & resistanceBreakout
Updated 6 weeks ago · MIT GitHub repository of GEX Levels + Breakout Structure + Session AVWAP — ES/SPX/SPY

FYP Bot 1

by aleks-drozy
2 stars

This strategy executes trades based on a combination of Smart Money Concepts, including Inverse Fair Value Gaps (IFVG) and Change in State of Delivery (CISD) structure breaks. Entries require confluence between IFVG flips, structural CISD breaks, a 20-period e

Strategy v6 SMC / ICT / price actionTrend
Updated 2 months ago · MIT GitHub repository of FYP Bot 1
2 stars

Session Extreme Revisit - Lines identifies high and low candles during defined trading sessions, such as London and New York, and projects them on the chart as supply and demand reaction zones. The indicator tracks intraday extreme price ranges and extends rea

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Session Extreme Revisit - Lines

AIO Sniper SMC HUD

by puzzithinker
2 stars

This indicator maps Smart Money Concepts (SMC) directly onto the price chart. It detects swing and internal market structure, strong and weak highs and lows, equal highs and lows, fair value gaps (FVGs), and order blocks (OBs). It also plots premium and discou

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of AIO Sniper SMC HUD
2 stars

The Day Trading Strategy v1 indicator displays key intraday technical levels and signal markers on the main price chart. It plots standard 8 and 21 SMAs, multi-timeframe 200 SMAs (5m, 10m, 1h), session VWAP, pre-market high/low levels, and the initial 9:30–9:4

Indicator v6 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of Day Trading Strategy v1

Normalized Market Monitor

by realanthonyc
2 stars

Normalized Market Monitor scales the price action of two distinct symbols into a normalized oscillator ranging from -100 to +100 over a chosen lookback period. Plotted in a separate pane, the indicator enables traders to observe and compare the relative positi

Indicator v6 Oscillators & momentumSessions & time
Updated 7 months ago · MPL-2.0 GitHub repository of Normalized Market Monitor

Premarket Metrics Dashboard

by realanthonyc
2 stars

This indicator calculates and displays key premarket metrics in a table dashboard located on the top right of the price chart. It tracks the current price, gap percentage relative to the prior day close, overnight trend bias, premarket high and low, overnight

Indicator v6 Screeners & dashboardsSessions & time
Updated 7 months ago · MPL-2.0 GitHub repository of Premarket Metrics Dashboard
2 stars

This indicator plots the previous trading day's high and low on the price chart, together with the developing high and low of the current session. It reads the last closed daily high and low and locks those values at the start of each session. A session window

Indicator v6 Support & resistanceSessions & time
Updated 8 months ago · MPL-2.0 GitHub repository of Previous Day High-Low (PDHL)

EMA Trend Surfer

by nxtaiapp
2 stars

EMA Trend Surfer is a dual-timeframe trend-following strategy designed for index futures such as MES and MNQ. It determines overall trend direction using fast and slow exponential moving averages on a higher timeframe while seeking entry signals on a lower tim

Strategy v5 TrendMoving averages
Updated 11 months ago · MIT GitHub repository of EMA Trend Surfer
2 stars

This indicator tracks and visualizes the previous hourly price range directly on the chart. When an hourly bar closes, it draws a shaded rectangular box spanning the highest and lowest prices of that 60-minute period. As a new hourly session forms, earlier box

Indicator v6 Support & resistanceSessions & time
Updated 1 year ago · MPL-2.0 GitHub repository of PriceCatch - Previous Hour Range

ICT Macros

by klimasevskiy
2 stars

The ICT Macros indicator plots volatility periods based on ICT smart money concepts on the price chart. It highlights London Macros (02:33-03:00, 04:03-04:30), New York AM Macros (08:50-09:10, 09:50-10:10, 10:50-11:10), and New York Lunch + PM Macros (11:50-12

Indicator v5 Volatility & bandsSupport & resistance
Updated 1 year ago · None stated GitHub repository of ICT Macros
2 stars

This indicator marks regular New York Stock Exchange (NYSE) session open (9:30 AM ET) and close (4:00 PM ET) times directly on the price chart. It draws vertical lines and descriptive text labels at historical session boundaries and projects lines forward for

Indicator v6 Sessions & time
Updated 1 year ago · MIT GitHub repository of NYSE Market Lines & Labels
2 stars

This strategy starter boilerplate serves as a backtesting template that overlays directly on the price chart. It sets default position sizing to twenty percent of equity and calculates an exponential moving average alongside high and low price thresholds. Inpu

Strategy v5 TrendMoving averages
Updated 3 years ago · None stated GitHub repository of [CBB] 2023 Strategy Default

Chart Champions Sessions

by ClimberMel
2 stars

The Chart Champions Sessions indicator plots small square markers on the price chart to mark the start and end of major market sessions. It covers Asia, London, New York, close, and specific ASX pre-market and open periods. A top banner dynamically changes col

Indicator v5 Sessions & time
Updated 4 years ago · MIT GitHub repository of Chart Champions Sessions

Gamma/X Killzone Sweeps

by OverleveragedWhale
1 stars

An indicator that watches four ICT-style killzones (Asia, London, New York AM and PM) for a sweep of the previous killzone's high or low followed by a close back inside. It marks the setups on the price chart with a fixed target, a stop just past the wick, opt

Indicator v6 SMC / ICT / price actionSessions & time
Updated yesterday · None stated GitHub repository of Gamma/X Killzone Sweeps
1 stars

A smart money concepts indicator that marks market structure swings, momentum-filtered structure breaks, order blocks with a point of control and a high probability zone score, fair value gaps, liquidity sweeps and equal highs or lows. An optional confluence e

Indicator v6 SMC / ICT / price actionSessions & time
Updated yesterday · None stated GitHub repository of AlphaX Structure Flow Pro
1 stars

Marks the Asia session range on the price chart with a box, high and low lines and Fibonacci retracement levels, and does the same for Monday's range. A display mode filters the levels to all, strong or strongest, where strength reflects confluence outside the

Indicator v6 Sessions & timeSupport & resistance
Updated yesterday · None stated GitHub repository of Asia Session Fib Retracement
1 stars

An overlay for same-day expiry credit spreads on the S&P 500 index that reproduces signals from the author's separate backend. It watches an opening observation window, then flags directional entries when stochastic, RSI, trend, a VWAP alignment gate and a con

Indicator v6 Sessions & timeMean reversion
Updated yesterday · None stated GitHub repository of ZeroDTE Backend Mirror

RiskSentinel Full Context

by imanisworld
1 stars

An indicator built mainly as a data and alert engine for futures. It tracks an opening range window, New York and London sessions, four EMAs, a volume average and break of structure swings, and sends confirmed-bar alerts that carry this context, with a webhook

Indicator v6 Sessions & timeSupport & resistance
Updated 2 days ago · Custom licence GitHub repository of RiskSentinel Full Context

Session Context

by jometa9
1 stars

An overlay that draws higher-timeframe candles on the chart, either over the lower-timeframe bars or projected as a mini chart to the right of the last bar. The timeframe is automatic or custom, drawing can be limited to a time window, and a countdown to the c

Indicator v6 Sessions & timeSupport & resistance Repaints
Updated 4 days ago · None stated GitHub repository of Session Context

A long-only strategy for short-term crypto trading that combines Bollinger Bands, RSI, a 9-period EMA, a 21-period SMA and a Fibonacci window covering about ten minutes of bars. It sizes positions as a percentage of equity and can require a minimum gain before

Strategy v6 ScalpingSessions & time
Updated 7 days ago · None stated GitHub repository of Crypto Long 10m Scalper BB RSI EMA Fib

A strategy that builds a 15-minute opening range box from a configurable session and time zone, drawing its high, midpoint and low lines with price labels. It then trades a break, return and cross sequence around the range, with a reward-to-risk exit model, th

Strategy v6 Sessions & timeBreakout Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of 15-Minute ORB Box Break-Return-Cross Strategy

Session Levels

by allanninal
1 stars

This indicator draws the Asia, London and New York sessions as boxes on the price chart, with the session high and low as the edges, in New York time with daylight saving handled. It also draws the previous day high and low, previous week high and low and toda

Indicator v6 Sessions & timeSupport & resistance
Updated 7 days ago · Custom licence GitHub repository of Session Levels

SMC Zones

by allanninal
1 stars

SMC Zones is an overlay indicator that identifies Smart Money Concepts structure on the price chart using closed-bar logic. It calculates and plots order blocks, fair value gaps, BOS and CHoCH break lines, and optional liquidity sweeps. Users can adjust swing

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 7 days ago · Custom licence GitHub repository of SMC Zones

Prior Day Breakout

by allanninal
1 stars

This strategy plots the previous trading day's high and low on the price chart and enters on the first close beyond either level, once per side per day, between 01:00 and 20:00 server time. A long starts above the high and a short below the low. The stop sits

Strategy v6 BreakoutSupport & resistance
Updated 7 days ago · Custom licence GitHub repository of Prior Day Breakout

This strategy trades the New York open on the price chart using an ICT workflow. It sets a higher-timeframe bias from an EMA, structure and session VWAP, requires SMT divergence against a correlated symbol, then waits for an inverse fair value gap and enters o

Strategy v6 SMC / ICT / price actionSessions & time
Updated 11 days ago · MIT GitHub repository of NY Open ICT: HTF Bias + SMT + IFVG Retrace

A Pine v6 day trading research strategy for crypto charts. It blends RSI, Fibonacci Bollinger Bands, trend and higher timeframe filters, pivot support and resistance zones, Ichimoku and pattern modules into a weighted score for entries. A session filter, auto-

Strategy v6 Support & resistanceSessions & time
Updated 11 days ago · MIT GitHub repository of Crypto TA Pro Day Trading S/R Execution
1 stars

This strategy identifies an Opening Price Range during a specified time window and trades breakouts above or below the established range during the New York trading session. Entries can be filtered using optional RSI extremes and EMA trend direction, restricte

Strategy v6 BreakoutSessions & time
Updated 12 days ago · None stated GitHub repository of NQ NY Session OPR Breakout Strategy

Session Sweep Model

by kxngHADES
1 stars

Detects liquidity sweeps of the Asian or London session range, followed by a reclaim and a break of structure, on the 5-minute chart. It plots entry, stop and take-profit levels with a reward-to-risk target, skips setups whose stop exceeds a multiple of ATR, a

Indicator v6 SMC / ICT / price actionSessions & time
Updated 13 days ago · Custom licence GitHub repository of Session Sweep Model

Combo

by pouyA-png
1 stars

This strategy executes opening range breakout trades during regular trading hours. It calculates a 15-minute opening range high and low alongside a 20-period EMA and a 14-period ATR. Long entries trigger when price crosses above the opening range high while hi

Strategy v5 BreakoutSessions & time
Updated 2 weeks ago · None stated GitHub repository of Combo
1 stars

Visualises a 15-minute opening range breakout routine for the cash session open. It marks the first 15-minute range, waits for a candle close beyond it, then simulates one trade per day by default with the stop at the breakout candle extreme. Exits can trail s

Indicator v6 BreakoutSessions & time
Updated 2 weeks ago · None stated GitHub repository of Patrick 15m Opening Range
1 stars

A Pine v6 indicator that puts intraday reference points on the price chart. It draws Asia, London, New York AM and PM session boxes and kill zones, session highs and lows that extend until swept, period opens with previous highs and lows, fair value gaps, and

Indicator v6 SMC / ICT / price actionSessions & time Repaints
Updated 2 weeks ago · Custom licence GitHub repository of Arnoldd Key Levels, Gaps and Kill Zones

Opening range breakout

by yawningmonsoon
1 stars

This strategy builds an opening-range high and low during a user-defined session, then waits until that session ends. A close above the range enters long and a close below it enters short. The long exit uses the range low as the stop and a limit one range-widt

Strategy v5 BreakoutSessions & time Repaints
Updated 2 weeks ago · MIT GitHub repository of Opening range breakout

GOD Conviction Engine

by Oluwacutyp
1 stars

A large all-in-one overlay aimed at gold and Bitcoin charts. It combines trend EMAs, an HMA baseline, an elastic EMA, order blocks, fair value gaps, breaker blocks, liquidity sweeps, an Asian range box, key levels, VWAP, market structure and several tables inc

Indicator v6 SMC / ICT / price actionTrend
Updated 2 weeks ago · Unlicense GitHub repository of GOD Conviction Engine

Key Levels + Multi-Period VWAP

by RealTrueReality
1 stars

A Pine v6 indicator that draws key reference levels on the price chart as lines with right-edge labels. Levels include period opens, previous highs, lows and midpoints for day, week, month and quarter, a Monday range, and daily, weekly and monthly anchored VWA

Indicator v6 Support & resistanceVolume Repaints
Updated 2 weeks ago · MPL-2.0 GitHub repository of Key Levels + Multi-Period VWAP
1 stars

This indicator draws a developing current-day point of control, value area high, and value area low on the price chart for intraday timeframes. It builds an approximate volume profile by distributing each stored chart bar's volume across a configurable number

Indicator v6 VolumeSupport & resistance
Updated 3 weeks ago · MIT GitHub repository of [ad] Current Day POC / VAH / VAL

FVG Prob TW Strategy

by gplee789-afk
1 stars

This strategy trades Taiwan-stock fair value gaps on the price chart. It marks gaps that pass an ATR size and displacement filter, tracks inverse FVGs, internal order-block retests and sweeps, and scores enabled triggers with fixed weights. A signal confirms o

Strategy v6 SMC / ICT / price actionSessions & time
Updated 3 weeks ago · MPL-2.0 GitHub repository of FVG Prob TW Strategy

Gap and Go

by JACKZHOU0521
1 stars

This overlay indicator measures the opening gap between the session open and the prior daily close, then checks whether price continues to hold beyond that close. After a user-defined opening window in minutes, it marks an up signal when an up gap holds and th

Indicator v6 BreakoutSupport & resistance
Updated 5 weeks ago · None stated GitHub repository of Gap and Go

ORB + ICT Backtest Strategy v1

by mccallister-dev
1 stars

A Strategy Tester script for opening range breakouts during Asian, London or New York sessions. The range length is selectable, and entries use a close breakout, a break with retest, or a fuller sequence including a liquidity sweep and reclaim. Direction, bias

Strategy v6 BreakoutSessions & time
Updated 5 weeks ago · None stated GitHub repository of ORB + ICT Backtest Strategy v1

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