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

VOB Asym Combo v10.5

by nishpa800
1 stars

Detects volume order block zones from six sensitivity tiers and draws zone lines on the price chart. This version gives every detection lane two separate checkboxes, one for chart markers and one for alerts, so a marker setting never changes alerts. Lanes incl

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym Combo v10.5

This overlay strategy enters only after a buy-side or sell-side liquidity sweep confirms a displaced fair value gap. It sizes the position from a fixed fraction of equity, uses a dynamic stop based on that risk, and sets the target from a reward-to-risk multip

Strategy v6 SMC / ICT / price actionVolatility & bands
Updated 2 months ago · None stated GitHub repository of TnSovereignIctSniperV6 [TeleNexus]

LGVW Tracker

by Allen1212
303 stars

The LGVW Tracker script visualizes historical trade actions taken by ARK Invest for Longview Acquisition Corp (LGVW) directly on the price chart. It plots text labels on specific dates indicating buy or sell activity alongside the number of participating ARK f

Indicator v4
Updated 2 years ago · None stated GitHub repository of LGVW Tracker

ADX Strategy

by hasnocool
106 stars

An ADX-based trend-following strategy that enters long positions when the positive directional indicator (DI+) crosses above the Average Directional Index (ADX) while ADX remains below a preset threshold and a fast EMA is above a slow EMA. It allows adding to

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of ADX Strategy

Plot RSI and bar_index

by be-thomas
65 stars

This indicator calculates the relative strength index of the closing price with a fixed length of twenty and plots that series in black. It also plots the bar index as a second series. Both plots are drawn in a separate pane. There are no user inputs, so the R

Indicator v4 Oscillators & momentum
Updated 5 days ago · GPL-3.0 GitHub repository of Plot RSI and bar_index
6 stars

This indicator plots recurring time-based price levels on the price chart using Wednesday South African Standard Time and midnight UTC plus two session data. It calculates and draws the open, high, and low levels of the first five Wednesdays of each month with

Indicator v5 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of WED & MIDNIGHT DST System (Alerts)
3 stars

This indicator overlays multi-timeframe candlesticks on the current price chart. It pulls data from up to five selected higher timeframes and renders them as boxes with customizable body, border, and wick colors. Candles can be styled as regular or Heikin-Ashi

Indicator v5 Candlestick patternsTrend Repaints
Updated 5 months ago · None stated GitHub repository of MTF Candles + MAs
2 stars

This TradingView Pine Script indicator plots the Fractal Dimension Index (FDI) calculated from multiple length parameters for slow fast and ultra slow variants. It optionally displays RSI and BBWP indicators with customizable sources and baselines. Horizontal

Indicator v5 Oscillators & momentumVolatility & bands
Updated 8 months ago · None stated GitHub repository of Musashi Fractal Dimension v2
1 stars

This strategy draws an exponential moving average of close and an ATR envelope around it on the price chart. It enters one long contract when close crosses above the upper band and one short contract when close crosses below the lower band, reversing only from

Strategy v6 BreakoutMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe kkb-probe-02-breakout-trigger

VOB Asym Combo v10.6

by nishpa800
1 stars

Detects volume order block zones from six sensitivity tiers and draws zone lines on the price chart. Each detection lane has its own plot checkbox and alert checkbox, kept independent of each other. Lanes include strict ladder patterns, multi-zone coincidences

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym Combo v10.6

TNSovereignLib

by raybird
1 stars

TNSovereignLib is a Pine Script v6 library providing modular components for trading systems. It defines custom data structures including an execution regime enumeration and a signal payload user-defined type containing price, validity flags, and metadata tags.

Library v6
Updated 2 months ago · None stated GitHub repository of TNSovereignLib

LHX-tracker

by Allen1212
303 stars

This indicator marks historical ARK Invest purchases and sales of LHX on the price chart. It places green buy labels below bars and red sell labels above bars at fixed dates, with text that notes the trade direction and how many ARK ETFs acted that day. An ETF

Indicator v4
Updated 2 years ago · None stated GitHub repository of LHX-tracker

ADX | DMI Trend

by hasnocool
106 stars

This price-chart strategy treats a rising ADX above a chosen key level as a trend and uses plus and minus DI to choose direction. It enters long when plus DI leads and short when minus DI leads, if short trades are allowed. Volume and an EMA or SMA can block e

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of ADX | DMI Trend

LOESS Filter

by mihakralj
99 stars

This indicator plots a LOESS smoother on the price chart. It fits a locally weighted linear regression inside a sliding window and returns the fitted value at the window center. The length setting sets the window, which is forced to an odd size of at least thr

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of LOESS Filter

Plot RSI and bar_index

by be-thomas
65 stars

This indicator calculates a 20-period relative strength index of the close and plots that series in a separate pane. It also plots the current bar index as a character marker at the top of the same pane. The RSI length is fixed and no inputs are exposed. The s

Indicator v4 Oscillators & momentum
Updated 5 days ago · GPL-3.0 GitHub repository of Plot RSI and bar_index
6 stars

This indicator plots key support and resistance levels based on Wednesday session high, low, and open prices, as well as daily Midnight (UTC+2) candle ranges. It automatically adjusts for US Daylight Saving Time changes to maintain precise weekly levels across

Indicator v5 Support & resistanceSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of WED & MIDNIGHT DST System Alerts
3 stars

This indicator overlays candles from multiple higher timeframes on the main price chart. It fetches OHLC data from timeframes 5, 15, 30, 60, and daily, displaying them clustered with customizable colors for bullish and bearish bodies, borders, and wicks. Selec

Indicator v5 Candlestick patternsMoving averages Repaints
Updated 5 months ago · None stated GitHub repository of MTF Candles + MAs

Mxwll Sessions

by regalouisei
2 stars

This indicator draws session boxes and labels for New York, London, and Asia markets on the price chart. It supports projection options of Bars, Line, or None, profile types of Letters, Bars, or None, and shows pre-market and post-market sessions optionally. V

Indicator v5 Sessions & time
Updated 8 months ago · None stated GitHub repository of Mxwll Sessions
1 stars

This validation strategy calculates fast and slow simple moving averages of the closing price. It submits a fixed-size long entry when the fast SMA crosses above the slow SMA, and enters short when the fast SMA crosses below the slow SMA, reversing any open po

Strategy v6 Moving averagesTrend
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe kkb-probe-03-margin-100-pct

Reflection Line

by morindok
1 stars

Calculates and projects a reflecting line that bounces back and forth between two defined price boundaries based on a specified slope angle. Starting from a chosen time anchor, the line updates on every bar of the selected timeframe, reversing direction whenev

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Reflection Line

VOB Asym Combo v10.7

by nishpa800
1 stars

Detects volume order block zones from six sensitivity tiers and draws zone lines on the price chart. Each detection lane keeps separate plot and alert checkboxes. Lanes cover strict ladder patterns, multi-zone coincidences, and high-volume events combined with

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym Combo v10.7
1 stars

This indicator ranks swing-pivot liquidity pools on the price chart and marks the highest-scoring pool as the current magnet. It clusters equal highs and lows, then scores each pool from strength, proximity, age decay, and momentum bias. A higher-timeframe EMA

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of TnSovereignLiquidityMagnetV6

LMT-Tracker

by Allen1212
303 stars

LMT-Tracker visualizes historical buy and sell transactions executed by ARK Invest funds for Lockheed Martin (LMT) stock. The indicator overlays labels directly onto the price chart at specific historical dates using timestamps, displaying trade actions and ET

Indicator v4
Updated 2 years ago · None stated GitHub repository of LMT-Tracker
106 stars

This strategy captures strong bullish momentum by combining a 200-period SMA baseline, a custom Bollinger Band, the True Strength Index (TSI) smoothed with WMAs, and the ADX trend strength indicator. It initiates long positions when price is above the 200 SMA,

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of ADX_TSI_Bol Band Trend Chaser

Log-Cosh Loss

by mihakralj
99 stars

Log-Cosh Loss computes a numerically stable log-cosh of the difference between an actual series and a predicted series, then plots the simple moving average of that loss over a user-set length. Defaults compare close with open. It draws the result in a separat

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Log-Cosh Loss

Plotshape Example 2

by be-thomas
65 stars

This educational script demonstrates how to plot custom shapes directly onto the price chart using Pine Script. It evaluates whether the close of the current bar is greater than or equal to its open. Bullish or neutral bars display a green upward triangle abov

Indicator v4 Candlestick patterns
Updated 5 days ago · GPL-3.0 GitHub repository of Plotshape Example 2
3 stars

MTF Candles Price Levels overlays higher-timeframe reference lines and custom candle styling onto the main chart. It fetches higher-timeframe open and close prices to calculate configurable offset levels above key prices. Additional features include session fi

Indicator v5 Support & resistanceCandlestick patterns Repaints
Updated 5 months ago · None stated GitHub repository of MTF Candles Price Levels

Naked Intrabar POC

by regalouisei
2 stars

Naked Intrabar POC is a price-chart indicator that estimates each bar's point of control from lower-timeframe samples. It splits the bar range into bins and accumulates either time or volume from those samples, then draws the resulting level as a line. Hit and

Indicator v5 VolumeSupport & resistance
Updated 8 months ago · None stated GitHub repository of Naked Intrabar POC

PF probe kkb-probe-integration

by pineforge-4pass
1 stars

This strategy combines a one-dimensional Kalman filter with an EMA midline and ATR breakout bands. It enters long when the Kalman estimate rises and close crosses above the upper band, and short when the estimate falls and close crosses below the lower band. A

Strategy v6 TrendVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe kkb-probe-integration

This indicator draws a simulated price path as a blue polyline on the price chart. It stores recent closes, highs, and lows, then builds each point from a lookback-weighted average of older closes, an attraction toward that average, and random noise scaled by

Indicator v5 Volatility & bands Repaints
Updated 7 weeks ago · None stated GitHub repository of Simulated Price Repaint (Polyline)
1 stars

Pine v5 overlay indicator that builds volume order block zones from fast and slow EMA crossovers at six sensitivity tiers, from 1000 to 2500 bars. Bullish zones form around the lowest bar and bearish zones around the highest, and zones are removed when price c

Indicator v5 Support & resistanceVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym T3 x6 MutEx Lines
1 stars

TnSovereignLiquidityMatrixV6 is a Pine Script v6 strategy that identifies liquidity zones for trading. It extracts a macro anchor point from the highest volume bar on a user-defined timeframe such as daily. Fibonacci levels are then extended using ATR multiple

Strategy v6 VolumeSupport & resistance
Updated 2 months ago · None stated GitHub repository of TnSovereignLiquidityMatrixV6

LPSN-tracker

by Allen1212
303 stars

LPSN-tracker plots historical ARK Invest buy and sell activity for LivePerson on the price chart. It places green labels below bars for buys and red labels above bars for sells, each marked with an X1 count of funds trading that day. The only setting chooses A

Indicator v4
Updated 2 years ago · None stated GitHub repository of LPSN-tracker
106 stars

This strategy calculates and plots aggregated Bitcoin volume collected across multiple exchanges, along with two volume moving averages in a separate pane. It enters long positions when price crosses above a fast EMA while remaining above a slow EMA, and enter

Strategy v4 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Aggregate BTC Volume + EMA Strat

This indicator computes the cumulative distribution function (CDF) of a log-normal distribution applied to a min-max normalized price series. It normalizes the source series within a rolling lookback window and calculates the CDF using an Abramowitz and Stegun

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Log-Normal Distribution CDF (LOGNORMDIST)

Price vs MA

by be-thomas
65 stars

This indicator builds a table of simple moving averages and places it on the price chart. It calculates a user-chosen number of SMAs whose periods start at a base length and increase by a fixed step. On the last bar it lists each period and its SMA value, colo

Indicator v4 Moving averagesScreeners & dashboards
Updated 5 days ago · GPL-3.0 GitHub repository of Price vs MA

MTF CCI & SAR

by g-moe
3 stars

This multi-timeframe indicator calculates the Commodity Channel Index and Parabolic SAR across four user-defined timeframes, defaulting to 1, 30, 60, and 240 minutes. It generates signals when CCI exceeds an entry threshold across all four periods while price

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of MTF CCI & SAR
2 stars

This indicator projects future pivot levels on the main chart by combining zigzag price swings with a choice of underlying momentum oscillators, such as RSI, CCI, CMO, COG, MFI, or ROC. It draws projected pivot points, pivot lines, sentiment background fills,

Indicator v5 Support & resistanceTrend Repaints
Updated 8 months ago · None stated GitHub repository of Next Pivot Projection [Trendoscope]

This strategy confirms swing pivot highs and lows and compares each new pivot with the previous swing of the same type. It draws on the price chart. A long entry fires when a confirmed pivot high is a higher high and the position is flat or short. A short entr

Strategy v6 Support & resistanceTrend
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe liquidity-sweep-probe-01-pivot-swing

Sphere

by morindok
1 stars

A drawing tool that renders a wireframe sphere on the price chart. The user picks two points by time and price, and the script scales a fixed set of precomputed outline coordinates into the box between them, drawing each ring as a blue polyline once on the las

Indicator v5
Updated 7 weeks ago · None stated GitHub repository of Sphere
1 stars

This strategy draws on the price chart and trades structural breakouts. It stores confirmed pivot highs and lows, then looks for a close beyond the last pivot in the direction of an exponential moving average. A thermodynamic check must also pass, with free en

Strategy v6 SMC / ICT / price actionBreakout
Updated 2 months ago · None stated GitHub repository of TnSovereignMarketStructureV20

LSPD-tracker

by Allen1212
303 stars

This overlay indicator marks historical ARK Invest purchases of LSPD on the price chart. It places green buy labels below bars at fixed calendar dates, each showing a buy count of one. An ETF input switches between all recorded ARK activity and ARKF only; the

Indicator v4
Updated 2 years ago · None stated GitHub repository of LSPD-tracker

Alex Days HiLo Rajib

by hasnocool
106 stars

Alex Days HiLo Rajib tracks the highest high and lowest low over a customizable lookback period and overlays them directly on the price chart. When the current high exceeds the previous highest level, the script displays a signal arrow, and another arrow appea

Strategy v4 BreakoutSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Alex Days HiLo Rajib

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