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.
This indicator evaluates and scores trade signal quality using a four-layer filtering process drawn directly on the main chart. It evaluates volume spikes against a moving average, higher-timeframe EMA trend alignment, price breaches beyond ATR volatility band
An indicator that looks for reversal setups inside a Fibonacci retracement zone, defaulting to 61.8 to 78.6 percent with a sweet spot level, measured from a higher timeframe. It combines W and M pattern matching with Williams %R, MACD, RSI and an OBV EMA, and
A Pine v4 overlay that draws a zig-zag between swing highs and lows found with a highest and lowest close test over a set length, default 100. For each leg it adds dotted upper and lower channel lines offset by the largest deviation of price from the leg, and
This is a trimmed version of the Quantum Flow gold indicator that draws smart money zones on the price chart: order blocks, breakers, liquidity pools, equal high and low sweeps and break of structure retests. Signals pass through a hard bias gate, a chop gate,
Applies two Kalman filters, a short one at 50 bars and a long one at 150 by default, to closing price on the price chart. Trend turns up when the short filter is above the long one and down in the opposite case. Labels mark each turn with the close, and boxes
The STT SR TMA Scale Plan is an intraday trading strategy that overlays price charts to execute trades based on Triangular Moving Average (TMA) crossings, VWAP breakouts, and support/resistance levels like daily pivots or Anchored VWAP. Entries are restricted
This script provides a standardized boilerplate template for developing Pine Script version 6 indicators rendered directly on the price chart. It establishes input configurations for data source selection, period length, and visual signal toggling. The file is
An overlay port of the classic Supertrend indicator. It builds upper and lower bands from a price source, by default hl2, plus or minus an ATR multiple, and flips the trend when the close crosses the opposite band. A green line is drawn under price in an uptre
This strategy identifies breakout opportunities in Bursa Malaysia stocks using a slow EMA trend filter where price exceeds the 150-period EMA and the slow EMA is above its 150 EMA. It plots fast and slow EMAs on the price chart. Entry occurs on a new 20-day hi
MACD is a standard moving average convergence divergence oscillator in a separate pane. It shows the MACD line, a signal line that can use EMA or SMA smoothing, and a histogram colored in four shades for rising and falling momentum above or below zero. Optiona
This strategy plots a volume-weighted moving average, a Hull moving average, and a linear regression on the price chart. It enters long when the Hull average crosses above the volume-weighted average while stochastic is above 50, on-balance volume is rising, m
A strategy that scores RSI across four timeframes, with weights falling from the chart timeframe to the 4-hour, and adds or subtracts points for RSI divergence at recent pivots. It enters long when the score rises above a threshold and short when it falls belo
A strategy that trades Supertrend direction flips when ADX is above a threshold. A flip to uptrend with strong ADX opens a long, and a flip to downtrend opens a short, one position at a time. The Supertrend line is the initial stop and the take profit is 2.5 t
An overlay toolkit for crypto charts combining a volume profile, anchored VWAP, optional EMA lines, a higher-timeframe EMA bias and an order flow proxy from lower-timeframe delta, relative volume and cumulative delta, with price action checks from swing pivots
This intraday trading strategy combines fast, slow, and trend exponential moving averages with MACD, RSI, and ADX filters to generate trade signals during active trading sessions. It enters long positions when the fast EMA crosses above the slow EMA above the
Plots a standard 14-period RSI in a separate pane with 30, 50 and 70 reference lines and detects divergence between RSI and price. It compares confirmed pivot lows and highs of the RSI against price over a minimum and maximum bar range. Regular bullish and bea
This compact indicator labels Elliott Wave counts on the price chart. It runs a zig-zag at several depths, chooses the depth that gives the best fit, and applies Elliott Wave rules, with a strict mode that forces an A-B-C count when the rules break. A correcti
An indicator on the price chart that draws a Supertrend-style band around a Kalman-type smoothed price. The Hurst exponent, estimated by variance scaling over a lookback, adjusts both the smoother gain and the ATR multiplier, so the band widens in choppy condi
A separate-pane indicator that ranks up to ten user-chosen symbols, preloaded with Chinese-listed ETFs for gold, Nasdaq and other indices, by daily momentum and tracks a rotation into the top few, with the count adjustable. An optional market filter compares a
This strategy combines Exponential Moving Averages and a Stochastic Oscillator to generate trading signals directly on the main price chart. Long positions enter when %K crosses above %D below an oversold threshold of 40, exiting on a crossunder above an overb
This indicator plots a trend strength oscillator in a separate pane using the Kalman filter applied to a chosen source. It combines ZigZag trend detection with configurable depth and deviation settings to identify trend changes. The Follow Line feature generat
An indicator for four-hour charts that looks for a sharp drop followed by a slow, controlled recovery, treated as a rounded bottom, and the inverse for a rounded top. Window lengths, minimum percentage moves, a directional-bar ratio and a daily EMA direction f
Slow & Steady is a swing trading strategy that identifies trend direction using aligned EMAs of 50, 100, and 200 periods. It generates buy and sell signals when the MACD line crosses its signal line within a confirmed trend, filtered by ADX strength. Entries c
The Fractal Breakout Strategy identifies key market turning points using a five-bar Williams Fractal pattern. It tracks confirmed high and low fractal levels without repainting to serve as potential breakout entry triggers. When a breakout occurs, trades are e
A price-chart overlay that draws a static set of options gamma levels for QQQ (the Nasdaq-100 ETF) expiring in seven days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-04, produced offline fro
A small overlay indicator that tracks buy-side and sell-side liquidity as the highest high and lowest low over a lookback window. When a bar makes a new extreme, it updates a step-line level and places a BSL label above a new high or an SSL label below a new l
This indicator generates intraday trading signals by combining dual-sigma standard deviation bands, Heikin Ashi candle vectors, and a four-bar confluence score. It triggers long and short signals during defined trading sessions using either mean-reversion boun
This indicator calculates custom moving average convergence divergence values using selectable calculation methods, fast and slow lengths, source prices, and signal smoothing types. It plots an oscillator on the price chart with customizable vertical placement
Marks trend changes on the price chart using price against 20 and 50 period simple moving averages. A bullish trend needs the close above both and a bearish trend below both. A strict alternating rule allows a buy only after a sell and the reverse, so signals
An indicator that plots a Hull moving average on the price chart, with a choice of Hma, Thma or Ehma variants and an adjustable length and multiplier. The current value and the value two bars back form a band that is filled and coloured by trend direction, and
An overlay indicator with no settings that draws coloured Hull moving average lines taken from 2-hour and 30-minute data, smoothed with EMAs. Lines turn grey, green or red depending on slope and on their position against a long-term floor derived from a 600-ba
Despite its name, this strategy does not build a volume profile. It flags bars where volume exceeds a moving average of volume times a threshold, then goes long when the close is also above a 20-period simple moving average and the close of the oldest bar in t
A separate-pane True Strength Index indicator with fast and slow parameter sets, selectable by a speed input. It offers colour themes, optional overbought and oversold lines, crossing markers and a middle line, and colour inputs for the line and signal. Separa
A Pine Script v6 library of technical analysis functions that are not built into the language. It exports many indicators, including Awesome Oscillator, Aroon, Donchian Channel, Ichimoku Cloud, SuperTrend, Klinger Volume Oscillator, Schaff Trend Cycle, Vortex,
A strategy that mixes a Stochastic Momentum Index, an EMA pair and MACD histogram conditions. In the visible code it opens long trades when the MACD histogram crosses above zero with price over a 20-period EMA, and closes them on the opposite cross, with stop
This indicator plots the closing price of the asset. It is a basic example written in Pine Script v5 that displays the close value. The plot is configured to appear in a separate pane. No input settings are available and no trading signals or calculations are
A separate-pane histogram that shows a fast trend above zero and a slow trend below zero, each as colored bars. The fast trend uses 21, 55 and 89 period simple averages and the slow trend uses 3, 8 and 20 period averages. Green means a bullish stack, yellow a
A strategy script that combines a custom ATR-based Supertrend calculation with MACD line and signal crossovers. It draws green triangles for MACD bullish crosses, red triangles for bearish crosses, and separate triangles for the Supertrend direction on the pri
This indicator draws a stochastic momentum oscillator in a separate pane. It measures how far the close sits from the midpoint of the highest high and lowest low over the Percent K length, then double-smooths that relative distance and the full range with nest
A beginner example that writes a short greeting on the price chart one letter at a time, using plotchar on the last bar only. Settings choose the horizontal offset, the vertical placement (top, bottom, above bar, below bar or absolute) and a colour palette, ei
Total Divergence+ is a price-chart indicator that looks for divergences between price and several oscillators. It can show RSI, Stochastic RSI, Stochastic, ADX, MACD, and Price Volume Trend divergences, each with its own display switch. Lookback lengths set ho
A Pine v4 indicator in a separate pane that combines several market breadth and sentiment readings into one smoothed oscillator. It draws on the S&P 500, the VIX, percent-of-stocks-above-average breadth series, a put-call ratio, an RSI and momentum of the inde
This indicator computes and plots the Directional Movement Index and Average Directional Index using Pine Script's built-in DMI function. It renders the positive directional indicator (+DI), negative directional indicator (-DI), and the ADX line in a separate
A smoothed moving average drawn on the price chart. Before averaging, each price is clamped inside a narrow standard deviation channel built around a short weighted average, which limits the effect of sharp spikes. The clamped price then goes through two weigh
This Pine v4 strategy trades a crossover of a 10-period and a 30-period simple moving average. It enters long on an upward cross when RSI is above 50 and short on a downward cross when RSI is below 50, with a fixed order quantity. Each entry gets a stop loss a
This indicator is a Chandelier Exit style trailing stop, similar to a Supertrend, calculated from Heikin Ashi candles rather than the current chart candles. A long stop trails below the highest recent close and a short stop trails above the lowest, each offset
The EOSBTC EMA Cross Strategy evaluates price action relative to an Exponential Moving Average (EMA) on the main price chart. It enters a long position when a candle opens above the EMA and closes green, and enters a short position when a candle opens below th
This indicator calculates a moving average where historical prices are weighted according to a sine function over a user-defined length. It plots directly on the price chart, coloring the line based on whether the slope is rising or falling. Optional settings
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.