Synced with GitHub · updated yesterday

Free TradingView Pine Scripts

10,850 free, open-source indicators, strategies and libraries for TradingView. Copy any script and paste it into the Pine Editor to use it on your chart.

New scripts by RSS
10,850 scripts

TSMOM L/S SMA50

by nvolpe2007-cell
1 stars

An always-in-the-market strategy that goes long when the daily close is above a 50-bar SMA and short when below, with an optional hysteresis band and a switch to disable shorts. It simulates a perpetual futures position with a funding cost charged over the hol

Strategy v6 TrendMoving averages
Updated yesterday · None stated GitHub repository of TSMOM L/S SMA50

HLC Bar Chart

by ankurksoni
1 stars

A price-chart overlay that redraws each bar as a candle whose open equals its close, leaving only the high, low and close visible. Bars are coloured by comparing the close with the previous close, using one colour for a close at or above it and another for a l

Indicator v6
Updated 2 days ago · None stated GitHub repository of HLC Bar Chart

Engulfing Candles

by jayadevrana
1 stars

The Engulfing Candles indicator automatically identifies and highlights bullish and bearish engulfing candlestick patterns directly on the price chart. It checks whether the current bar fully wraps around the body of the previous bar and exceeds a customizable

Indicator v6 Candlestick patterns
Updated 3 days ago · MPL-2.0 GitHub repository of Engulfing Candles
1 stars

This library builds real-time Smart Money Concepts context frames on each bar. It derives StructureFrame using engine primitives for BOS, CHoCH, trend and S-R levels. ImbalanceFrame tracks FVG lifecycle, BPR overlap, liquidity void and zone-bias. ZoneFrame man

Library v6 SMC / ICT / price action
Updated 3 days ago · None stated GitHub repository of SMC Context Engine Private

Conduit OBV AccDist

by pineforge-4pass
1 stars

A long-only strategy that requires two volume flow measures to agree: On Balance Volume and Accumulation/Distribution, each compared with its own EMA. It enters long when both are above their signals for the first time and price is above a longer EMA filter. I

Strategy v6 VolumeTrend
Updated 6 days ago · Apache-2.0 GitHub repository of Conduit OBV AccDist

I_vol

by GammaExpansion
1 stars

Plots a wide array of built-in Pine Script volatility calculations in a separate pane. It outputs true range variations, average true range across multiple periods, standard deviation, variance, mean absolute deviation, Bollinger Bands and Bollinger Bands Widt

Indicator v6 Volatility & bands
Updated 6 days ago · MIT GitHub repository of I_vol
1 stars

This reference script demonstrates multiple usage examples of Pine Script's request.security function. It plots higher-timeframe data directly on the price chart, including the daily close, weekly high and low levels, daily 20-period EMA, and the previous day'

Indicator v5 Support & resistanceMoving averages Repaints
Updated 6 days ago · None stated GitHub repository of request.security Örnekleri
1 stars

A long and short strategy based on five moving averages of 10, 20, 50, 100 and 200 bars. It can require the averages to be in perfect order with aligned slopes, filter entries by ADX range, and optionally by RSI and a higher timeframe moving average. A strict

Strategy v6 Moving averagesBreakout
Updated 7 days ago · None stated GitHub repository of Qullamaggie MA Breakout L+S

A strategy that detects classic chart patterns from pivot points on the price chart: double and triple tops and bottoms, head and shoulders, flags, pennants, wedges, triangles, rectangles and cup and handle shapes. Each can be switched on or off, with toleranc

Strategy v6 BreakoutSupport & resistance
Updated 7 days ago · GPL-3.0 GitHub repository of Auto Pattern Detector Targets with Session Strategy

DEPV2 A8 · Onay Makinesi

by YuceSezar89
1 stars

This indicator implements a multi-metric confirmation engine that validates trading signals across four core dimensions: trend level scores based on an HLC3 SMA, momentum z-scores derived from rate of change, volatility expansion ratios comparing fast and slow

Indicator v6 TrendOscillators & momentum
Updated 12 days ago · None stated GitHub repository of DEPV2 A8 · Onay Makinesi

SR+Trend v12

by MuhammadMuhamid
1 stars

A long-only crypto spot strategy whose support and resistance section can be switched on or off and set as the main entry trigger or as a secondary filter. When enabled, it uses pivots on four timeframes, ATR-sized touch zones and a retest window. Trend filter

Strategy v6 Support & resistanceTrend
Updated 12 days ago · None stated GitHub repository of SR+Trend v12
1 stars

Calculates the WaveTrend oscillator using channel and average exponential moving averages alongside a simple moving average signal line in a separate pane. It plots the dual oscillator lines, their difference area, and configurable overbought and oversold thre

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 13 days ago · MPL-2.0 GitHub repository of Taught to Trade - WaveTrend Audit

An overlay indicator that stores the first and second candle after a configurable market open time each day and shows them in a fourteen-column table. For each day it lists the first candle high, low and average, the resistance and support derived from them, a

Indicator v5 Sessions & timeScreeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of Opening Range Historical Table

Key Levels IDWM

by kasutu
1 stars

Draws open, previous high, previous low and previous midpoint lines for several periods on the price chart: intraday, daily, weekly, monthly, quarterly and yearly, plus the Monday range and midpoint. Each group can be enabled separately, with options for mergi

Indicator v5 Support & resistanceSessions & time Repaints
Updated 2 weeks ago · None stated GitHub repository of Key Levels IDWM
1 stars

The XAUUSD Scalping Confluence Engine is a separate-pane indicator that calculates a composite trading score based on multiple technical factors. It evaluates a four-period exponential moving average stack, SuperTrend trend direction, Relative Strength Index,

Indicator v5 TrendOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of XAUUSD Scalping Confluence Engine
1 stars

An indicator in a separate pane that measures the shape of recent log returns over a rolling window using skewness and excess kurtosis. It converts them into a Cornish-Fisher value-at-risk estimate compared with the Gaussian version, a comparison of left and r

Indicator v5 Volatility & bands
Updated 7 weeks ago · MPL-2.0 GitHub repository of STRO v2 Skew/Tail Risk & CF-VaR

Higher Close Demo

by Alaamo7
1 stars

Higher Close Demo is a Pine Script v6 teaching indicator drawn on the price chart. It checks whether the current close is greater than the previous close. When that condition is true, it plots a green upward triangle below the bar. The script has no user input

Indicator v6
Updated 2 months ago · Custom licence GitHub repository of Higher Close Demo

Linear Regression Volume

by vedkanani123
1 stars

An overlay indicator that computes a volume-weighted price average using SMA, RMA, HMA or ALMA, fits a linear regression to it as a fair value baseline, and draws bands at one, two and three standard deviations of price around it. The baseline and band fills t

Indicator v6 TrendVolume
Updated 2 months ago · None stated GitHub repository of Linear Regression Volume
1 stars

Draws volume order blocks on the price chart and adds three tiers of asymmetric buy and sell volume signals: a percentage-threshold tier, a one-sided volume tier and a super volume tier. A cooldown spaces signals. High-volume proximity markers fire when a roll

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asymmetric HV Proximity v1.1

Smooth Trend Radar

by raybird
1 stars

A trend strategy on the price chart built on a double-smoothed Supertrend using WMA and EMA smoothing, with pivot rejection entries when price touches the baseline. Settings scale automatically by timeframe. Stop loss can use the flip candle, baseline or swing

Strategy v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Smooth Trend Radar

Polish Setup Indicator

by GreyssonEnterprises
1 stars

Plots a smoothed moving average stack alongside detected W and M patterns, RSI momentum filtering, and Fibonacci-style extension targets. The indicator evaluates trend alignment across fast, medium, and slow SMMAs, scans recent price bars for double top or bot

Indicator v5 Moving averagesOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Polish Setup Indicator

Liquidation HeatMap

by VVASILEVSS
1 stars

A Pine v5 overlay that draws estimated liquidity zones as colored boxes on the price chart. It finds pivot highs and lows over the last 500 bars, sizes each box with a multiple of ATR that depends on the timeframe, and colors it by volume between a minimum and

Indicator v5 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Liquidation HeatMap
1 stars

This large indicator applies ICT-style smart money analysis to gold on the price chart, covering order blocks, breaker blocks, liquidity pools, premium and discount positioning and market structure. Buy and sell signals can be gated by a discount or premium fi

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Quantum Flow v19 Fully Configurable

EMM Strategy V2 - Pine Engine

by tthanhvu002sgu
1 stars

A strategy that trades price crossings of an exponential moving median line on the price chart. It buys when close crosses above the line and sells when it crosses below, closing the opposite position on the same cross. An optional higher-timeframe filter, def

Strategy v5 Moving averagesTrend
Updated 3 months ago · None stated GitHub repository of EMM Strategy V2 - Pine Engine

STT SR TMA Plan

by majohnst
1 stars

This strategy executes trades based on Triangular Moving Average (TMA) crossings, support and resistance structures, and breakout logic. It evaluates multiple confluence conditions including daily pivots, anchored VWAP, and multi-day moving averages alongside

Strategy v6 Moving averagesTrend
Updated 4 months ago · None stated GitHub repository of STT SR TMA Plan

SMC Strategy

by mrdungx2603
1 stars

This Smart Money Concepts (SMC) strategy identifies market structure, order blocks, imbalances, and premium or discount zones directly on the price chart. It executes long trades in discount zones and short trades in premium zones based on order block retests,

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of SMC Strategy

Pivot Break

by riegodavid-git
1 stars

An overlay indicator that tracks the most recent confirmed swing high and swing low and prints a small label when the close crosses beyond them. A green B label appears below the bar when the close crosses above the last pivot high, and a red S label appears a

Indicator v6 BreakoutSupport & resistance
Updated 4 months ago · None stated GitHub repository of Pivot Break

KLSE Quality Overlay

by kevinesk
1 stars

The 8_KLSE_Quality_Overlay is a Pine Script v5 indicator that overlays quality grades on the price chart for KLSE stocks. It combines user inputs from KC Chong 8-Criteria, Cold Eye 8-Criteria, Tong Kooi Ong tiers, and Tradeview MONEY equation to assign grades

Indicator v5 Screeners & dashboardsSupport & resistance
Updated 4 months ago · None stated GitHub repository of KLSE Quality Overlay

HA Moving Average

by rubbermetal
1 stars

HA Moving Average calculates a moving average from Heikin Ashi prices fetched for the chart symbol, while the chart itself can stay on normal candles. Users choose the average type (EMA, SMA, RMA or WMA), the length and the Heikin Ashi source. The line changes

Indicator v6 TrendMoving averages
Updated 4 months ago · MPL-2.0 GitHub repository of HA Moving Average

Trailing Call Comma

by Snappni
1 stars

This strategy plots a 12-period and a 26-period exponential moving average on the price chart. It enters long when the fast average crosses above the slow average and enters short when the fast average crosses below the slow average. Opposite signals reverse t

Strategy v6 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Trailing Call Comma
1 stars

Overlays higher-timeframe context on the price chart, using lower-timeframe data to find volume spikes inside each higher-timeframe bar. It combines RSI pivot divergence with a volume conviction check, and can show a ghost of the previous bar, stacked imbalanc

Indicator v6 VolumeDivergence Repaints Archived
Updated 5 months ago · None stated GitHub repository of HTF Volume Spike, Divergence & Conviction
1 stars

This overlay strategy finds swing highs and lows, then marks an Optimal Trade Entry band between the 0.62 and 0.79 retracements of the latest impulse. A long is allowed only inside the bullish band and above a trend EMA; a short is allowed only inside the bear

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of Talons OTE (Optimal Trade Entry)
1 stars

An overlay toolkit for crypto charts that combines a volume profile with value area, an anchored VWAP, EMA lines, a higher-timeframe EMA bias and an order flow proxy from lower-timeframe delta, relative volume and cumulative delta, plus swing and ATR-based pri

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT Toolkit v7 Clean Execution
1 stars

This strategy generates buy and sell signals on the SP500 4H chart using EMA crossovers confirmed by MACD, filtered by ADX trend strength, RSI levels, and active London or New York sessions. It plots EMA 9, EMA 21, and EMA 200 on the price chart. Buy signals e

Strategy v6 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Señales EMA + MACD v4b [SP500 4H]

Smash Levels

by onlyspx
1 stars

This indicator draws horizontal levels on the price chart from text the user pastes in, with separate boxes for daily levels, weekly levels and VIX levels. Each line is labelled and coloured green when the close is above it and red when below. On index charts

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Smash Levels
1 stars

This compact indicator labels Elliott Wave counts on the price chart. It runs a zig-zag at several depths, chooses the depth that gives the best fit, and applies Elliott Wave rules, with a strict mode that forces an A-B-C count when the rules break. A correcti

Indicator v6 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of Mini Elliott Wave 2026-2
1 stars

An indicator that shows an adaptive True Strength Index in a separate pane while projecting signals onto the price chart. It detects the instrument type, such as gold, silver or major indices, and the timeframe to pick parameters, adapts reactivity to ATR, and

Indicator v6 Oscillators & momentumScalping
Updated 6 months ago · None stated GitHub repository of TSI Adaptive Scalper v4.2 OVL-SP
1 stars

Computes a z-score of price against a selectable moving average (SMA, EMA, WMA or VWMA) and compares it with thresholds that can adapt to the volatility regime. Inputs set the lookback, volatility lookback, base, minimum and maximum thresholds, and a signal mo

Indicator v5 Mean reversionVolatility & bands
Updated 6 months ago · None stated GitHub repository of Z-Score Dynamic Bands

Double MACD

by AlanGuo
1 stars

A strategy that plots two MACD histograms in a separate pane, a slower trending pair (89 and 144) and a faster energy pair (13 and 21). Backtesting is switched on by a setting, with a long or short direction and a mode choice between trend following and diverg

Strategy v6 Oscillators & momentumDivergence Repaints
Updated 7 months ago · None stated GitHub repository of Double MACD

BTC ATH Scaling

by ymlee1104
1 stars

BTC ATH Scaling tracks the all-time high price and calculates the percentage drawdown from that peak. It displays a real-time label offset to the right of the latest price candle showing the ATH level, current price, and percentage drop. The label color dynami

Strategy v6 Support & resistanceScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of BTC ATH Scaling

V15 Zone Trader

by snoozie-v
1 stars

An indicator that takes a four-hour EMA trend with a small deadzone and looks for one-hour entries in the same direction, either a fast and slow EMA crossover or a pullback, with optional volume confirmation. Stops and targets are ATR multiples with one, two a

Indicator v5 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of V15 Zone Trader
1 stars

This strategy looks for mean-reversion entries when RSI crosses back through the oversold or overbought levels, or recovers from more extreme RSI readings. Optional divergence confirmation can require a price and RSI mismatch before entry. It opens one long or

Strategy v5 Mean reversionOscillators & momentum
Updated 7 months ago · None stated GitHub repository of RSI Extremes - Mean Reversion

Support & Resistance Levels

by haydarkadioglu
1 stars

This indicator automatically detects support and resistance levels using pivot point analysis on historical price data. It identifies potential resistance at pivot highs and support at pivot lows, storing up to the maximum number of unique levels (default 3 ea

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of Support & Resistance Levels

About the Pine Script Library

The ForexR Pine Script Library collects open-source TradingView indicators, strategies and libraries that are published on GitHub. Every script links to its repository, so you can see the author's latest version, issues and licence. Where the licence allows it, the full code is on the script's page, ready to copy into TradingView's Pine Editor. Stars, updates and licences are synced from GitHub every day, and new scripts are added every week.

Each script is read automatically before it is listed: it must declare an indicator, strategy or library for Pine Script version 4 or later, and copies of the same code are listed only once. The summaries and tags are written automatically from the code and the README. They describe what a script does; they are not a recommendation, and nothing here is tested or endorsed by ForexR.

Indicators and backtests describe the past. Check any strategy in the Strategy Tester and on a demo account before you trade with it. CFDs and leveraged forex are complex instruments with a high risk of losing money rapidly.

Pine Script Library FAQ

What is Pine Script?

Pine Script is the programming language of TradingView. Indicators, strategies and libraries written in it run directly on TradingView charts: an indicator draws lines, zones or signals, a strategy places simulated trades that the Strategy Tester reports on, and a library holds functions other scripts can import.

How do I add a Pine Script to my TradingView chart?

Open a script here and press Copy script. In TradingView, open the Pine Editor at the bottom of the chart, create a new indicator or strategy, select all of the template text and paste over it. Press Save, then Add to chart. A strategy's trades appear in the Strategy Tester tab.

Are these Pine Scripts free?

Yes. Every script listed here is published on GitHub, so you can read and use it at no cost. ForexR shows the full code only when the author published it under an open licence, such as MIT, GPL or the Mozilla Public License that TradingView adds to new scripts. For other scripts the Copy button reads the file straight from GitHub. Check the licence before reusing code in your own work.

Why are there no Pine Script v3 or older scripts?

Pine Script versions 1 to 3 are years out of date and miss most of the functions current scripts rely on. The library lists scripts written for versions 4, 5 and 6, and you can filter by version. Version 6 is the current one.

What does "Repaints" mean?

A repainting script can change its signals after the fact: on the live bar, or when it reads a higher timeframe before that bar has closed. Its history then looks better than it would have traded in real time. Scripts where the code or the author says so are marked Repaints, and the "Hide repainting" filter leaves them out.

How does ForexR choose which scripts to list?

A crawler searches GitHub every week for Pine Script files, reads each one and keeps scripts written for Pine version 4 or later in repositories with at least one star. Copies of the same code are listed once, under the most-starred repository. Repositories that ship programs, hide downloads behind passwords or show signs of bought stars are left out. Stars, updates and licences are refreshed from GitHub every day, and the summaries are written automatically from each script's code and README.

Trade on TradingView With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers