Pine Library · 1,149 open-source scripts

Free Session and Time Pine Scripts (page 9)

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 Pullback

by Prat617
1 stars

This strategy identifies an Opening Range based on user-defined Eastern Time session parameters and waits for a breakout. Rather than chasing the initial move, it enters positions when price pulls back to retest the Opening Range boundary with volume and EMA t

Strategy v6 BreakoutMoving averages
Updated 7 months ago · MIT GitHub repository of ORB Pullback
1 stars

This strategy builds the high and low of a configurable Asian session and locks that range when the session ends. During the London window it enters long when price closes above the range high plus a pip buffer, or short when it closes below the range low minu

Strategy v5 BreakoutSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of London Breakout - Session Strategy
1 stars

A strategy built around the first regular-session candle of the US day in New York time, together with rejection levels collected from wicks formed during pre-market and after-hours sessions. Rejection levels within a tolerance percentage are grouped. Options

Strategy v5 BreakoutSessions & time
Updated 11 months ago · Custom licence GitHub repository of Breakout Strategy - Step by Step

algo-trade-indian

by akash-yellgetti
1 stars

A strategy-type script for the price chart that marks the high, low and midpoint of the first part of each session, set by start hour and minute inputs, with alerts for price crossing above the high or below the low. It also plots VWAP, pivot-based support and

Strategy v5 Sessions & timeSupport & resistance
Updated 2 years ago · None stated GitHub repository of algo-trade-indian
1 stars

A strategy framework that provides switches for ATR bands, a trading session, a trend filter, three moving averages and take profit and stop loss levels. It has a session and weekday filter, backtest start and stop dates, and a long, short or both setting. Tak

Strategy v5 Sessions & timeVolatility & bands Repaints
Updated 4 years ago · None stated GitHub repository of Hotch Break Strat (Template)

3C QFL Mean Reversal

by hasnocool
106 stars

3C QFL Mean Reversal is a strategy based on the Quickfinger Luc (QFL) trading methodology. It identifies breakdown buying opportunities below established price base levels and enters mean-reversion trades. The strategy includes multi-safety order DCA scaling,

Strategy v5 Mean reversionSupport & resistance Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 3C QFL Mean Reversal

BTC True Scalp

by iamrichardD
57 stars

This strategy runs an ultra-fast MACD in a separate pane to capture short-term momentum scalps. It filters trade entries using micro-trend direction, volume spikes, and candle body strength within specified session hours. Positions default to two percent of eq

Strategy v6 Oscillators & momentumScalping Repaints
Updated 1 year ago · Apache-2.0 GitHub repository of BTC True Scalp

Day Trading

by iamc1oud
56 stars

This indicator plots global forex trading sessions, opening ranges, and opening channels for Sydney, Tokyo, Frankfurt, London, and New York markets. It calculates and draws daily reference levels based on Average True Range (ATR) multipliers from the day open

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of Day Trading

IB / ORB Live Stats

by TamaraKGreen
46 stars

This overlay indicator marks the New York initial balance and a configurable opening range on the price chart and reports live range statistics in two tables. It builds an IB box for a default 09:30–10:30 ET window, an ORB box from 09:30 for a set number of mi

Indicator v6 Sessions & timeBreakout
Updated 7 weeks ago · None stated GitHub repository of IB / ORB Live Stats

Turtle MACD Time-Zone Filter

by skywalker0803r
42 stars

This strategy enters long when price closes above the prior Donchian high and short when it closes below the prior Donchian low, only while flat and inside a Taipei-hour window. It exits on a MACD histogram reversal or through an ATR stop and a percentage take

Strategy v5 BreakoutOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Turtle MACD Time-Zone Filter

LoD Intraday Entry

by ChartsLector
41 stars

This overlay indicator marks the current day's low and a suggested entry zone a fraction of daily ATR below that low. It compares daily volume with a volume moving average, plots daily SMA and EMA distance, and draws an optional ATR-width price cloud. Labels c

Indicator v6 Support & resistanceVolatility & bands
Updated 3 days ago · None stated GitHub repository of LoD Intraday Entry
23 stars

Point-Clip Unified Indicator plots breakout and directional labels on the price chart. It scores volume spikes against a volume average, range or opening-range breaks, optional VWAP or session-anchored VWAP, fast and slow EMA trend, and a higher-timeframe EMA

Indicator v6 BreakoutVolume Repaints
Updated 3 weeks ago · Custom licence GitHub repository of Point-Clip Unified Indicator

Bandz Session Ranges + ORG + Opening Prices plots trading session ranges, killzones, opening RTH gaps, standard deviation projections, and key opening prices directly on the price chart. It calculates gap ranges based on prior regular trading hours close sourc

Indicator v6 Sessions & timeSupport & resistance
Updated 2 weeks ago · MPL-2.0 GitHub repository of Bandz Session Ranges + ORG + Opening Prices

New Script

by shibisuriya
18 stars

This indicator checks whether intraday bars fall within a specified time range and places a text label displaying the hour and minute above each qualifying candle on the main price chart. Users can configure the start hour, start minute, end hour, and end minu

Indicator v4 Sessions & time
Updated 4 years ago · None stated GitHub repository of New Script

Market Monitor 5m

by chris-c-thomas
14 stars

Market Monitor 5m is an intraday context overlay designed for 5-minute chart analysis. It calculates directional bias using exponential moving averages, VWAP, TTM Squeeze volatility state, NYSE TICK market breadth, and ATR volatility regimes. The script plots

Indicator v6 Screeners & dashboardsSupport & resistance Repaints
Updated 6 months ago · MIT GitHub repository of Market Monitor 5m

Lazarus3 Backtest

by ysdede
12 stars

This strategy executes a fixed sequence of buy and sell orders on the BTC-USD pair at predetermined timestamps on the 2-hour chart. It uses an initial capital of 10000 with 0.2 percent commission to calculate position sizes. Orders are placed with specific qua

Strategy v4 ScalpingSessions & time
Updated 5 years ago · None stated GitHub repository of Lazarus3 Backtest

Swing Strategy

by JoelPasapera
11 stars

This strategy executes trades based on specific days of the week. It opens a long position when the current day matches the primary day input and closes the position whenever the chart moves to a day other than the secondary day input. Settings allow traders t

Strategy v6 Sessions & time
Updated 5 months ago · Apache-2.0 GitHub repository of Swing Strategy

This strategy plots a 90-period exponential moving average from the weekly and daily charts plus a daily session VWAP on the price chart. It enters long when the weekly VWAP is above the weekly average and the daily VWAP crosses above the daily average, and en

Strategy v5 TrendMoving averages Repaints
Updated 3 years ago · MIT GitHub repository of 1W Bullish Buy 1D Bearish Sell Session EMA

FX Market Sessions

by itmakesyousick
7 stars

This overlay indicator draws up to three named trading sessions, defaulting to London, New York, and Tokyo, as colored boxes on the price chart. It uses a selectable timezone and optional history, and each session can be extended, given Fibonacci levels, or gi

Indicator v5 Sessions & timeSupport & resistance
Updated 3 years ago · None stated GitHub repository of FX Market Sessions

Forever Model v2.0

by alboogycOdR
6 stars

This indicator maps Smart Money Concepts (SMC) elements directly onto the main price chart. It detects Fair Value Gaps (FVGs), external range liquidity, and confirmation lines across automatic or manual higher timeframes. The script highlights key ICT trading

Indicator v6 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Forever Model v2.0
4 stars

This intraday strategy executes trades using dual EMA crossovers and RSI mean-reversion near VWAP. Designed primarily for 5-minute index futures charts like ES and MES, it offers momentum entries on fast and slow EMA crosses confirmed by VWAP, as well as count

Strategy v6 Moving averagesOscillators & momentum
Updated 2 days ago · None stated GitHub repository of Ultimate Combo v2 (Relaxed)
4 stars

Meridian Options Levels plots clustered reaction zones on the price chart for liquid options underlyings. It groups nearby candidate levels using confirmed daily ATR distance and tick or percent tolerances, then sizes each zone between minimum and maximum ATR

Indicator v6 Support & resistanceSessions & time
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Options Levels

PropFirm Elite Strategy - QuantAlgo

by thesenegalesehitch
4 stars

This price-chart strategy scores Smart Money Concepts setups from break of structure, fair value gaps, order blocks, and volume spikes. A minimum score, optional London and New York killzones, and four-hour plus daily bias filter entries. Position size uses a

Strategy v6 SMC / ICT / price actionSessions & time
Updated 4 months ago · Custom licence GitHub repository of PropFirm Elite Strategy - QuantAlgo

BTMM Entry System

by jcortes254
3 stars

The BTMM Entry System is a price-chart overlay indicator based on the Beat the Market Maker methodology. It detects Optimal Trade Entry (OTE) second-leg patterns and Fibonacci zones, combined with multi-factor confluence analysis including EMA alignments, sess

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of BTMM Entry System
2 stars

This intraday strategy is designed for 5-minute ETF trading, specifically tailored for leveraged assets like TQQQ. It evaluates simple moving average alignment across three lengths and calculates consecutive rising or falling bars over a lookback window to ide

Strategy v6 TrendMoving averages
Updated 8 days ago · None stated GitHub repository of TQQQ MA Accumulation v3-5m

Daily Seasonality

by piecioshka
2 stars

Daily Seasonality colors the chart background according to the day of the week to highlight recurring weekly price patterns. It draws distinct rainbow color overlays directly on the main price chart for each day from Monday to Sunday. Users can adjust backgrou

Indicator v6 Sessions & time
Updated 11 days ago · MIT GitHub repository of Daily Seasonality
2 stars

This strategy captures momentum moves on gold by combining Bollinger Band breakouts with EMA trend confirmation. It restricts trade entry to active European and US trading sessions based on specified hours. Exits are managed dynamically through an ATR-based in

Strategy v6 BreakoutTrend
Updated 4 months ago · None stated GitHub repository of XAUUSD Momentum Breakout Strategy

This overlay indicator builds a weighted volume profile over a chosen number of bars and plots pivot points with a point of control line on the price chart. Volume can be weighted toward recent, normal, or past bars, and swing length, row count, and alignment

Indicator v5 VolumeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Weighted Volume Profile Pivot Points | Flux Charts

2b Reversal

by ashwagamma
2 stars

This indicator identifies 2B reversal patterns across auto-detected or user-defined price levels on the chart. It monitors breakdowns and breakouts against key references such as regular trading hours highs and lows, overnight swings, previous day boundaries,

Indicator v5 BreakoutSupport & resistance
Updated 1 year ago · None stated GitHub repository of 2b Reversal
1 stars

An overlay for the S&P 500 index that measures the opening range over an observation window, classifies the day as volatile or not by comparing that range with the daily ATR, and projects high and low boundaries for the session. Reversal signal triangles appea

Indicator v5 Sessions & timeMean reversion
Updated yesterday · None stated GitHub repository of ZeroDTE Range Predictor

Model X

by Just-beyond-z
1 stars

An overlay that draws 4-hour, 7-hour and daily candles next to the current chart and marks the closes of the second and third candles in a multi-candle framework, with an optional alert on the third. It can show previous day, week and month high and low levels

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 13 days ago · None stated GitHub repository of Model X

ORB + Targets

by kasutu
1 stars

An opening range breakout indicator that records the high and low of a configurable session window (default 06:00 to 06:20 in a chosen timezone) and draws them on the price chart. After the window closes it marks a close beyond either edge, optionally requirin

Indicator v6 Sessions & timeBreakout
Updated 2 weeks ago · None stated GitHub repository of ORB + Targets

Strategy Template

by MoDarK-MK
1 stars

This strategy template provides a modular foundation for building TradingView v6 backtests. It uses a placeholder Exponential Moving Average crossover signal combined with customizable filters for higher-timeframe trend alignment, volatility regime thresholds,

Strategy v6 TrendMoving averages
Updated 7 weeks ago · MPL-2.0 GitHub repository of Strategy Template
1 stars

A counter-trend strategy that fades price when it reaches a Pivot Point SuperTrend band, selling into upward stretches and buying into downward ones. Signals can fire on a touch of the band, on a regime flip, or both. Optional filters use the opening range of

Strategy v6 Mean reversionSessions & time
Updated 2 months ago · None stated GitHub repository of Contra Pivot SuperTrend Fade

Predicted Gold Signals

by XingHan98
1 stars

An overlay indicator for a five-minute gold chart that stops with an error on any other timeframe. At 08:00 and 19:00 Singapore time on weekdays it draws a buy and a sell entry line from the prior close with fixed offsets, a fixed dollar stop, and three take p

Indicator v5 Support & resistanceSessions & time
Updated 2 months ago · None stated GitHub repository of Predicted Gold Signals
1 stars

An overlay that trades pullbacks to VWAP in the direction of a higher-timeframe EMA trend. In an uptrend with VWAP rising it signals a buy when price dips back to VWAP, and in a downtrend a sell when price rallies to it. A stricter grade needs price to have st

Indicator v6 Mean reversionTrend
Updated 4 months ago · None stated GitHub repository of VWAP Pullback A+ Dip Scanner

NQ VIX IB Levels

by qmqvt44stq-del
1 stars

An indicator for the price chart that draws intraday price levels above and below the session by blending an initial balance extension with a volatility-index implied move, then adding a point offset. The volatility index is chosen automatically from the futur

Indicator v6 Support & resistanceVolatility & bands
Updated 4 months ago · None stated GitHub repository of NQ VIX IB Levels

MTF RSI Signals

by iyoshikawa
1 stars

This indicator plots multi-timeframe RSI signals on the price chart. It calculates a smoothed RSI using short and long periods with EMA smoothing, then applies a Stoch filter for direction changes. Signals trigger on crossovers and levels, combined with ADX tr

Indicator v5 Oscillators & momentumTrend Repaints
Updated 5 months ago · None stated GitHub repository of MTF RSI Signals

Eminiplayer Zones

by onlyspx
1 stars

This indicator turns pasted text lines of low price, high price and a zone label into horizontal zones on the price chart, for S&P 500 futures or index charts. For index symbols it subtracts a configurable futures-to-index spread from the zone prices. It can a

Indicator v5 Support & resistanceSessions & time
Updated 6 months ago · None stated GitHub repository of Eminiplayer Zones

AlgoBot VWAP Pullback Strategy

by ghostnathan30-ops
1 stars

A futures strategy for 15-minute charts that builds a daily-reset VWAP with standard deviation bands. It requires several consecutive bars on one side of VWAP, then a pullback to within a small percentage of it and a bar closing in the trend direction. Entries

Strategy v6 TrendSessions & time
Updated 6 months ago · None stated GitHub repository of AlgoBot VWAP Pullback Strategy
1 stars

This intraday strategy identifies mean-reversion fade setups around the previous day's high and low (PDH/PDL). Operating within a configurable morning session window, it seeks rejection setups confirmed by volume spikes above an average threshold. Trades use s

Strategy v6 Mean reversionSupport & resistance
Updated 7 months ago · MIT GitHub repository of PDH/PDL Mean Reversion Fade

Draws dashed horizontal lines at the highs and lows of previous days, weeks and months on the price chart. Each period has its own colour and a lookback count for how many past periods to show. An optional gradient fades older levels, and projections extend pr

Indicator v5 Support & resistanceSessions & time Repaints
Updated 9 months ago · MPL-2.0 GitHub repository of Daily Weekly Monthly Highs & Lows

Lab-Doi-04

by theteelek
1 stars

This strategy plots on the price chart and uses daily EMA crossovers to generate signals for opening long positions in crypto trading. It activates between user-defined start and end dates and enters long trades when the fast EMA exceeds the slow EMA with bar

Strategy v6 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Lab-Doi-04

Fx Market Sessions

by munlit
1 stars

An overlay indicator that draws trading session boxes and labels for London, New York, Tokyo and optionally Sydney, using a chosen timezone. Each session has its own time range, colour, label and option to extend. Optional kill zone windows for open, rally and

Indicator v5 Sessions & time
Updated 1 year ago · None stated GitHub repository of Fx Market Sessions

Daily OHLC

by JoeTonDev
1 stars

An overlay that draws the current day's open, high, low and close as lines or markers on any intraday chart by requesting daily data. The open line is green when price is above it and red when below, and an optional background tint and a small triangle marker

Indicator v5 Support & resistanceSessions & time Repaints
Updated 2 years ago · None stated GitHub repository of Daily OHLC

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