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

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

Option Selling

by ankurksoni
1 stars

A price-chart overlay that draws Fibonacci-style levels from the first five-minute candle of each day, and separately from the first red five-minute candle. Levels at 0, 0.44, 0.5, 0.56 and 1 of the candle range are drawn as lines, with an optional shaded band

Indicator v5 Support & resistanceSessions & time
Updated 2 days ago · None stated GitHub repository of Option Selling

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

Drawing Line Level Breakout

by pineforge-4pass
1 stars

A test strategy that draws a red horizontal line which follows a 20-period moving average by moving about a third of the distance each bar, and extends to the right. It goes long when the close crosses above that smoothed line and closes the long when the clos

Strategy v6 Moving averagesSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of Drawing Line Level Breakout

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
1 stars

This strategy compares Bollinger Bands and Keltner Channel to detect volatility regimes. It plots the bands and their difference along with the RSI of the difference on the price chart. Entries and exits occur on transitions in the volatility state, controlled

Strategy v5 Volatility & bandsOscillators & momentum
Updated 7 days ago · None stated GitHub repository of Penguin Volatility State Strategy

A strategy meant for a 5-minute chart that detects a break of a delta-based level on a 15-minute context, waits for a retest from the correct side, then enters on a reclaim candle. Gates include estimated pressure rotation, candle body and close location, entr

Strategy v6 VolumeBreakout Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of Delta Break and Retest Stage 8.0.2 Profile and Entry Fix
1 stars

A long-only strategy for crypto spot that builds support zones from pivot lows on a higher timeframe, 15 minutes by default, and watches the chart timeframe for a liquidity sweep below a swing low followed by a reclaim and a higher low. Reclaim confirmation ca

Strategy v6 Mean reversionSMC / ICT / price action

An overlay indicator that captures the high and low of an opening range starting at a configurable hour and minute, then computes the range average and extension levels from it. A 9 and 21 EMA pair is plotted with triangle markers on crossovers. Toggles show o

Indicator v5 Sessions & timeSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of OR Levels + EMA Cross Integrated

Pulse RSI

by vedkanani123
1 stars

A separate-pane oscillator built on a long-period RSI-style calculation with a default length of 55. Four selectable signal types are available: two trend variants, an oversold and overbought mode, and a custom long and short threshold mode. Threshold inputs s

Indicator v6 Oscillators & momentum
Updated 2 months ago · None stated GitHub repository of Pulse RSI

VOB Birth Bar Study v1

by nishpa800
1 stars

Marks the bar where a volume order block zone is first confirmed, at the completion of the moving average crossover, so the marker does not shift to an earlier bar afterwards. A sensitivity bank input selects the six sensitivity lengths, or custom values can b

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Birth Bar Study v1

Silverstrat

by GreyssonEnterprises
1 stars

A strategy that shades a chosen trading session on the price chart and looks for candles whose low sits above the high from two bars back, or whose high sits below the low from two bars back. Entry is placed at the midpoint of the gap, the stop at the signal c

Strategy v5 Sessions & timeSupport & resistance
Updated 2 months ago · MIT GitHub repository of Silverstrat

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

IB25 Strategy

by riegodavid-git
1 stars

A New York session strategy built on the initial balance, the price range of the first hour after the 09:30 Eastern open. It tracks the high and low of that opening window, draws a box, computes an anchored session VWAP and, once the range has formed, scans a

Strategy v5 BreakoutSessions & time
Updated 4 months ago · None stated GitHub repository of IB25 Strategy

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
1 stars

Reversal RSI Stochastic ATR is an indicator that prints a reversal label when RSI is beyond its oversold or overbought level and the stochastic K line crosses D inside its own extreme zone. On each signal it draws stop loss and take profit lines at an ATR mult

Indicator v6 Mean reversionOscillators & momentum
Updated 4 months ago · MPL-2.0 GitHub repository of Reversal RSI Stochastic ATR
1 stars

This strategy plots on the price chart and stores recent closes in a float array during the first sixty bars. It enters a long position when the newest stored close is above the close ten slots earlier and the nine-period EMA crosses above the twenty-one-perio

Strategy v5 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Corpus Barstate Array Helpers

SMC Confluence Engine v5

by shubhamtaywade82
1 stars

Scores smart money confluence across a four-layer timeframe stack on the price chart. A 4-hour EMA bias and premium or discount zone set direction, 1-hour structure confirms it, 15-minute order blocks and liquidity sweeps define the entry zone, and a chart-tim

Indicator v6 SMC / ICT / price actionSupport & resistance Archived
Updated 5 months ago · None stated GitHub repository of SMC Confluence Engine v5
1 stars

Reads candle sequences and labels them as rally, base or drop phases, then flags four patterns: rally-base-drop, rally-base-rally, drop-base-drop and drop-base-rally. Each pattern can be switched on or off. Bars can be coloured fully, only on detection, or not

Indicator v6 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Rally Base Drop Signals

RSI and Z-Score Speedometer

by Focal-QuantAI
1 stars

An indicator in a separate pane that shows two gauge-style speedometers drawn with lines. The left gauge maps a 14 period RSI to a needle from 0 to 100. The right gauge converts a 20 period price z-score, clamped to a chosen limit, to the same scale. Layout in

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 6 months ago · None stated GitHub repository of RSI and Z-Score Speedometer

MA+STO+MA_V1

by gabriel-klettur
1 stars

This strategy combines Exponential Moving Averages (10, 55, and 200 EMAs) with a Stochastic Oscillator to execute trades. It enters long positions when the Stochastic K line crosses above D in oversold territory while price is above the 200 EMA. Short entries

Strategy v5 TrendOscillators & momentum
Updated 7 months ago · None stated GitHub repository of MA+STO+MA_V1
1 stars

This indicator combines Volume Weighted Bands, a Hull Moving Average with Keltner Channels, and a Swing Profile directly on the price chart. It calculates volume-weighted trend lines, ATR volatility bands, and swing structures to plot dynamic support and resis

Indicator v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of Keltner Hull Swing Profile

EMA Ribbon

by Basant1Saini
1 stars

The EMA Ribbon strategy plots six exponential moving averages (periods 8, 13, 21, 34, 55, 89) on the price chart to form a visual ribbon. It detects trend direction using full stack alignment, partial alignment (at least 4 of 6 consecutive pairs), or fast EMA

Strategy v5 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of EMA Ribbon
1 stars

A Pine v5 strategy that trades a breakout from a narrow range bar. A bar is narrow when its range is below a set fraction of the average range. Its high and low are stored and drawn as levels, and a close above the high opens a long while a close below the low

Strategy v5 BreakoutVolatility & bands
Updated 8 months ago · None stated GitHub repository of NRBOAlgo Narrow Range Breakout

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