Synced with GitHub · updated yesterday

Free TradingView Pine Scripts

8,340 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
8,340 scripts
8 stars

MA ATR ADX PP Strategy combines customizable moving averages with Average True Range (ATR) and Average Directional Index (ADX) filters to generate trade entries and exits on the main chart. The script supports eight moving average types, including SMA, EMA, Hu

Strategy v4 Moving averagesTrend
Updated 4 years ago · None stated GitHub repository of MA+ATR+ADX+PP Strategy

EMA Cloud Dots

by lunarticktrading
7 stars

This indicator calculates fast and slow exponential moving averages of close prices and plots colored dots in a separate pane to show trend direction. Green dots appear when the fast EMA exceeds the slow EMA, while red dots signal the opposite. The script pull

Indicator v6 TrendMoving averages
Updated 2 weeks ago · None stated GitHub repository of EMA Cloud Dots
7 stars

This indicator plots a standard Relative Strength Index calculated from closing prices alongside a dynamic volatility band derived from the high and low price RSIs. The upper and lower bands envelope the main RSI line to highlight intrabar price extremes relat

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 months ago · None stated GitHub repository of RSI Divergence (Close inside Band)

Candlestick RSI

by suyons
7 stars

Calculates individual Relative Strength Index (RSI) values for price open, high, low, and close to render RSI as candlesticks in a separate pane. Users can toggle between candlestick and line displays. It includes customizable overbought and oversold threshold

Indicator v5 Oscillators & momentumVolatility & bands
Updated 4 months ago · None stated GitHub repository of Candlestick RSI

Market Profile

by s4mn0v
7 stars

This overlay indicator builds a Market Profile on the price chart from time-price opportunity letters. It marks the point of control, a value area at a configurable percent, single prints, session VWAP, and the initial balance, and can extend those levels. Use

Indicator v5 Support & resistanceVolume
Updated 5 months ago · None stated GitHub repository of Market Profile

This indicator identifies dynamic support and resistance levels using pivot highs and lows. It plots resistance and support lines directly on the price chart once pivot points are confirmed. Additionally, it calculates a volume oscillator using 9-period and 26

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 1 year ago · MPL-2.0 GitHub repository of Support & Resistance Levels with Break of Structure
6 stars

This indicator classifies price action into four distinct market regimes: Trend, Expansion, Compression, or Mean Reversion. It determines states using a simplified Hurst exponent estimate, ADX slope thresholds, and realized volatility measurements. Based on th

Indicator v6 TrendVolatility & bands
Updated 8 weeks ago · MIT GitHub repository of Capital41 Regime Matrix v3
6 stars

This indicator plots ICT Silver Bullet setups on the price chart. It marks New York and London session windows, fair value gaps, and optional swing highs and lows. Signals use fair value gap or market structure shift execution, with wick or close breakout dete

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of ICT Silver Bullet | Flux Charts v2

This overlay script is a headless volume-profile parity shell rather than a signal indicator. It fixes a one-minute source, Chicago regular-hours session, four-tick rows, a 70 percent value area, and named algorithms for the point of control, value area, and r

Indicator v6 Volume
Updated 3 days ago · MPL-2.0 GitHub repository of VP Research Preview — Profile Parity Shell

Weighted Percentile Nearest Rank calculates a weighted percentile level over a configurable lookback window and plots it directly on the price chart. Data points are weighted using linear time decay and optional inferred volume based on candle body size. The s

Indicator v6 Support & resistanceVolume
Updated 8 months ago · None stated GitHub repository of Weighted Percentile Nearest Rank

Cerebr Bot

by jerryinyang
5 stars

Cerebr Bot is an overlay indicator that maps order blocks and fair value gaps on the price chart. It validates order blocks using a candle-count range, a no-body buffer, and an optional reversal-magnitude filter based on candle body or the selected method. RSI

Indicator v4 SMC / ICT / price actionOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Cerebr Bot

This indicator plots multi-timeframe Exponential Moving Averages alongside double Bollinger Bands directly on the price chart. It calculates three EMAs (short, medium, and long term) fetched from configurable higher timeframes, alongside two sets of Bollinger

Indicator v4 TrendVolatility & bands
Updated 3 years ago · Apache-2.0 GitHub repository of Bollinger Bands Squeeze / Trend + EMAs

TRCD + Scaled RLI

by InNoobWeTrust
4 stars

This indicator draws in a separate pane and combines a true-range component with a scaled relative liquidity index. The liquidity reading applies RSI to ATR and can tint a gradient background between low and high liquidity colors. Optional tables show an ATR-b

Indicator v6 Volatility & bandsOscillators & momentum
Updated yesterday · None stated GitHub repository of TRCD + Scaled RLI
4 stars

This strategy trades E-mini and Micro E-mini S&P 500 futures on the price chart. It enters long when a fast EMA crosses above a slow EMA during New York regular trading hours, and enters short on the opposite cross unless long-only mode is on. Each entry place

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of ES S&P500 Strategy [trugurpala]
4 stars

Calculates the Relative Strength Index (RSI) and automatically detects regular and hidden bullish and bearish divergences against price movements. It identifies pivot highs and lows in both price and RSI across a configurable lookback window, drawing lines and

Indicator v5 Oscillators & momentumDivergence
Updated 11 months ago · Custom licence GitHub repository of RSI Divergence Detector [Lab]
4 stars

This strategy plots Bollinger Bands on the price chart using a simple moving average basis and a standard-deviation multiplier. Optional RSI, long-period Aroon, and EMA or SMA filters are present but stay disabled unless a password enables the PRO path. Long e

Strategy v4 Volatility & bandsOscillators & momentum

YORUKALIEFE

by Kalumur
4 stars

This indicator plots multiple exponential moving averages on weekly and monthly timeframes, including 14-period weekly EMA, 8-period monthly EMA, and 14-period monthly EMA. It also displays a Kijun line derived from the midpoint of high and low over 20 periods

Indicator v5 Moving averagesVolatility & bands
Updated 2 years ago · None stated GitHub repository of YORUKALIEFE

Snagprofit WMA MA

by dearvn
4 stars

Snagprofit WMA MA combines multi-timeframe Weighted Moving Averages (1M, 5M, 15M, and 1H) with a Simple Moving Average filter to assess trend momentum across different time horizons. It plots shape signals directly on the price chart when candle breakouts alig

Indicator v5 TrendMoving averages Repaints
Updated 4 years ago · None stated GitHub repository of Snagprofit WMA MA

P-EMA21

by gocaman
3 stars

P-EMA21 plots a 21-period exponential moving average and two smoothed moving averages, defaulting to lengths 21 and 55, on the price chart. It places long and short labels when the EMA crosses either smoothed average. Source, lengths, and a percentage threshol

Indicator v5 Moving averagesScreeners & dashboards
Updated yesterday · None stated GitHub repository of P-EMA21

Jash Test

by jash-git
3 stars

This indicator overlays five Fibonacci-based exponential moving averages (3, 13, 34, 55, and 144) directly on the price chart, drawing inspiration from Guppy Multiple Moving Averages and Granville rules. It triggers buy signals when the EMAs are stacked in com

Indicator v5 TrendMoving averages
Updated 4 weeks ago · None stated GitHub repository of Jash Test
3 stars

Candle Body Wick Alerts identifies candles with minimal or missing wicks based on comparisons between open, high, low, and close values. It checks if the price distance between key levels (such as open and low or high and close) falls within a set tolerance th

Indicator v5 Candlestick patternsSupport & resistance
Updated 5 months ago · None stated GitHub repository of Candle Body Wick Alerts
3 stars

The River Strategy with SuperScalper plots custom Bollinger Bands to form a price channel on the main chart overlay. It identifies breakout conditions when price bars clear the channel boundaries to generate entry, stop loss, and multi-tier take profit levels.

Indicator v5 Volatility & bandsSupport & resistance Repaints
Updated 12 months ago · None stated GitHub repository of River Strategy with SuperScalper by Leo
3 stars

This indicator plots a Traders Dynamic Index in a separate pane and scans it for regular and hidden divergences. It builds the index from a smoothed RSI, a signal line, and a longer baseline, then compares price and oscillator pivots over a lookback. Users can

Indicator v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of BTMM TDI Divergence Scanner
3 stars

This indicator identifies Tweezer Top and Tweezer Bottom candlestick reversal patterns directly on the price chart. It checks for matching bar highs or lows across consecutive candles while filtering out doji or weak candles based on user-defined threshold per

Indicator v5 Candlestick patterns
Updated 2 years ago · None stated GitHub repository of Tweezer Top/Bottom Pattern

This indicator computes standard deviation as a proxy for entropy and plots three smoothed, normalized oscillator lines in a separate pane. It calculates fast, medium, and slow simple moving averages of price dispersion, then normalizes each using a Z-score sc

Indicator v5 Volatility & bandsOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Pseudo-Entropy Oscillator with Standard Deviation
2 stars

Calculates the Relative Strength Index oscillator in a separate pane with configurable overbought and oversold thresholds. Includes options for smoothing the RSI line using various moving averages or Bollinger Bands, gradient fill zones, and regular divergence

Indicator v6 Oscillators & momentumVolatility & bands
Updated 11 days ago · MIT GitHub repository of RSI = Relative Strength Index

Volume Price Analysis

by TamTH-Dev
2 stars

The Volume Price Analysis (VPA) indicator computes the Rate of Flow (RoF) from price and volume data using selected moving average types. It applies smoothing and signals for analysis, with normalization for subjective value levels. Plots appear in a separate

Indicator v6 VolumeMoving averages
Updated 5 weeks ago · None stated GitHub repository of Volume Price Analysis

This indicator plots horizontal lines for the 50 percent level of the daily price range along with high and low values for daily, Asian, London, and New York sessions plus the true day open. It includes an optional confluence checklist that users can enable to

Indicator v6 Support & resistanceSMC / ICT / price action

Alpy

by avatar-lavventura
2 stars

This strategy calculates a Volume-Weighted Moving Average (VWMA) sourced from a 60-minute timeframe to generate upper and lower channel bands based on user-defined percentage offsets. It incorporates RSI and Williams Fractals logic to evaluate potential entry

Strategy v4 Moving averagesTrend Repaints
Updated 7 months ago · None stated GitHub repository of Alpy

FlowScope [Hapharmonic]

by regalouisei
2 stars

FlowScope draws a volume profile on the price chart by aggregating a chosen number of candles into one profile and splitting that range into price boxes. It stores a volume distribution for each profile, colors boxes with a custom low-to-high gradient, the can

Indicator v6 Volume
Updated 8 months ago · None stated GitHub repository of FlowScope [Hapharmonic]

Chaikin Money Flow (CMF)

by mushroom-men-Trading
2 stars

This indicator calculates the Chaikin Money Flow (CMF) to measure accumulation and distribution over a user-defined lookback period. It determines the money flow multiplier based on where the close falls within the bar's high-low range, multiplies it by volume

Indicator v6 VolumeOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Chaikin Money Flow (CMF)

Smart Money Breakouts strategy

by wynnforthework
2 stars

Smart Money Breakouts strategy is a price-chart overlay strategy that detects breakouts using volume-adjusted swing highs and lows. It calculates candle wicks or bodies, applies ATR-based adjustment for targets, and supports limit-order entries with coefficien

Strategy v5 SMC / ICT / price actionBreakout Repaints
Updated 1 year ago · None stated GitHub repository of Smart Money Breakouts strategy

Points

by Electrified-Trading
2 stars

Points is a Pine Script v5 library that stores paired x and y coordinates as two synchronized arrays. It creates empty or sized integer and float arrays, checks that both arrays share the same length, and raises a runtime error when they diverge or when an ind

Library v5
Updated 1 year ago · MPL-2.0 GitHub repository of Points

Pinbar Strategy

by Web3Degenerate
2 stars

This strategy identifies pin bar candlestick patterns, specifically hammer and shooting star candles, to trigger trade entries. It detects candle shapes based on a customizable Fibonacci threshold. Signals can be filtered using minimum and maximum ATR candle s

Strategy v5 Candlestick patternsTrend
Updated 2 years ago · None stated GitHub repository of Pinbar Strategy

HTF Candles & Pivots

by itmakesyousick
2 stars

HTF Candles & Pivots projects higher timeframe candle bodies, wicks, and pivot levels directly onto the price chart. It visualizes open-close ranges, high-low ranges, time divisions, and pivot calculations such as Central Pivot Range across automated or manual

Indicator v5 Support & resistanceSessions & time Repaints
Updated 3 years ago · None stated GitHub repository of HTF Candles & Pivots
2 stars

This overlay indicator combines a ZigZag swing plot, Fibonacci retracement levels, and a linear regression channel on the price chart. Pivot points use an ATR-based deviation multiplier and a minimum depth, and optional lines can extend left or right with pric

Indicator v4 TrendVolatility & bands Repaints
Updated 3 years ago · None stated GitHub repository of LinReg with RSI and Zigzag

RussiaFX Strategy

by DaniilOkrug
2 stars

This indicator plots green arrow up shapes on the price chart when the close exceeds the close one bar ago, high one bar ago, and high two bars ago. It plots red arrow down shapes when the close is lower than the close one bar ago, low one bar ago, and low two

Indicator v4 TrendBreakout
Updated 4 years ago · MIT GitHub repository of RussiaFX Strategy

Mini Screener

by jayadevrana
1 stars

Mini Screener is a multi-asset monitoring dashboard that displays price data and trend status for five user-selected symbols in an on-chart table. It calculates single-bar percentage price changes and checks whether each asset trades above or below an exponent

Indicator v6 Screeners & dashboardsTrend
Updated 3 days ago · MPL-2.0 GitHub repository of Mini Screener

SMC Imbalance Context

by skipp-dev
1 stars

SMC Imbalance Context is an indicator that overlays FVG zones, BPR zones, liquidity voids, and imbalance state labels on the price chart. It reads active states and mitigation details for bull and bear FVGs along with BPR and liquidity void data from the skipp

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 days ago · None stated GitHub repository of SMC Imbalance Context

Leverage Margin Call Perp 5x

by pineforge-4pass
1 stars

This strategy is a validation probe that opens one oversized long on the first flat bar at or after bar index 50 and never issues a close or exit. It sets required margin to 20 percent, which corresponds to 5x leverage, and sizes quantity from a five-million n

Strategy v6
Updated 6 days ago · Apache-2.0 GitHub repository of Leverage Margin Call Perp 5x

P Synthetic Conditional Calls

by GammaExpansion
1 stars

This indicator in Pine Script v6 calculates and plots three lines on a separate pane. It uses an input to choose between EMA or SMA of close over 10 periods for the main line. The second line applies RSI of close over 14 periods only when close exceeds open. T

Indicator v6 Moving averagesOscillators & momentum
Updated 6 days ago · MIT GitHub repository of P Synthetic Conditional Calls

This intraday strategy fades tests of the previous day high and low during the New York morning session. It identifies mean-reversion opportunities when price touches within a few ticks of the prior day high or low, closes back inside, confirms with above-aver

Strategy v6 Mean reversionSupport & resistance
Updated 2 months ago · None stated GitHub repository of TeleNexus Sovereign PDH/PDL Fade V6

XSP Daily Lotto

by majohnst
1 stars

This indicator tracks intraday key levels, premarket ranges, and opening range boundaries on index instruments like XSP. To compensate for missing premarket data on index charts, it streams and scales MES futures data to compute sentiment thresholds and target

Indicator v5 Support & resistanceSessions & time Repaints
Updated 4 months ago · None stated GitHub repository of XSP Daily Lotto

US Ex-Dividend Alert

by kevinesk
1 stars

This indicator detects US stock ex-dividend dates using request.dividends() on the chart symbol. It plots purple diamonds marking past ex-dates and displays colored glows around buy windows: yellow when the window is open but quality gates fail, green when all

Indicator v5
Updated 4 months ago · None stated GitHub repository of US Ex-Dividend Alert

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