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

A price-chart indicator by BigBeluga that draws a custom volatility-based Supertrend with an optional shaded trend cloud, and marks order blocks at confirmed swing pivots. Each block shows its buy and sell volume percentage. Blocks can be removed once price br

Indicator v6 SMC / ICT / price actionTrend
Updated 2 months ago · None stated GitHub repository of Volume-Trend Order Block Engine

Squarify 46 v2

by nishpa800
1 stars

Overlays up to 46 buy and sell marker signals on the price chart, built from standard deviation displacement, pullback pockets, relative volume tiers and fair value gap structures. Inputs set three displacement multipliers, a first-bar-only switch and per-sign

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Squarify 46 v2
1 stars

A strategy that sorts the market into quiet, active and extreme regimes using ATR as a percentage of price against two thresholds. Position size is 15 percent of equity in quiet markets, 25 percent in active ones, and zero in extreme ones. Entries are long onl

Strategy v6 Volatility & bandsTrend
Updated 2 months ago · None stated GitHub repository of TN Volatility Regime Sovereign

HUYA Tracker

by Allen1212
303 stars

The HUYA Tracker indicator plots buy and sell labels on the price chart to mark ARK Invest trading activity in HUYA stock. It displays dates when ARK purchased or sold shares using X1 notation for single share counts. The main setting allows selection of speci

Indicator v4 Support & resistanceSMC / ICT / price action
Updated 2 years ago · None stated GitHub repository of HUYA Tracker

Test-033-Distribution

by ricardosantos79
261 stars

This indicator measures the absolute bar-to-bar change of the close and tracks the smallest and largest of those changes seen so far. It maps each change onto a 0 to 100 scale between that minimum and maximum, then, on the last bar only, counts how often each

Indicator v4 Volatility & bands
Updated 4 years ago · None stated GitHub repository of Test-033-Distribution
106 stars

This Pine Script strategy calculates three RSI indicators with periods 50, 75 and 100 on the chosen source. It computes multiple simple and exponential moving averages on the fast RSI and assigns colors based on changes relative to the slow RSI. Long entries t

Strategy v4 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 3 RSI MA movement crypto strategy
99 stars

This indicator calculates a causal approximation of the Hodrick-Prescott filter. It plots a smoothed trend of the selected source and a cycle equal to the source minus that trend. Lambda controls smoothing; the source defaults to close. The trend is drawn on t

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Hodrick-Prescott Filter (HP)

My Script

by be-thomas
65 stars

This indicator calculates and plots a 5-period simple moving average and a 50-period simple moving average based on the closing price directly on the main price chart. It detects crossover points between the fast and slow moving averages, marking each occurren

Indicator v4 Moving averagesTrend
Updated 5 days ago · GPL-3.0 GitHub repository of My Script

Tri-Star - Bearish

by TWODS-CAPITAL
37 stars

This indicator scans price charts to identify the Bearish Tri-Star candlestick pattern, which consists of three consecutive Doji candles appearing at the peak of an uptrend. It verifies trend context using simple moving averages (SMA 50 or SMA 200) or allows t

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Tri-Star - Bearish

Trailering I005

by ruckard
13 stars

Trailering I005 is a crypto-focused trading strategy template designed for automated execution through Zignaly webhooks. It evaluates price excursion to minimize risk and maximize returns. The strategy supports take-profit targets, trailing take-profits, fixed

Strategy v5 Volatility & bands
Updated 1 year ago · None stated GitHub repository of Trailering I005
7 stars

The USD Volume (Auto-Unit Scaling) indicator calculates the trading value as close price multiplied by volume for each bar. It plots this monetary value in a separate pane using column style bars colored green for bullish and red for bearish candles. Units aut

Indicator v5 Volume
Updated 3 months ago · None stated GitHub repository of USD Volume (Auto-Unit Scaling)

Price Action Suite

by alboogycOdR
6 stars

Price Action Suite is an overlay indicator that identifies key price action and smart money concepts directly on the main chart. It plots internal and external market structure events such as Break of Structure and Change of Character, displays swing order blo

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of Price Action Suite
3 stars

This strategy combines MACD and Supertrend to generate entries on the price chart. The MACD oscillator uses selected source, fast length 12, slow 26, signal 9 and EMA or SMA. Supertrend on higher timeframe 15 provides trend direction and ATR trailing stop. Sig

Indicator v5 TrendOscillators & momentum Repaints
Updated 5 months ago · None stated GitHub repository of MACD VWMA Strategy

This indicator evaluates market non-randomness by running a Wald-Wolfowitz runs test on intrabar price movements. Using lower timeframe data requested via external libraries, it measures whether intrabar directional price sequences significantly deviate from a

Indicator v5
Updated 8 months ago · None stated GitHub repository of Intrabar Run Count Indicator [tbiktag]
1 stars

This validation probe strategy tests how TradingView handles dual stop-order priority based on script source order. At a fixed time of 02:45, when no position is open, it submits a short stop order below the close followed by a long stop order above the close.

Strategy v6 BreakoutSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 85 - Dual Stop Short First

VWMA True Range

by vedkanani123
1 stars

A separate-pane indicator that applies a volume-weighted moving average to true range over a chosen period, with optional smoothing. Long and short thresholds set when the reading counts as a bullish or bearish state. Options include a fast Hull line, a band d

Indicator v6 Volatility & bandsVolume
Updated 2 months ago · None stated GitHub repository of VWMA True Range
1 stars

Overlays up to 46 buy and sell marker signals on the price chart, built from standard deviation displacement, pullback pockets, relative volume tiers and fair value gap structures. Inputs set three displacement multipliers, a first-bar-only switch and per-sign

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Squarify 46 v2 (Tick-Friendly)

Sine Wave for FLD

by mikeyhu70
1 stars

This indicator draws sine waves tied to Future Line of Demarcation cycles in a separate pane. Up to three FLD periods can be set manually or chosen automatically from the chart timeframe, with offsets, line widths and transparency for each. A composite line co

Indicator v4 Support & resistance
Updated 6 months ago · None stated GitHub repository of Sine Wave for FLD

HXL Tracker

by Allen1212
303 stars

The HXL Tracker indicator visualizes historical buy and sell trades made by ARK Invest for HXL stock directly on the price chart. It places chart labels at specific timestamps corresponding to transaction dates, displaying buy or sell activity counts across AR

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

Test-035-Montecarlo

by ricardosantos79
261 stars

This indicator overlays the price chart and prepares a fixed set of fifty lines for a Monte Carlo-style test. A custom pseudo-random function updates a stored seed and returns values inside a chosen range. Inputs set the historical data size, the depth of each

Indicator v4
Updated 4 years ago · None stated GitHub repository of Test-035-Montecarlo
106 stars

This trading strategy combines three Exponential Moving Averages (8, 14, and 50 periods by default) with Stochastic RSI and Average True Range (ATR). It enters a long position when EMA 1 is above EMA 2, EMA 2 is above EMA 3, and the Stochastic RSI %K line cros

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of 3 x EMA + Stochastic RSI + ATR

Huber Loss (HUBER)

by mihakralj
99 stars

This indicator calculates Huber loss between a selected source and an exponential moving average of that source. Inside the delta threshold it uses half the squared error; beyond delta it uses a linear absolute-error form. It averages those values over the cho

Indicator v6 Moving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Huber Loss (HUBER)

My Script

by be-thomas
65 stars

This indicator draws a box on every bar using Pine Script's box.new function. The left edge is the previous bar index and the top is the previous bar's low. The right edge is the current bar index and the bottom is the current bar's high. It plots directly on

Indicator v4
Updated 5 days ago · GPL-3.0 GitHub repository of My Script

Tri-Star - Bullish

by TWODS-CAPITAL
37 stars

Identifies and highlights the Bullish Tri-Star candlestick pattern on the price chart. The indicator detects three consecutive doji candles following an established downtrend, determined by moving average trend rules (SMA 50, SMA 200, or disabled). When the pa

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Tri-Star - Bullish

Trailering J009

by ruckard
13 stars

Trailering J009 is a long-only strategy designed for cryptocurrency trading with Zignaly integration. It evaluates price excursion across multiple sub-strategy trigger conditions to size trade entries and refine exit points. The system features flexible exit m

Strategy v5 Volatility & bandsTrend
Updated 1 year ago · None stated GitHub repository of Trailering J009
7 stars

This indicator overlays volume-delta bubbles and absorption labels on the price chart. It signs volume as positive or negative from either a lower-timeframe open-close comparison or the current candle direction, then flags unusual activity with an adaptive z-s

Indicator v5 Volume
Updated 3 months ago · None stated GitHub repository of Volume Delta Bubble + Absorption
6 stars

The Professional ORB + ICT System combines Opening Range Breakout (ORB) techniques with Smart Money Concepts on the price chart. It defines session opening ranges across major global sessions, classifies range width using ATR metrics, and tracks Relative Volum

Indicator v5 SMC / ICT / price actionBreakout
Updated 7 months ago · None stated GitHub repository of Professional ORB + ICT System

Market Rhythm Adaptive Trading Algo V1 is an overlay indicator that combines Kaufman Adaptive Moving Averages (KAMA), an ADX regime filter, Choppiness Index, Rate of Change, and RSI to identify market rhythm and trend entries. Depending on whether the ADX valu

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Market Rhythm Adaptive Trading Algo V1

Intraday Intensity Modes

by regalouisei
2 stars

Intraday Intensity Modes calculates David Bostian's Intraday Intensity Index with multiple calculation variations. It evaluates price positioning within the high-low range relative to volume, offering cumulative, normalized oscillator, and inverse volume optio

Indicator v5 VolumeOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Intraday Intensity Modes

PF Probe 86 Dual Stop Low First

by pineforge-4pass
1 stars

A test strategy from a reference corpus that places a long stop and a short stop at the same time, 0.2 percent above and below the close of the 02:45 bar. It only does so on bars where the open is nearer to the low than to the high, so the price path is expect

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 86 Dual Stop Low First

Moving Box

by morindok
1 stars

This indicator projects dynamic geometric shapes and envelopes directly onto the price chart based on moving averages and extreme price lookbacks. Users can select shapes such as boxes, rhombuses, ellipses, spirals, or hypercubes. The script calculates base, m

Indicator v5 Moving averagesSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Moving Box
1 stars

A gold-focused price-chart indicator that measures rolling correlation between the chart symbol and the dollar index, and when the correlation is inverse enough it generates signals from RSI crossing its oversold and overbought levels. It adds a Supertrend tre

Indicator v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Wake Up, Neo Gold/DXY Confluence

Squarify 46 v3.1

by nishpa800
1 stars

Overlays up to 46 buy and sell marker signals on the price chart, built from standard deviation displacement, pullback pockets, relative volume tiers and fair value gap structures. Inputs set three displacement multipliers, a first-bar-only switch and per-sign

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Squarify 46 v3.1
1 stars

The script calculates the yield spread between long-term and short-term US Treasury yields (T10Y2Y or manual US10Y minus US02Y) and plots the spread line on a separate pane. It signals long entries on steepening beyond a user threshold in reversion mode or SMA

Strategy v6 Mean reversionSupport & resistance
Updated 2 months ago · None stated GitHub repository of TN Yield Spread Sovereign v6

Swing High/Low

by mikeyhu70
1 stars

Finds pivot highs and lows using separate left and right bar lengths and draws them on the price chart. A shift setting waits for the bar to close before printing a pivot, and an option shows the most recent low as a stop reference. Levels can extend to the ri

Indicator v4 Support & resistance
Updated 6 months ago · None stated GitHub repository of Swing High/Low

IBKR Tracker

by Allen1212
303 stars

This indicator visualizes historical transaction data for Interactive Brokers Group Inc (IBKR) executed by ARK Invest funds. It overlays visual labels directly onto the price chart at specific historical timestamps, indicating institutional buy and sell action

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

Test-Alphabet

by ricardosantos79
261 stars

This indicator builds a string from an integer by counting its digits, splitting the value into two-digit indices, and mapping each index to an uppercase letter or a printable ASCII character. A selector chooses which alphabet function is used, and the mapped

Indicator v4
Updated 4 years ago · None stated GitHub repository of Test-Alphabet
106 stars

This long-only trend-following strategy identifies breakout trades by requiring price to breach a 250-bar high while aligned with 50-period, 150-period, and 200-period Simple Moving Averages. It calculates relative strength against a comparative market benchma

Strategy v4 TrendBreakout
Updated 2 years ago · GPL-3.0 GitHub repository of 365 Day High Breakout Strategy

Hurst Exponent (HURST)

by mihakralj
99 stars

Calculates and plots the Hurst Exponent to quantify the persistence, mean-reverting tendencies, or random walk characteristics of a time series. It computes logarithmic returns, segments the lookback window into sub-periods to determine rescaled range statisti

Indicator v6 TrendMean reversion
Updated 4 weeks ago · Apache-2.0 GitHub repository of Hurst Exponent (HURST)

My Script

by be-thomas
65 stars

This Pine Script indicator computes a simple moving average (SMA) of length 10 based on the close prices of the trading instrument. The script uses the study function to define the indicator and plots the SMA line in a separate pane. No signals are generated a

Indicator v4 Moving averages
Updated 5 days ago · GPL-3.0 GitHub repository of My Script

Triple EMA

by TWODS-CAPITAL
37 stars

This indicator plots a triple exponential moving average of the closing price on the price chart. It smooths close with an exponential moving average of a chosen length, then applies the same average twice more, and combines the three results as three times th

Indicator v5 Moving averages
Updated 3 years ago · MIT GitHub repository of Triple EMA

Trailering K004

by ruckard
13 stars

Trailering K004 is a long-only strategy designed with integrated Zignaly automated alert webhooks. It calculates entry signals and dynamically adjusts capital allocation based on the number of active sub-strategy conditions met over a specified lookback period

Strategy v5 BreakoutVolatility & bands
Updated 1 year ago · None stated GitHub repository of Trailering K004

VWAP Trader NXi

by eddiebelaval
7 stars

VWAP Trader NXi calculates a daily session-anchored Volume Weighted Average Price along with two custom standard deviation bands on the main price chart. It plots the core VWAP, Value Area bands, outer extension zones with background shading, and the previous

Indicator v5 VolumeVolatility & bands
Updated 3 months ago · None stated GitHub repository of VWAP Trader NXi
6 stars

This indicator marks a trading session in the GMT+2 timezone and builds a price range from the four hours before the session starts. It requests one-minute highs and lows, stores the range extremes, and draws two horizontal lines on the price chart that extend

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Range Rejection Trading Indicator

Market View++

by g-moe
3 stars

Market View++ is a multi-symbol market overview dashboard indicator that displays metrics across multiple financial assets on the price chart. It tracks up to ten customizable individual symbols alongside grouped composites, calculating key metrics such as rel

Indicator v5 Screeners & dashboardsSessions & time
Updated 5 months ago · None stated GitHub repository of Market View++

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