Pine Library · 712 open-source scripts

Free Index Pine Scripts for TradingView (page 14)

Open-source Pine scripts written for stock indices such as the Nasdaq 100, S&P 500 and DAX: opening range, gap and session tools, and index strategies.

Pine scripts712
Code shown here375open licence
Updated in a year601
No repaint flag595

Indices: Indicators, Strategies and Libraries

16 stars

This strategy trades Donchian breakouts measured on weekly bars while orders execute on the chart timeframe. It allows long and short entries when price breaks the prior weekly channel and exits against the shorter weekly channel. Position size risks a set per

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 4: Weekly Donchian

Strong NQ ORB Breakouts

by rosijay17-cmd
1 stars

An overlay indicator for opening range breakouts on Nasdaq futures. The range can start automatically at the session open or use a custom window, with an adjustable length in minutes. A breakout by close or wick produces a signal with a stop based on ATR, the

Indicator v6 BreakoutSessions & time
Updated 7 days ago · GPL-3.0 GitHub repository of Strong NQ ORB Breakouts
257 stars

This overlay indicator looks for regular price divergences against a set of oscillators, using pivot highs and lows. It compares those pivots with RSI, MACD and its histogram, stochastic, CCI, momentum, OBV, a directional oscillator, volume-weighted MACD, Chai

Indicator v5 DivergenceOscillators & momentum Repaints
Updated 6 weeks ago · None stated GitHub repository of Snag - Best Futures V3
16 stars

This trend-following strategy executes long and short trades based on Donchian channel breakouts directly on the price chart. It enters positions when price breaks a multi-bar high or low and exits on opposing Donchian channel band crosses. Risk management inc

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 5: Accelerated Pyramid

An overlay indicator that studies how price approaches, tests and resolves confirmed swing zones, role-reversal levels and CUSUM change-point levels that fade with age. A state machine follows a level, impulse, pullback and higher-low or lower-high sequence an

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 7 days ago · GPL-3.0 GitHub repository of Structure Physics v4 Rotation Confirmation

This strategy enters long or short when price closes beyond a Donchian channel and can require a slow moving average, called the tide, to agree with the direction. It sizes each unit from ATR risk, sets an initial ATR stop, and adds units after further ATR mov

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 5: Close-Confirmed + Tide

A strategy version of a structure indicator that studies how price interacts with confirmed swing zones, role-reversal levels and CUSUM change-point levels. A state machine tracks a level, impulse, pullback and higher-low or lower-high sequence, then grades th

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 7 days ago · GPL-3.0 GitHub repository of Structure Physics v4.2 Rotation Confirmation Strategy

Try Trading Future

by dearvn
257 stars

This futures trading strategy combines Fair Value Gap (FVG) detection filtered by Average True Range (ATR) with multi-timeframe Exponential Moving Averages (8, 55, and 165 lengths). It identifies entry setups during a defined intraday trading session window wh

Strategy v5 SMC / ICT / price actionMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of Try Trading Future

DX SPX VLT

by g-moe
3 stars

DX SPX VLT is an overlay indicator that evaluates market trends by combining moving average slope analysis, Aroon filters, and DTEK Supertrend components. It plots colored background highlights to represent overall trend direction, displays a moving average li

Indicator v5 TrendMoving averages Repaints
Updated 5 months ago · None stated GitHub repository of DX SPX VLT

This strategy generates trading signals using a dual exponential moving average cross confirmed by the Relative Strength Index. It restricts entries to specific market session hours (09:30-18:15 UTC+3) designed for Turkish VIOP index futures. Long positions en

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of VİOP BIST30 Alert Strategy [trugurpala]
16 stars

Seykota Alt 9: Time Exit Primary executes a Donchian breakout trend-following strategy that prioritizes time-based exits over price-based trailing stops. It enters long or short on 55-bar Donchian channel breakouts, sizing positions by ATR-based risk and pyram

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 9: Time Exit Primary

This indicator plots a directional volume and money flow profile directly on the price chart over a configurable lookback period. It displays total flow reference bars alongside directional delta bars to highlight buyer versus seller dominance at each price ti

Indicator v6 VolumeSupport & resistance
Updated 2 days ago · MIT GitHub repository of Money Flow Delta Profile [WavesUnchained]

VİOP Session Strategy

by trugurpala
4 stars

This strategy trades Turkish VIOP BIST 30 futures on the price chart. It opens positions when a fast exponential moving average crosses a slow one, but only while chart time falls inside the 09:30 to 18:15 UTC+3 session. Stop loss and take profit distances are

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of VİOP Session Strategy

Session Statistical Levels

by TamaraKGreen
46 stars

This indicator overlays statistical price range levels across key trading sessions, including Asia, London, NY Morning, and NY Afternoon, as well as an optional custom session. It calculates and plots symmetric percentile range bands such as the median (P50),

Indicator v5 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Session Statistical Levels
1 stars

This strategy calculates rate of change momentum across multiple user-defined symbols and ranks them using arrays. It rotates capital into the highest-performing asset symbol at scheduled bar intervals by closing all existing positions and entering a long trad

Strategy v6 Oscillators & momentumScreeners & dashboards
Updated 2 months ago · None stated GitHub repository of TN Momentum Swarm Sovereign v6

Session Statistical Levels + Extension Gauge calculates and plots statistical price projections, maximum favorable/adverse excursion (MFE/MAE) percentiles, and standard deviation range bands based on historical distribution data from NQ futures. It anchors sta

Indicator v5 Support & resistanceSessions & time
Updated 7 weeks ago · None stated GitHub repository of Session Statistical Levels + Extension Gauge

CRT Bias Scanner v4

by alboogycOdR
6 stars

This overlay indicator presents a multi-asset CRT bias scanner as a table on the price chart. It watches up to sixteen symbols, grouped by preset lists or custom slots, and refreshes the scan at a user-set interval in minutes. Optional alerts can fire for stro

Indicator v5 Screeners & dashboards
Updated 7 months ago · None stated GitHub repository of CRT Bias Scanner v4
106 stars

This strategy plots multiple indicators on the price chart for Bank Nifty index. It calculates MACD on different timeframes, RSI, ADX, Stochastic oscillator, and Bollinger Bands. The strategy generates buy signals when MACD shows upticks across timeframes, RSI

Strategy v5 TrendOscillators & momentum Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Bank Nifty Bullish Intraday

This strategy overlays Supertrend on the price chart and trades only inside a set session and backtest date range. It enters long when Supertrend turns up, or after a chosen candle delay while the trend is up, and enters short on the opposite conditions. It cl

Strategy v5 TrendVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of BankNifty 5min Supertrend Based Strategy

TN Multi-Confluence

by raybird
1 stars

A Pine v6 strategy that trades smart money concepts on the price chart. It combines a higher-timeframe bias with an EMA, equal highs and lows liquidity, order blocks, fair value gaps and an optional displacement confirmation. Entries are limited to New York an

Strategy v6 SMC / ICT / price actionSessions & time
Updated 2 months ago · None stated GitHub repository of TN Multi-Confluence
106 stars

BankNifty Bearish Intraday is an intraday short strategy designed for the Bank Nifty index. It evaluates multiple momentum and trend indicators across multiple timeframes, including MACD downticks on 5-minute, 15-minute, and 60-minute resolutions, an RSI below

Strategy v5 Oscillators & momentumTrend Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of BankNifty Bearish Intraday
1 stars

A strategy that builds an opening range from 09:30 to 09:45 New York time and enters long or short on the first close beyond it each day. The position is split across three take profit targets set as risk multiples, with adjustable percentages. The stop sits a

Strategy v5 Sessions & timeBreakout
Updated 7 days ago · GPL-3.0 GitHub repository of 15-Min ORB Strategy for NQ TP3 Runner

TN OR Magnet

by raybird
1 stars

An opening range strategy for the New York session that records the high and low of a short opening window, then trades retests of that range. Setup A follows drift from the range with a retest, and a conservative Setup B uses breakout plus retest. Filters ski

Strategy v6 Sessions & timeBreakout
Updated 2 months ago · None stated GitHub repository of TN OR Magnet

Volume Value

by ivansoft
1 stars

An indicator in a separate pane built on traded value, volume times the mid price, taken from 30-second data and cumulated over one, three, five and ten minutes. For each window it computes a percentile level over a settable number of bars and checks the value

Indicator v6 VolumeSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Volume Value

NQ 9:45-10:15 ICT Strategy

by eddiebelaval
7 stars

This ICT-based strategy trades during the 9:45 AM to 10:15 AM New York session window. It calculates a daily bias using a 20-period daily EMA and tracks previous day highs and lows to identify liquidity sweeps. The script refines order block entry levels and m

Strategy v6 SMC / ICT / price actionSessions & time Repaints
Updated 3 months ago · None stated GitHub repository of NQ 9:45-10:15 ICT Strategy

CRT State Engine

by alboogycOdR
6 stars

Implements an institutional Candle Range Theory (CRT) framework aligned to New York market time windows at 1 AM, 5 AM, and 9 AM. It calculates Draw on Liquidity (DOL) levels using pivot points, manages session state machine boxes, and generates entry signals w

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

GG - Levels

by g-moe
3 stars

This indicator tracks and visualizes key intraday session levels directly on the price chart. It calculates open, high, low, and close values for Regular Trading Hours (RTH), the Overnight Session (ON), and the Initial Balance (IB) period. It draws horizontal

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of GG - Levels
46 stars

This indicator summarizes higher-timeframe candle range statistics by time of day and shows them in a table in a separate pane. It groups candles into slots for 5-minute, 15-minute, 1-hour, 4-hour, 8-hour, or 12-hour periods over a chosen lookback in days, and

Indicator v5 Screeners & dashboardsSessions & time Repaints
Updated 7 weeks ago · None stated GitHub repository of HTF Candle Stats by Time of Day

Day High Low Test

by ivansoft
1 stars

Experimental overlay that marks the day's high and low and the session open on the price chart, with lines, labels and background shading. It includes special handling for Moscow Exchange futures sessions (main and evening) and uses lower-timeframe requests to

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Day High Low Test
106 stars

This overlay strategy plots a short Bollinger Band and enters long when the close crosses above the lower band while a 14-period SMA is above a 42-period SMA. It enters short when the close crosses below that lower band while the faster SMA is below the slower

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Best TradingView Strategy

CRT State Engine Complete

by alboogycOdR
6 stars

This indicator overlays an institutional Candle Range Theory (CRT) framework directly on the price chart. It analyzes session states across New York time models (1 AM, 5 AM, and 9 AM), detects market structure breaks, identifies order blocks, and tracks liquid

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

CRT State Engine v7

by alboogycOdR
6 stars

CRT State Engine v7 is an overlay indicator that tracks institutional CRT session states on the price chart. It analyzes market structure, detects buy-side and sell-side liquidity pools, and plots a volume profile with point of control and value area. Optional

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

CRT State Engine CURSOR is an overlay indicator that implements Candle Range Theory (CRT) models alongside Smart Money Concepts (SMC) frameworks. It tracks session ranges including Asia, London, New York, and CBDR, while identifying Direction of Liquidity (DOL

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State Engine v7.2 CURSOR

This strategy calculates double-smoothed Heikin Ashi candles and plots them directly on the price chart alongside a smoothed Relative Strength Index. It evaluates market conditions against external volatility data from an inverse symbol, generating long and sh

Strategy v5 Candlestick patternsOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Heikin Ashi with Session Wicks Strategy

Signal Quality Engine [WavesUnchained] is a range-fade indicator that identifies exhaustion at range extremes and signals potential reversals. It applies an ADX and EMA slope regime gate to stand down during strong trends. Using distance, structure, and moment

Indicator v6 Mean reversionSupport & resistance
Updated 2 days ago · MIT GitHub repository of Signal Quality Engine [WavesUnchained]

Hercules Rewrite

by g-moe
3 stars

Hercules Rewrite is a signal and visual trade management indicator that overlays entry setups directly on the price chart. It detects candle setups based on minimum tick movement and engulfing patterns, filtering entries through parameters like moving averages

Indicator v5 Candlestick patternsTrend
Updated 5 months ago · None stated GitHub repository of Hercules Rewrite

ICT ORB

by alboogycOdR
6 stars

This overlay indicator marks a session opening range on the price chart and filters breakouts with relative volume. Session type, duration, and optional custom start time set the range, and historical ranges can stay on the chart. Full mode can require a liqui

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

Calculates and plots key session reference levels directly on the price chart, specifically pre-market high and low alongside prior day high and low. Users can adjust how levels project across historical data, toggle line labels, customize spacing, and show pr

Indicator v5 Support & resistanceSessions & time
Updated 5 months ago · None stated GitHub repository of Hooplah High Low + Table

This strategy calculates standard Bollinger Bands using a Simple Moving Average and standard deviation multiplier to identify entry conditions. It triggers pending stop orders and outputs formatted alert messages compatible with TradingConnector for automated

Strategy v5 Volatility & bandsMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Bollinger Bands Strategy with TradingConnector Alerts

NIFTY 5m Supertrend Scalper

by vedkanani123
1 stars

A price-chart indicator designed for the one-minute chart of Indian index instruments. It computes a Supertrend with ATR length 10 and multiplier 3 on confirmed five-minute bars, so a flip signal appears on the first one-minute bar after the five-minute close.

Indicator v6 TrendScalping
Updated 2 months ago · None stated GitHub repository of NIFTY 5m Supertrend Scalper
3 stars

Inner Outer Risk Zones plots horizontal price levels and risk boundary zones directly on the main price chart. The indicator allows traders to input manual target and support levels—including Outer Top, Inner Top, Inner Bottom, and Outer Bottom—along with risk

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Inner Outer Risk Zones

J8 30 123 SPY Scalping PRO 2 Jerry is an overlay strategy designed for short-term SPY scalping and spread setups. It combines multiple Exponential Moving Averages with a custom Supertrend calculation based on flexible moving average types and ATR lengths to pl

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of J8 30 123 SPY Scalping PRO 2 Jerry

Gaps

by ivansoft
1 stars

An indicator on the price chart that finds price gaps between bars and draws a box over each one, green for up gaps and red for down gaps. A gap must exceed a minimum size set as a percentage of the recent average bar range. Each box extends to the right until

Indicator v5 Support & resistance
Updated 1 year ago · None stated GitHub repository of Gaps

This intraday strategy is designed for short-term scalping on equity and index markets like SPY. It evaluates price movement using configurable exponential and Hull moving averages combined with an ATR-based Supertrend calculation. The script plots signal arro

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of J8 30 123 SPY Scalping PRO 2 Jerry

Hidden Relative Strength

by eddiebelaval
7 stars

The Hidden Relative Strength indicator normalizes price changes of a symbol by dividing them by ATR volatility, then subtracts the normalized move of a benchmark symbol such as QQQ to derive raw relative strength. This value is accumulated over time, scaled by

Indicator v5 Volatility & bandsOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Hidden Relative Strength

HighLow

by ivansoft
1 stars

An indicator on the price chart that tracks the high, low, open and close of calendar periods, with session, day, week, month and year contexts, and keeps a short history of recent periods. It handles Moscow Exchange futures sessions with their main and evenin

Indicator v5 Support & resistanceSessions & time
Updated 1 year ago · None stated GitHub repository of HighLow

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