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

Chaikin Oscillator - Eterna MCP

by EternaHybridExchange
9 stars

This strategy calculates the Chaikin Oscillator by taking the difference between fast and slow exponential moving averages of the Accumulation/Distribution line. It generates long and short entries when the oscillator crosses the signal threshold with directio

Strategy v5 Oscillators & momentumVolume
Updated 7 months ago · MIT GitHub repository of Chaikin Oscillator - Eterna MCP
9 stars

This indicator plots a customized Stochastic Oscillator (%K and %D lines) in a separate pane to identify momentum and potential overbought or oversold conditions. Users can select from nine different moving average types—including SMA, EMA, Hull, and ALMA—to s

Indicator v4 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Stochastic Oscillator (STOCH)
9 stars

This indicator functions as a multi-pair forex screener, drawing output in a separate pane. It fetches price data across major currency pairs using security functions based on a user-selected resolution timeframe. It processes these market feeds with short, me

Indicator v4 Screeners & dashboardsTrend Repaints
Updated 5 years ago · None stated GitHub repository of AG Screener (Phill_I Request)

This indicator plots a SuperTrend line on the price chart from average true range volatility and a trailing stop. The user selects a long or short trade type, an initial stop-loss percent, and a trailing percent that lifts the stop as price moves. It also uses

Indicator v4 TrendVolatility & bands
Updated 7 years ago · MIT GitHub repository of SuperTrend ATR with Trailing Stop Loss
8 stars

A minimal test script from a Pine Script linter project that checks how a conditional expression wrapped across several lines is parsed. It picks green when the close is above the open and red otherwise, then plots the close in that colour in a separate pane.

Indicator v6
Updated 4 weeks ago · Custom licence GitHub repository of Ternary Wrap Color Probe
8 stars

This strategy calculates dual Average True Range (ATR) trailing stops using two distinct multiplier levels alongside an optional Hull Moving Average (HMA) channel. It identifies market structure shifts and triggers positions when price crosses the primary ATR

Strategy v5 TrendVolatility & bands
Updated 4 years ago · None stated GitHub repository of ATR 2STP Strategy

TR Foreign Flow

by Enesp4rl4k
7 stars

This indicator plots a histogram of the daily change in foreign ownership ratio for a BIST equity in a separate pane. It loads a static snapshot of free-float ownership percentages, matches each bar to a snapshot date, and plots the difference from the previou

Indicator v6
Updated 6 days ago · MIT GitHub repository of TR Foreign Flow

Fair Value Gaps

by lunarticktrading
7 stars

This overlay indicator marks fair value gaps and inverse fair value gaps as boxes on the price chart. A mode switch selects standard gaps or inverse gaps, with separate bullish and bearish colors. Optional filters require the three gap bars to share one direct

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of Fair Value Gaps

This indicator overlays a trend and momentum regime filter directly on the price chart. It calculates an Ehlers Highpass Filter to isolate a low-frequency decycler trend line from price data. Additionally, it integrates a DecisionPoint Price Momentum Oscillato

Indicator v6 TrendOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Decycler Momentum Regime Filter ~ CharonQuant

EQH/EQL Sweep

by muammeryldrm42
7 stars

This strategy detects equal highs and equal lows from swing pivots when two pivots sit within an ATR tolerance. A long entry follows a wick below an equal low that closes back above it on a bullish bar; a short entry follows a wick above an equal high that clo

Strategy v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · MIT GitHub repository of EQH/EQL Sweep

Renko Emulator

by suyons
7 stars

This indicator emulates Renko bricks on a standard price chart. It builds a Renko series with either ATR or a fixed traditional box size, then reads that series through security requests. Optional circle plots and fills show the latest brick open and close whe

Indicator v6 Trend
Updated 4 months ago · None stated GitHub repository of Renko Emulator
7 stars

This indicator overlays Bollinger Bands on the price chart and fills the area between upper and lower bands using a color based on Cumulative Volume Delta trend. It plots an EMA 9 line and fills between the EMA 9 and Bollinger basis in green or red depending o

Indicator v6 Volatility & bandsVolume
Updated 5 months ago · None stated GitHub repository of Deep Chart + BB (CVD Internal)

Candle Breaks 1v1 L+S

by chargersfan47
7 stars

This indicator identifies single-candle breakout patterns where the current bar closes beyond the open of the preceding opposite-direction bar. It calculates potential long and short breakout targets using a 0.618 Fibonacci projection from the prior candle ran

Indicator v5 Candlestick patternsBreakout
Updated 5 months ago · None stated GitHub repository of Candle Breaks 1v1 L+S

Enhanced DCA Strategy

by SynergOps
7 stars

The Enhanced DCA Strategy invests a fixed dollar amount at regular intervals (daily, weekly or monthly) into the asset after start date, deducting trading fees and tracking total invested, units acquired, current value, profit, ROI, Sharpe ratio, Sortino ratio

Strategy v6 ScalpingMean reversion Repaints
Updated 1 year ago · MPL-2.0 GitHub repository of Enhanced DCA Strategy

This strategy calculates trade signals by evaluating a daily session Volume Weighted Average Price relative to 90-period Exponential Moving Averages requested from 1-day and 4-hour higher timeframes. Long and short entries occur when VWAP crosses over or under

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

FX Market Sessions

by itmakesyousick
7 stars

FX Market Sessions highlights distinct trading sessions, such as London, New York, and Tokyo, directly on the main price chart. It draws background boxes for each active session and optionally plots opening ranges, Fibonacci retracement levels, and session ext

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

Numeric Input Metadata

by pineforge-4pass
6 stars

Demonstrates and tests Pine Script input metadata handling across numeric and other input types. It defines inputs using dropdown options, constant defaults, signed values, range bounds, timestamps, expressions, and colors, then plots the closing price in a se

Strategy v6
Updated yesterday · Custom licence GitHub repository of Numeric Input Metadata
6 stars

This indicator plots a weekly moving-average band on the price chart. It calculates a simple moving average and an exponential moving average of the close, requests both series on the weekly timeframe, and draws the SMA in red and the EMA in green. An orange f

Indicator v5 TrendMoving averages
Updated 6 days ago · MIT GitHub repository of Bull Market Support Band

Capital41 ADX Filter

by damianpitt
6 stars

This indicator calculates the Average Directional Index alongside positive and negative directional movement lines to assess market trend strength and direction. Displayed in a separate pane, it plots the ADX line, directional lines, and horizontal threshold l

Indicator v6 Trend
Updated 8 weeks ago · MIT GitHub repository of Capital41 ADX Filter
6 stars

This strategy combines higher-timeframe market bias filtering with an oscillator and ADX trend detection to generate trading signals. It calculates market bias using Heikin-Ashi values across custom timeframes and filters entries using dynamic or static ADX th

Strategy v6 TrendOscillators & momentum
Updated 7 months ago · None stated GitHub repository of EURUSD Synergy + PropEA Hedge

This indicator calculates 1-hour Bollinger Bands and overlays them directly on lower timeframe price charts, such as M15. It fetches hourly middle, upper, and lower band values and locks them until the next hourly bar opens to provide higher-timeframe volatili

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 1 year ago · MIT GitHub repository of H1 Bollinger Bands on M15 (Forward Shifted)
6 stars

This strategy identifies high-volatility expansion bars by comparing the high-low range to a moving average plus standard deviation threshold. When range expansion occurs, it checks momentum over a specified lookback period. It opens a long position if the cur

Strategy v5 Volatility & bandsOscillators & momentum
Updated 1 year ago · None stated GitHub repository of TradersPost High-Low Range Strategy

Public

by wanjo-tech
6 stars

This Pine Script v5 library walks historical price, volume, time and amount series until a requested number of hours is covered, stopping at 4999 bars. TimeAligned returns the bar count, net and absolute price changes, net and absolute log-price changes, volum

Library v5 Volatility & bandsVolume
Updated 2 years ago · None stated GitHub repository of Public

Edge 60

by subos2008
6 stars

Edge 60 is a breakout indicator that identifies new extremes over a configurable lookback period. It calculates and plots the highest high and lowest low of the preceding bars on the price chart. When the current bar makes a new high above the lookback channel

Indicator v5 BreakoutSupport & resistance
Updated 2 years ago · Custom licence GitHub repository of Edge 60

SMA Crossover

by broomva
5 stars

This strategy implements a classic trend-following moving average crossover system on the price chart. It calculates a fast simple moving average (default 50) and a slow SMA (default 200). It enters long when the fast SMA crosses above the slow SMA and enters

Strategy v5 TrendMoving averages
Updated yesterday · MIT GitHub repository of SMA Crossover

Invalidation Stop Classic

by 345-strategies
5 stars

Invalidation Stop Classic plots a structural TheStrat invalidation stop on the price chart. It stays on one side from the first bar that completed 30-minute and 60-minute extremes exist, then flips immediately when price breaks that line. Tightens come from a

Indicator v6 Support & resistanceSessions & time
Updated 3 days ago · MPL-2.0 GitHub repository of Invalidation Stop Classic
5 stars

Xsodus RSI Strategy is a long-only trading script that generates entry signals when the Relative Strength Index (RSI) crosses above a configurable oversold threshold. Traders can enable an optional trend filter requiring price to remain above an Exponential Mo

Strategy v5 Oscillators & momentumMoving averages
Updated 2 weeks ago · MIT GitHub repository of Xsodus RSI Strategy
5 stars

This strategy enters long positions when price tests and bounces off the prior week's low level within an allowed point tolerance during designated UTC trading hours. It requires the bar low to approach the prior week low and the close to rebound above it whil

Strategy v5 Support & resistanceMean reversion
Updated 5 months ago · MIT GitHub repository of WKL — Prior Week Level Retest (Bull)

SMA Crossover

by durdenbtc
5 stars

This strategy plots a 14-period and a 28-period simple moving average on the price chart. It opens a long position when the fast average crosses above the slow average and closes that long when the fast average crosses back below. Position size defaults to 100

Strategy v6 TrendMoving averages Repaints
Updated 5 months ago · MIT GitHub repository of SMA Crossover
5 stars

Monthly Candle Closed Yesterday is a price action and Smart Money Concepts helper indicator that plots rolling virtual monthly candles in a separate pane, treating yesterday as the end of the monthly period. It uses daily price data to dynamically calculate op

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
Updated 7 months ago · MIT GitHub repository of Monthly Candle Closed Yesterday
5 stars

This indicator builds a synthetic index from a user-supplied list of symbols and plots the result in a separate pane. For each symbol it requests open, high, low, close, two mid prices, inferred volume, inferred volume delta, and inferred tick count, then appl

Indicator v6 Volume
Updated 8 months ago · None stated GitHub repository of Index Construction Tool

Exponential Moving Average

by SiegerTerpstra
5 stars

This indicator calculates an Exponential Moving Average with custom seeding and optional multi-timeframe support. It computes a weighted average of the selected price source over a specified length and allows for an optional secondary smoothing pass. Drawn dir

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Exponential Moving Average
5 stars

This indicator plots a moving average and ATR-based stop loss and take profit levels on the price chart. It calculates ATR, NATR, and surge detection using lookback periods and crossover logic. Settings control ATR lookback, length, profit and loss multipliers

Indicator v5 Volatility & bandsMoving averages
Updated 2 years ago · None stated GitHub repository of ATR Based Stoploss TakeProfit

S/D Breakout

by jerryinyang
5 stars

The S/D Breakout script is a technical indicator that identifies and plots supply and demand zones as well as order blocks on the price chart. It calculates reversals and zones based on configurable inputs such as pivot lookback periods and distance multiplier

Indicator v5 Support & resistanceBreakout
Updated 2 years ago · None stated GitHub repository of S/D Breakout
5 stars

Calculates short and long Exponential Moving Averages alongside pivot high and low levels to identify breakout signals. The indicator plots a 20 EMA and a 50 EMA on the main price chart. It evaluates trend direction based on EMA crossover alignment, checks for

Indicator v4 Moving averagesTrend
Updated 3 years ago · Apache-2.0 GitHub repository of 20 EMA + 50 EMA + Breakout
5 stars

This strategy calculates three Supertrend directions from short, medium, and long ATR periods and multipliers on a chosen source. It enters long when all three trends are bullish and the position is flat, and enters short when none is bullish and the position

Strategy v4 TrendVolatility & bands
Updated 5 years ago · MIT GitHub repository of Triple Supertrend Strategy

This strategy calculates and plots up to four Simple Moving Averages (SMAs) and four Exponential Moving Averages (EMAs) directly on the price chart. It generates trading signals based on price crossing over or under a selected baseline moving average, which ca

Strategy v4 TrendMoving averages
Updated 6 years ago · LGPL-3.0 GitHub repository of 4 SMA + 4 EMA + Buy&Sell Cross (EMA or SMA) Strategy [d3nv3r]
4 stars

This indicator plots directional trade signals, ATR-based target and stop-loss boxes, and SuperSmoother reversal bands directly on the price chart. It evaluates market conditions across selectable technical strategies, displaying confidence scores alongside an

Indicator v6 Screeners & dashboardsTrend Repaints
Updated yesterday · None stated GitHub repository of Elton's Predictions Decision Engine

Crypto Cap

by InNoobWeTrust
4 stars

Crypto Cap estimates and plots the individual market capitalization of a cryptocurrency asset in a separate pane. It queries the aggregate cryptocurrency market cap index along with the specific base currency dominance percentage, multiplying them together to

Indicator v6
Updated yesterday · None stated GitHub repository of Crypto Cap

Xiaotang System V5.0

by TUSKIJAY
4 stars

Xiaotang System V5.0 is a price-chart overlay indicator that identifies momentum breakouts across moving averages and session VWAP. It computes Heikin-Ashi price data, 50-period and 200-period SMAs, and intraday VWAP while monitoring 5-minute higher-timeframe

Indicator v5 TrendOscillators & momentum Repaints
Updated 2 days ago · None stated GitHub repository of Xiaotang System V5.0

MA Crossover

by latentwill
4 stars

This overlay strategy calculates a fast and a slow simple moving average of close and trades their crossovers. A cross of the fast average above the slow average opens a long; a cross below opens a short. Position size is fixed at one unit. After each entry it

Strategy v5 TrendMoving averages
Updated 7 days ago · None stated GitHub repository of MA Crossover
4 stars

This indicator plots support and resistance pivot levels, order blocks, market structure changes, and Fibonacci optimal trade entry zones directly on the price chart. It calculates touch counts across dynamic zones, detects chart patterns, and tracks pre-spike

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 weeks ago · MIT GitHub repository of GOM KOLA SIDO — Full Integration

This overlay indicator researches multi-timeframe setup zones for NQ and ES futures on the price chart. It builds chart, five-minute through four-hour zones, including transformed IFVG and BB zones, scores them, and tracks liquidity pools and structure. During

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Futures Setups Research

BB Breakout [trugurpala]

by trugurpala
4 stars

This strategy executes trades based on Bollinger Band breakouts and ATR-based dynamic risk management. It opens a long position when price crosses above the upper Bollinger Band and a short position when price crosses below the lower band, provided no position

Strategy v6 Volatility & bandsBreakout
Updated 2 months ago · MIT GitHub repository of BB Breakout [trugurpala]

Power of Three [FEELS]

by VolodymyrFilias
4 stars

This overlay indicator maps the Power of Three cycle on the price chart. It builds an accumulation range around a higher-timeframe cycle open, marks a manipulation sweep beyond that range, and labels the later distribution move in the opposite direction. Confi

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · MIT GitHub repository of Power of Three [FEELS]

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