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.
Volumetric Supply and Demand identifies and renders supply and demand zones directly on the price chart using pivot swings and ATR-based impulse triggers. Within active zones, it constructs localized volume profiles, highlights Point of Control levels, and dis
This indicator overlays four customizable moving averages alongside a Keltner Channel directly on the price chart. Users can individually configure the type (SMA, EMA, or WMA) and period length for each moving average, as well as the basis MA type for the Kelt
This hybrid trading strategy combines wick rejection support and resistance levels with Smart Money Concepts. It calculates entry confidence scores based on multi-timeframe structure, Fair Value Gap taps, Order Block alignment, and recent Change of Character o
This overlay indicator is a research diagnostic that builds a volume profile between two user-set 15-minute swing times. It bins each bar's volume by high-low tick overlap on fine, base, and coarse row sizes, then applies local density gates and a paired-node
This indicator calculates central tendencies and intermediate channel bounds over a configurable lookback period and plots them directly on the price chart. Users can select the central basis measure from mid-range, simple moving average mean, or 50th percenti
EMA Breakout is an indicator combining Exponential Moving Averages with higher-timeframe Keltner Channels to identify breakout market conditions. It calculates multi-timeframe EMAs and dynamic Keltner Channel boundaries using ATR, True Range, or bar width. The
This strategy trades long only on the price chart. It enters when the current bar opens at or below the prior close, opens below the prior open, and closes above the prior open, after a chosen backtest start. It exits at a percent profit and stop, or at ATR mu
This strategy enters long when the MACD line crosses above its signal line and short when it crosses below. Optional filters require the histogram to exceed a threshold, price to sit on the matching side of a simple moving average, and a simplified three-bar d
This strategy trades GBP/USD on the price chart. It enters long when a fast EMA crosses above a slow EMA while price stays above a trend EMA, and enters short on the opposite cross below that EMA. Signals are allowed only in the London session, 07:00 to 17:00
The Volatility Band Indicator calculates volatility bands around a customizable moving average basis line directly on the price chart. Users can select between SMA, EMA, RMA, or WMA basis types, alongside adjustable length and standard deviation multiplier set
The TrendStop+boll indicator combines a trend trailing level system with configurable Bollinger Bands directly on the price chart. It evaluates Directional Movement (+DI/-DI) and MACD, locking in an EMA or VWAP benchmark level whenever momentum and directional
This indicator plots five exponential moving averages with Fibonacci lengths on the price chart. Lengths 3 and 13 form a fast group, 34 and 55 a slow group, and 144 a trend filter. It counts how many of those averages the current and previous candle bodies cro
CSW Auto Fib draws Fibonacci retracement and extension levels on the price chart from the high and low of a selected time period. It tracks that period's extremes and plots horizontal lines at user-defined ratios, with optional labels and colors. Period choice
This indicator plots SuperTrend lines and SMA values on the price chart. It generates buy and sell signals from crossovers between close price and SuperTrend. Additional features include ATR-based stop loss and take profit levels, candlestick coloring, and swi
This strategy evaluates market conditions on the price chart by combining composite RSI STARC bands, an EMA and SMA crossover, VWAP standard deviation bands, and security-derived volume metrics. It enters long positions when cumulative delta, momentum breakout
This indicator maps market structure and session activity directly on the price chart. It detects and labels internal and swing structures with customizable confluence filters and candle coloring. Additionally, it highlights major trading killzones including N
This library provides data structures and validation functions for bundled candle analysis in ICT trading scripts. It defines SumCandleStates type with pending, confirmed and completed values, plus a function to create instances of the state set. SumCandleData
Strategy designed for gold trading using a combination of Stochastic, RSI, fast and slow EMAs, ATR, and optional higher-timeframe M15 triggers with Fibonacci levels. It generates trend-confirmation and scalp trade signals for long and short entries. Risk manag
This strategy plots the Williams Vix Fix in a separate pane with Bollinger Bands and VWMA lines. It signals long entries when the Vix Fix color shifts from lime to gray, meets VWMA long conditions and close is lower. Short signals trigger on the opposite color
Calculates smoothed momentum across the primary Magnificent 7 mega-cap tech stocks (AAPL, MSFT, GOOGL, AMZN, NVDA, TSLA, META) and optional additional tickers. It aggregates their performance either through equal weighting or market comparison modes against be
Dskyz Adaptive Futures Elite (DAFE) is an automated strategy designed for intraday trading. It generates long and short entries by pairing fast and slow moving average crossovers with candlestick pattern detection, filtered by RSI, volume, volatility, and a hi
This strategy overlays execution signals directly on the main price chart. It calculates entry points using a Kalman gain filter and dynamic approach percentages. Positions execute in both long and short directions, scaling out across three predefined take-pro
This indicator plots an RSI oscillator in a separate pane and marks long and short setups when RSI is oversold or overbought and a swing low or swing high fractal forms with a reversing candle. It sizes a stop from the recent extreme plus an ATR multiple, then
This overlay indicator draws a ZigZag from recent pivot highs and lows and feeds those extremes into a Supertrend-style calculation that uses ATR. Pivot length, stored history, and ATR period and multiplier change how swings and the trend band form. Optional w
This TradingView Pine Script strategy overlays two exponential moving averages (lengths 10 and 28) on the price chart along with markers for pivot highs and lows. It optionally displays support and resistance levels based on user settings. The script includes
JAT+BSM Pro v13 Extended is a multi-timeframe trading strategy overlay that combines kinematic regression models, Bayesian inference, and consolidation zone analysis. It processes multi-layer volatility bands, volume profile buckets, and pattern structure targ
Calculates the Relative Strength Index (RSI) based on close prices over a customizable period length. Plots the resulting oscillator in a separate chart pane alongside fixed horizontal lines at the standard 70 overbought and 30 oversold thresholds. When the RS
SMC Orderflow Overlay is a separate-pane order flow indicator designed to complement Smart Money Concepts strategies. It plots relative volume, delta proxy values, ATS state and spike indicators, and flow direction confirmation markers. Traders can enable an o
This strategy calculates three exponential moving averages with adjustable lengths for the fast, mid, and slow periods. It enters a long position when the moving averages form a bullish stack and a short position during a bearish stack, utilizing a transition
This script serves as a test fixture within the OptiPine parser suite to test error handling when assigning a series integer to an input default value. It attempts to declare an integer input using the current bar index as its default value and plots the resul
A strategy that first classifies the market using ADX and a Bollinger-inside-Keltner squeeze check, then switches between two sub-strategies. In ranging conditions it fades asymmetric Bollinger Band extremes with a 200 EMA trend filter. In trending conditions
This debug version of the DEPV2 indicator tests multi-method signal logic. It evaluates four categories—TREND, MOMENTUM, VOLATILITY and VOLUME—across 20 cryptocurrency symbols including BTCUSDT, ETHUSDT, SOLUSDT and others. Users select signal modes for simult
An overlay indicator that marks support and resistance from pivot lows and highs filtered by a volume delta, with zones sized by ATR. Each signal is numbered and given a status of allowed or ignored, depending on whether it repeats the previous allowed type, a
The Mirror Oscillator Morindok calculates a bounded momentum oscillator in a separate chart pane. It computes dynamic price reflection levels using a moving average and high-low channels over a specified lookback window. The script normalizes the current closi
An overlay indicator that detects pivot highs and lows and draws the latest resistance and support as extended lines. A buy signal fires when the close crosses above resistance, and a sell when it crosses below support. Each signal draws entry, stop loss and t
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
A scalping strategy on the price chart built around market structure: change of character, break of structure and inducement sweeps, filtered by RSI extremes, volume, trend EMA, ATR range, session hours and signal confluence. A mode selector switches between C
A reference copy of a Pine v4 indicator that reads trend from 9 and 18 period EMAs on three higher timeframes (1 hour, 4 hour and daily by default), with an option to include the chart timeframe. Colours on the price chart show when all or only some timeframes
This overlay indicator provides a quantitative trading dashboard for stock analysis on Bursa Malaysia (KLSE). It calculates Weinstein market stages using a 30-week moving average and combines manual macro inputs for Howard Marks market cycle scores, Stovall ec
Stochastic RSI plots smoothed K and D lines of a stochastic calculation in a separate pane, using smoothed moving average smoothing instead of a plain average. The K line shifts color from green to red by level. Overbought and oversold zones are filled, K/D cr
This strategy draws on the price chart and uses a 21-period EMA of the current symbol close as a fast line and a 55-period SMA of the close price from a higher timeframe (default 60 minutes) as a slow line. Long conditions trigger on EMA crossover above the sl
A strategy that fits a linear regression channel over a user-chosen start and end time and draws it on the price chart. A static channel is kept alongside a live one that starts after price closes outside the channel and locks when its correlation falls below
This indicator marks swing highs and lows from pivot bars on the price chart and projects dates ahead using Gann and Hurst cycle timing ideas. The first version uses one pivot setting and tables show the pivot dates and nearby future dates, with colours for bu
This indicator overlays several optional trend tools on the price chart. It draws a ZigZag from a deviation setting and can plot a multi-timeframe Tillson T3, a Jurik moving average, an ALMA, and a Range Filter. Users switch each tool on or off and change leng
The Volume Spike Reversal strategy identifies potential price reversals driven by high volume activity. It triggers long entries when a volume spike occurs while price is below a 20-period simple moving average, combined with oversold RSI readings and bullish
Calculates volatility bands using a simple moving average and standard deviation, coupled with Average True Range for risk control. It enters long positions when price crosses back above the lower band and short positions when price crosses back below the uppe
Intraday Reversal Predictor (Order-Safe) is an overlay strategy designed for regular trading hours reversal setups. It calculates daily-anchored VWAP standard deviation bands, RSI, and fast/slow EMAs. A composite scoring model aggregates band touches, momentum
Combines multiple analytical tools on the main price chart, prominently featuring an interactive Volume Profile and Market Profile alongside an overlaid MACD indicator. It calculates volume or price distribution over visible, anchored, or full ranges, plotting
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.