Pine Library · 1,149 open-source scripts

Free Session and Time Pine Scripts (page 10)

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

algo-trade-indian-commodity

by akash-yellgetti
1 stars

A strategy-type script for the price chart that draws the high, low and midpoint of the first part of each session, set by start hour and minute inputs, with alerts when price crosses the high or low. It adds VWAP and a SuperTrend with adjustable ATR period, m

Strategy v5 Sessions & timeTrend
Updated 2 years ago · None stated GitHub repository of algo-trade-indian-commodity

Hotch Build File

by rajatjpatel
1 stars

A strategy template rather than a finished system. It provides a session filter, weekday selection, backtest start and stop dates, a long, short or both direction setting, and plots for stop loss, take profit and entry price while a trade is open. The long and

Strategy v5 Sessions & time Repaints
Updated 4 years ago · None stated GitHub repository of Hotch Build File

Day Trading Booster

by iamc1oud
56 stars

Day Trading Booster plots session highlights for Sydney, Tokyo, Frankfurt, London and New York sessions on the price chart. It shows opening ranges for selected sessions and day open reference levels derived from ATR. A tabular view displays global forex marke

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

The IB/ORB Statistical Mapper plots Initial Balance (IB) and Opening Range Breakout (ORB) ranges for 5-minute, 15-minute, and 60-minute windows relative to the New York session open. It renders colored boxes, midpoints, and open lines directly on the price cha

Indicator v6 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of IB/ORB Statistical Mapper (hardcoded)

Time and schedule

by JoelPasapera
11 stars

This strategy opens a long or short position on a chosen weekday when the chart hour falls inside a user-defined start and end window. With the buy toggle on, it enters long near the window start and short near the window end; turning the toggle off reverses t

Strategy v6 Sessions & time Repaints
Updated 5 months ago · Apache-2.0 GitHub repository of Time and schedule
11 stars

This indicator marks regional trading hours on the price chart by painting the background when the current bar falls inside a configured session. It checks, in order, the EU, EU plus UK, Shanghai, and Japan or Nikkei sessions and applies a fixed colour for the

Indicator v4 Sessions & time
Updated 2 years ago · MIT GitHub repository of Foreign Markets Timing

This strategy overlays a 90-period simple moving average from the one-hour and four-hour charts with a daily session VWAP on the price chart. It buys when VWAP is at or above the four-hour average and crosses above the one-hour average, and sells short in the

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

FX Market Sessions

by itmakesyousick
7 stars

This overlay indicator draws up to four Forex trading sessions on the price chart, defaulting to London, New York, Tokyo, and Sydney. Each session uses a chosen timezone and clock range and can show a colored session range, an optional extension, Fibonacci lev

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

Institutional Bias Scanner draws a multi-symbol dashboard on the price chart together with optional session overlays. It watches sixteen user-selected symbols that default to major forex pairs, gold, the dollar index, equity indices, oil and crypto. Theme and

Indicator v6 Screeners & dashboardsSessions & time
Updated 7 months ago · None stated GitHub repository of Institutional Bias Scanner

PropFirm Ultra Strategy - QuantAlgo

by thesenegalesehitch
4 stars

This strategy overlays the price chart and combines Smart Money Concepts with prop-firm account limits. It scores setups using break of structure, fair value gaps, order blocks, volume spikes, and optional London or New York killzones. Entries use a minimum sc

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

Lakshmi Strategy v1

by voletiramu
2 stars

This strategy draws supply and demand zones on the price chart based on manual inputs. It executes trades when price reaches zone levels and fires decoded signals from the Ghost Trade Pro methodology. Entries use percent-of-equity position sizing with a defaul

Strategy v6 Support & resistanceSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Lakshmi Strategy v1

Failed Breakdown

by ashwagamma
2 stars

Failed Breakdown identifies and tracks key session support levels—including overnight lows, daily lows, and afternoon lows—and detects potential failed breakdowns against them. The indicator monitors price penetration to classify breakdowns into soft, medium,

Indicator v5 BreakoutSupport & resistance
Updated 1 year ago · None stated GitHub repository of Failed Breakdown

This indicator plots a short and a long simple moving average on the price chart and marks buy and sell labels when they cross, but only inside a user-set clock window. The short and long periods and the start and end times, entered as HHMM integers, control t

Indicator v5 Moving averagesSessions & time

Inverse Choppiness Index

by ryangaraygay
2 stars

This indicator calculates the Choppiness Index to gauge market consolidation versus trending conditions. When the Choppiness Index indicates high choppiness above a threshold of 50 during a defined trading session, the script plots a transparent rectangle over

Indicator v5 TrendVolatility & bands
Updated 1 year ago · MIT GitHub repository of Inverse Choppiness Index

ZeroDTE Wave v1

by xynkro
1 stars

An overlay that marks reversal entries and exits for same-day index option trades on five-minute bars. Entries need a stochastic reversal cross, an EMA trend filter, a cooldown and a time window, and must pass a confluence score, a VIX stand-aside gate, an opt

Indicator v5 Mean reversionSessions & time
Updated yesterday · None stated GitHub repository of ZeroDTE Wave v1

This indicator calculates and plots key market profile structure from previous sessions, including Value Area High, Value Area Low, Point of Control, and session High/Low levels, alongside the current session's Opening Range. User settings allow customization

Indicator v6 Sessions & timeSupport & resistance
Updated 13 days ago · MPL-2.0 GitHub repository of Taught to Trade - Session Range & Value Area Map
1 stars

An overlay indicator that rebuilds opening range levels for one chosen historical date. After the selected number of opening candles from a set market open time, it draws the range high, low and average, then first, second and third resistance and support line

Indicator v5 Sessions & timeSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of Dynamic OR Historical Levels

VWAP Signal Suite

by JACKZHOU0521
1 stars

This indicator calculates a session-resetting Volume Weighted Average Price (VWAP) along with inner and outer standard deviation bands plotted directly on the price chart. It provides bar-close confirmed visual signals for VWAP crossovers, pullback reclaims fo

Indicator v6 Moving averagesVolatility & bands
Updated 5 weeks ago · None stated GitHub repository of VWAP Signal Suite
1 stars

Overlay indicator for XAUUSD gold that draws predicted support and resistance levels at 08:00 and 19:00 SGT on the price chart along with buy and sell take-profit levels spaced by ATR multiples. It generates RSI reversal signals as triangles when the indicator

Indicator v5 Support & resistanceOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Predicted Signals + RSI trigger

GrimmPaint 2.0 Alerts

by GreyssonEnterprises
1 stars

An indicator that marks gap-style candles where the low is above the high from two bars earlier (bullish) or the high is below the low from two bars earlier (bearish). It then tracks re-entry into that candle's range during up to three user-set time windows on

Indicator v5 Sessions & timeSupport & resistance
Updated 2 months ago · MIT GitHub repository of GrimmPaint 2.0 Alerts
1 stars

A strategy that rests a limit order at the session VWAP when a higher-timeframe 50 and 100 EMA stack shows an uptrend, VWAP is rising and price is above it, with the mirror image for shorts. The stop is an ATR multiple beyond VWAP and the target is a fixed rew

Strategy v6 Mean reversionTrend
Updated 4 months ago · None stated GitHub repository of VWAP Pullback Strategy MNQ

XAUUSD-Asia Reversion

by riegodavid-git
1 stars

An overlay indicator written for gold during a morning window in Philippine time. It combines a short-period RSI with fractal sweep detection, where price takes out recent fractal highs or lows, and fair value gap boxes with optional volume, ATR and trend filt

Indicator v6 SMC / ICT / price actionMean reversion
Updated 4 months ago · None stated GitHub repository of XAUUSD-Asia Reversion

First Hour Range

by onlyspx
1 stars

This indicator records the high and low of the first hour of the US cash session, from 9:30 to 10:30 on the chart clock, then draws horizontal lines for both. It also draws dashed lines at one and a half times and dotted lines at two times the range, above the

Indicator v5 Sessions & timeSupport & resistance
Updated 6 months ago · None stated GitHub repository of First Hour Range
1 stars

This strategy looks for VWAP bounce and rejection trades on the price chart during the regular trading session. It marks a percentage band around session VWAP and enters when a rejection candle meets a minimum wick-to-body ratio and volume exceeds a multiple o

Strategy v6 Mean reversionVolume
Updated 7 months ago · MIT GitHub repository of VWAP Bounce/Rejection
1 stars

An overlay indicator that shades the Asia, London and New York sessions and classifies days against the seek and destroy profile. If London takes both sides of the Asian range, it labels a potential day and can show a warning table for the New York session. Af

Indicator v5 Sessions & timeSMC / ICT / price action
Updated 9 months ago · None stated GitHub repository of ICT Seek & Destroy Profile

Draws vertical separator lines on the price chart where higher-timeframe periods begin, such as each day, week or month. Up to four separators can be enabled, each with its own timeframe, lookback count, colour, line width and style. A reference setting choose

Indicator v5 Sessions & time
Updated 9 months ago · MPL-2.0 GitHub repository of Multi-Timeframe Period Separators

Trading Sessions

by yagyesh-bobde
1 stars

This indicator highlights three configurable trading sessions on the price chart. It tests whether each bar falls inside a session window using that session's own time zone, then paints a translucent background: blue for the first session, yellow for the secon

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

A large overlay indicator that merges several tools from the same repository: forex session boxes with kill zones, a market structure oscillator, zero-lag trend levels, a volumatic VIDYA average, an adaptive Money Flow Index, an ADX histogram, a dual-speed TSI

Indicator v5 Sessions & timeSMC / ICT / price action

algo-trade-indian-v1

by akash-yellgetti
1 stars

A strategy-type script for the price chart that plots the high, low and midpoint of the first part of each session, using end hour and minute inputs, and marks those bars. It adds pivot-based support and resistance lines with left and right bar counts, labels

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

Hotch Session

by rajatjpatel
1 stars

A session overlay that shades the chart background for the Asian, European and American trading sessions, plus an optional custom session. Start and end hours and minutes are editable for each, using UTC, and individual weekdays can be switched on or off, with

Indicator v5 Sessions & time
Updated 4 years ago · None stated GitHub repository of Hotch Session

Moon Dev GEX Arrows

by moondevonyt
92 stars

This overlay indicator plots option strike walls and an optional session VWAP on the price chart for SPY or ES. It spaces major strikes by the selected instrument, draws a set number of strikes on each side, and marks wall-trap and sweep events after a cooldow

Indicator v5 Support & resistanceSessions & time
Updated 2 months ago · Custom licence GitHub repository of Moon Dev GEX Arrows
56 stars

This indicator marks forex trading sessions and opening ranges on the price chart. It can draw Sydney, Tokyo, Frankfurt, London, and New York session boxes or five- and fifteen-minute opening ranges, plus an optional opening channel and a day-open range. Day r

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

This indicator plots the initial balance high, low, midpoint and optional Fibonacci levels for a user-defined session on the price chart. It tracks a separate break session and includes settings groups for extension lines, percentile lines and tables. Users ca

Indicator v6 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Initial Balance & Extensions with Z-Scores

HTF Statistical Zones

by samuelharting
18 stars

HTF Statistical Zones plots historical percentile bands around the 18:00 New York day open, plus session boxes, opening-range lines, and projected targets on the price chart. Upper and lower day zones use selectable inner and outer percentiles, with optional p

Indicator v6 Support & resistanceSessions & time Repaints
Updated 2 weeks ago · MPL-2.0 GitHub repository of HTF Statistical Zones

SPY 0DTE Scalper - 15min

by chris-c-thomas
14 stars

This intraday overlay establishes directional bias and high-conviction swing setups for SPY on the 15-minute timeframe. It computes a weighted confluence score combining an EMA ribbon, a 50 EMA anchor, session VWAP bands, RSI divergence, ADX, TTM Squeeze, cand

Indicator v6 TrendOscillators & momentum
Updated 6 months ago · MIT GitHub repository of SPY 0DTE Scalper - 15min
12 stars

This indicator draws custom higher-timeframe period separators and opening price horizontal lines directly on the price chart. Users can select the target timeframe, such as monthly, to display vertical separator lines alongside a horizontal line marking the h

Indicator v5 Support & resistanceSessions & time Repaints
Updated 1 year ago · None stated GitHub repository of My Period Separator All Timeframes
10 stars

This indicator plots the active hours of major global trading sessions including Tokyo, Berlin, London, Sydney, and New York. It dynamically adjusts session times based on whether the instrument is classified as a traditional market or crypto. The script uses

Indicator v4 Sessions & time
Updated 5 years ago · None stated GitHub repository of My Trading Sessions

LunarTick Initial Balance

by lunarticktrading
7 stars

This indicator tracks and visualizes the initial balance range over customizable trading sessions directly on the price chart. It plots the high, low, and midpoint of the opening balance, with optional session extension levels, an anchored VWAP, and shaded hig

Indicator v6 Sessions & timeSupport & resistance Repaints
Updated 2 weeks ago · None stated GitHub repository of LunarTick Initial Balance

FX Market Sessions

by itmakesyousick
7 stars

This indicator draws up to three named forex sessions on the price chart, defaulting to London, New York and Tokyo in a chosen timezone. Each session can show a shaded history box, dashed borders, optional Fibonacci levels and an opening range. Users set sessi

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

2:1 Strategy with Signals

by IAMATOMIC001
3 stars

This indicator identifies key market structure and pivot points directly on the price chart. It calculates Higher Highs, Lower Highs, Higher Lows, and Lower Lows using configurable left and right pivot evaluation lengths. Users can toggle pivot labels, customi

Indicator v5 Support & resistanceSessions & time Repaints
Updated 12 months ago · None stated GitHub repository of 2:1 Strategy with Signals

BTMM HTF Bias System

by jcortes254
3 stars

BTMM HTF Bias System analyzes trend alignment and higher-timeframe directional bias using exponential moving averages across multiple timeframes, such as 1-hour, 4-hour, daily, and weekly charts. Based on Steve Mauro's Beat The Market Maker methodology, it cal

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of BTMM HTF Bias System

TQQQ ORB v1

by yalili8521
2 stars

Calculates the opening range during the initial minutes of regular trading hours and triggers breakout trades directly on the price chart. Long positions enter when price closes above the opening range high, while short entries trigger on closes below the open

Strategy v6 BreakoutSessions & time
Updated 8 days ago · None stated GitHub repository of TQQQ ORB v1

Session Color

by ashwagamma
2 stars

This indicator paints the price-chart background for three clock windows using a timezone chosen as GMT+1 or GMT+2 from the hour gap between Los Angeles and GMT. Bars from 00:00 to 15:30 use the pre-market color, 15:30 to 22:00 stay transparent, and 22:00 to 2

Indicator v5 Sessions & time
Updated 1 year ago · None stated GitHub repository of Session Color

HTF Candles & Pivots

by itmakesyousick
2 stars

This indicator draws higher-timeframe candles on the price chart and overlays pivot levels. Users choose the timeframe, candle thickness, wick display, fill for negative candles, and whether history is shifted forward. Labels can show the timeframe, an average

Indicator v5 Candlestick patternsSupport & resistance
Updated 3 years ago · None stated GitHub repository of HTF Candles & Pivots

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