Pine Library · 1,149 open-source scripts

Free Session and Time Pine Scripts (page 6)

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 identifies the Initial Balance session on the chart and detects confluence with VWAP levels for trade signals. It enters positions when price shows rejection at the confluence zone via a candle with sufficient wick to body ratio. The main setting

Strategy v6 Mean reversionSupport & resistance
Updated 7 months ago · MIT GitHub repository of IB + VWAP Confluence

Lifecycle Example

by propuchon
1 stars

This strategy demonstrates a training, testing, and deployment lifecycle for Pine Script strategies. It calculates a simple moving average (SMA 20) and generates buy signals on crossover. The runMode input selects between Training, Testing, and Deployment. In

Strategy v6 TrendMoving averages
Updated 9 months ago · None stated GitHub repository of Lifecycle Example

Reports how volatile each part of the trading day has been, shown as columns in a separate pane. It groups intraday bars by time slot and compares their ranges using a daily ATR period, defaulting to 20. The output can be set to median, with high and low volat

Indicator v6 Volatility & bandsSessions & time
Updated 9 months ago · MPL-2.0 GitHub repository of Volatility - Time of Day Report

SFA FlowLiquidity v1

by genesisgrubio39
1 stars

The SFA FlowLiquidity library computes structural flow and liquidity events from price data. It detects sweep ups and downs with associated scores, identifies liquidity levels, and applies session and regime filters. Persistent arrays track liquidity prices, b

Library v6 SMC / ICT / price actionSupport & resistance
Updated 10 months ago · None stated GitHub repository of SFA FlowLiquidity v1
1 stars

This strategy wraps a breakout candle system in a framework that handles position sizing, trade tracking and logging. Settings cover a gap zone block around midnight in the Prague time zone, the number of candles in an accumulation zone, a risk percentage per

Strategy v6 BreakoutSessions & time
Updated 10 months ago · None stated GitHub repository of Breakout Candle Strategy V24

[FS] Time & Cycles

by flasomm
1 stars

A price-chart overlay that draws previous day and previous week highs and lows, plus the current day and week extremes, with optional labels, dates and line styles. History depth is adjustable up to ten periods. It also marks chosen clock times such as midnigh

Indicator v6 Support & resistanceSessions & time
Updated 11 months ago · None stated GitHub repository of [FS] Time & Cycles

A Pine version 5 price-chart indicator that marks the opening range of each session, taken from a chosen time period or a custom session and timezone. It plots the range high and low with a shaded box and prints breakout signals when price closes outside the r

Indicator v5 Sessions & timeBreakout
Updated 12 months ago · MIT GitHub repository of LuxAlgo Opening Range with Breakouts and Targets v5

FRK Reversal Times

by murdrae
1 stars

This indicator highlights clock-time windows in New York time on the price chart, defaulting to short windows around the early morning and the 8:45 to 11:16 morning hours. During each window it draws a horizontal line along the top of the chart. A second optio

Indicator v6 Sessions & time
Updated 1 year ago · None stated GitHub repository of FRK Reversal Times

TB: Main Indicators

by farias-hecdin
1 stars

This indicator collects overlay tools for the price chart in one script. It draws two configurable vertical time separators, tints the background by day of week, and plots two EMAs of 100 and 50 periods. It also marks support and resistance from pivot highs an

Indicator v5 TrendMoving averages
Updated 1 year ago · MIT GitHub repository of TB: Main Indicators

Jinni v1

by Hurairahengg
1 stars

Jinni v1 is a Pine Script indicator that plots buy and sell signals on the price chart. It calculates two EMAs, one on close with length 34 and another on input source with length 65, to detect uptrend and downtrend. Additional checks include candle direction,

Indicator v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Jinni v1

Algo Trade Indian

by akash-yellgetti
1 stars

A strategy script for the price chart that marks the high, low and midpoint of the first part of each trading session, starting at a configurable hour and minute. It also plots a volume-weighted average price line and a 50-period exponential moving average, an

Strategy v5 Sessions & timeSupport & resistance
Updated 2 years ago · None stated GitHub repository of Algo Trade Indian

1DTE

by tyler314
1 stars

1DTE is an overlay indicator designed for 1-day-to-expiration option trading analysis. It evaluates market conditions using Average True Range (ATR), consecutive green or red daily streaks, and CBOE Volatility Index (VIX) levels. Users can filter evaluation wi

Indicator v5 Volatility & bandsSessions & time
Updated 4 years ago · None stated GitHub repository of 1DTE
361 stars

Forven S01512 — Monday Drift is a calendar-based long trading strategy designed to exploit time-based recurring market patterns. It tracks UTC calendar days and hours to enter a long position at a specified day and hour, holding it for a fixed duration until a

Strategy v6 Sessions & time
Updated yesterday · AGPL-3.0 GitHub repository of Forven S01512 - Monday Drift

Daily Bias + FVG Strategy

by TradersPost
228 stars

This overlay strategy plots previous-day high and low, the daily open, and fair value gap zones on the price chart. It takes entries on a selectable timeframe when the FVG requirement and an optional session window allow them, then uses an ATR or fixed pip sto

Strategy v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Daily Bias + FVG Strategy

Key Levels

by cryptorife
75 stars

This indicator plots reference levels and session markers directly on the price chart. It calculates and draws lines for the daily open, weekly open, monthly open, previous day OHLC, and previous week extremes, along with a selectable day-of-week range and ini

Indicator v4 Support & resistanceSessions & time Repaints
Updated 3 years ago · GPL-3.0 GitHub repository of Key Levels

Trading Sessions

by iamc1oud
56 stars

Trading Sessions is an overlay indicator that highlights major market trading sessions such as Tokyo, London, and New York directly on the price chart. It draws customizable session boxes along with optional open and close price lines, average session prices,

Indicator v6 Sessions & time
Updated 2 months ago · None stated GitHub repository of Trading Sessions

This strategy plots a 90-period simple moving average from the daily and four-hour charts plus a daily session VWAP on the price chart. It enters long when VWAP is above the daily average and the four-hour VWAP crosses above its average, and short in the oppos

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

FX Market Sessions

by itmakesyousick
7 stars

This indicator plots colored session boxes on the price chart representing London, New York and Tokyo market sessions. Users customize session start and end times, colors, and labels for each session while enabling options for historical display, oscillator mo

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

K-SESSION-WINDOWS session flags

by pineforge-4pass
6 stars

The strategy enters long positions on even bars and short positions on odd bars of every chart bar. It records session flags such as market session, premarket, postmarket, first bar, last bar, first regular bar and last regular bar in the trade comment. Proces

Strategy v6 Sessions & time
Updated yesterday · Custom licence GitHub repository of K-SESSION-WINDOWS session flags

CRT State Engine

by alboogycOdR
6 stars

This overlay indicator tracks an institutional CRT state machine on the price chart. It detects draw-on-liquidity bias from swing pivots, watches 1AM, 5AM and 9AM CRT models, and marks session states for CBDR, Asia, London, London lunch and the New York open.

Indicator v6 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State Engine

日内关键价位

by forecho
5 stars

This indicator calculates and plots key intraday session levels directly on the price chart. It tracks the regular trading hours (RTH) open, previous day close, previous day high, and previous day low, along with the high and low ranges for both the Asian and

Indicator v6 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of 日内关键价位
5 stars

This strategy trades long when an M15 bar's low comes within a tolerance of the prior week's low and the bar closes above that level. It places a fixed point stop below entry and a take-profit at a chosen R-multiple of that stop. Entries are limited to a UTC s

Strategy v5 Support & resistanceSessions & time
Updated 5 months ago · MIT GitHub repository of WKL v2 — Prior Week Low Retest (Locked Spec)
5 stars

Calculates daily classical pivot points from the previous day's high, low, and close to identify intraday reversal setups within a defined trading session. Long signals fire when price comes within a configurable tick proximity to S1 and prints a bullish recla

Indicator v5 Support & resistanceMean reversion
Updated 5 months ago · Custom licence GitHub repository of Path C — Pivot-Point Bounce (Demo)
4 stars

Calculates and renders Time Price Opportunity (TPO) market profiles, Initial Balance (IB) ranges, and value distributions directly on the price chart. It determines key auction levels including the Point of Control (POC), Value Area High (VAH), Value Area Low

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

Daily Loss Limit [Lab]

by mitchell-917
4 stars

This strategy example enforces a daily loss limit. It detects a new trading day, stores starting equity, and tracks the day's highest and lowest equity. Trading permission depends on whether the loss from the day's starting equity stays inside a percentage of

Strategy v5 Moving averagesSessions & time
Updated 11 months ago · Custom licence GitHub repository of Daily Loss Limit [Lab]

This time-based strategy trades overnight holding periods on the New York Stock Exchange, plotting execution labels directly on the price chart. It triggers a fixed long entry ten minutes before the regular session ends at 15:50 New York time. The strategy exe

Strategy v5 Sessions & time
Updated 2 years ago · GPL-3.0 GitHub repository of Buy Before Close, Sell After Open (NYSE)

Forex Boxes

by maxits
3 stars

This indicator overlays custom session boxes and time markers directly on the price chart based on specified GMT-4 hours. It identifies distinct intraday timestamps including 4pm and the 3am to 3pm window while tracking volume and plotting one-minute closing p

Indicator v4 Sessions & time
Updated 4 years ago · None stated GitHub repository of Forex Boxes

Key Levels MP

by midngtpickle
2 stars

Key Levels MP draws session and higher-timeframe reference prices on the price chart. It plots the Asia session high, low, and midpoint, the Monday range high, low, and open, the daily open, previous-day high, low, and midpoint, and current-week high, low, and

Indicator v6 Support & resistanceSessions & time
Updated 4 weeks ago · Custom licence GitHub repository of Key Levels MP

Forex Trading Strategy

by AmjadSaidam
2 stars

Forex Trading Strategy is an overlay indicator designed for multi-timeframe session analysis on forex markets. It calculates open, high, and low values across 1-hour, 4-hour, and 8-hour timeframes to identify key session ranges. The script filters valid candle

Indicator v6 Support & resistanceSessions & time
Updated 5 weeks ago · MIT GitHub repository of Forex Trading Strategy
2 stars

Qtus SMC-Sniper System v2 is a comprehensive chart overlay indicator combining Smart Money Concepts (SMC), ICT elements, price action, and momentum filters. It identifies and plots Fair Value Gaps (FVG), Order Blocks, Breaker Blocks, Liquidity Zones, and Marke

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · Custom licence GitHub repository of Qtus SMC-Sniper System v2

LTP Levels v1

by mhs54
2 stars

LTP Levels v1 plots key day-trading support and resistance boundaries directly on the price chart. It projects pre-market high and low levels from recent trading sessions alongside buffer zones and automatically calculated target levels extracted from historic

Indicator v6 Support & resistanceSessions & time Repaints
Updated 6 months ago · None stated GitHub repository of LTP Levels v1

SUMMARY

by ryangaraygay
2 stars

This indicator aggregates multiple technical signals into an on-chart summary table. It calculates a session-based VWAP, a triple-EMA-smoothed price-volume oscillator, an EMA 9/21 trend spread, multi-timeframe Donchian channel breakouts, and an opening range h

Indicator v6 Screeners & dashboardsSessions & time
Updated 1 year ago · MIT GitHub repository of SUMMARY

HTF Candles & Pivots

by itmakesyousick
2 stars

This multi-functional indicator overlays higher timeframe (HTF) candles directly on the main chart alongside custom pivot points and an anchored Volume Profile. It calculates pivot levels from R5 to S5, Central Pivot Range (CPR), and price range forecasts whil

Indicator v5 Support & resistanceVolume
Updated 3 years ago · None stated GitHub repository of HTF Candles & Pivots

LevelZ

by ClimberMel
2 stars

LevelZ plots key session-based price levels directly on the main price chart. It calculates and displays the open, high, and low of the current regular trading hours (RTH) session, the overnight session high and low, and yesterday's RTH open, high, low, and cl

Indicator v5 Support & resistanceSessions & time Repaints
Updated 4 years ago · MIT GitHub repository of LevelZ

Gamma/X Session Sweeps

by OverleveragedWhale
1 stars

An indicator that looks for a sweep and reclaim of the prior session's high or low during the first hour after the Asia, London and New York opens. Setups are marked on the price chart with a stop past the sweep, a fixed ES or NQ point target and an optional b

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

ZeroDTE MEIC v1

by xynkro
1 stars

An overlay that follows a ladder of same-day iron condors on the S&P 500 index or its ETF and mini equivalents. At four configurable time slots in the afternoon it estimates short call and put strikes from realized volatility sampled on five-minute bars, using

Indicator v6 Sessions & timeVolatility & bands
Updated yesterday · None stated GitHub repository of ZeroDTE MEIC v1
1 stars

This script is a deprecated compatibility stub for the Market Lab indicator. It intentionally plots no data on the price chart and emits no formulas, signals, or alerts. The purpose of this stub is to direct users toward the canonical Market Lab script. The as

Indicator v6 Screeners & dashboardsSupport & resistance
Updated yesterday · AGPL-3.0 GitHub repository of DEPRECATED - use canonical Market Lab

AIO Blue

by jometa9
1 stars

A forex-oriented overlay that shades up to three trading sessions, by default New York, London and Tokyo, with optional range boxes, trendlines, mean lines, session VWAP and high and low markers for each. It also contains simple price alerts for EURUSD and GBP

Indicator v5 Sessions & time
Updated 4 days ago · None stated GitHub repository of AIO Blue

Lunch Range Breakout

by JACKZHOU0521
1 stars

The Lunch Range Breakout indicator identifies and plots a midday consolidation range based on configurable exchange-time hours, defaulting to 11:30 through 13:30. Once the window closes, it plots the session high and low levels directly on the price chart. The

Indicator v6 BreakoutSupport & resistance
Updated 5 weeks ago · None stated GitHub repository of Lunch Range Breakout

ORB + ICT Manual Signals v3

by mccallister-dev
1 stars

This overlay indicator marks opening-range breakouts inside configurable Asian, London, and New York session windows. It searches for a break, retest, and continuation after an optional delay, then shows confirmed-bar signals with estimated entry, stop, and ta

Indicator v6 BreakoutSMC / ICT / price action
Updated 5 weeks ago · None stated GitHub repository of ORB + ICT Manual Signals v3

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