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 overlay indicator marks recorded ARK Invest activity on the CRNT price chart. In the provided code it places a green buy label below the bar at a fixed historical date, with the text Buy and X1. An ETF input is present but offers only ALL, so it does not
Function Markov Process is a Pine Script indicator function that models market state transitions using a three-by-three Markov chain transition matrix. It evaluates historical data categorized into bullish, bearish, or stagnant regimes (represented by values 1
This indicator plots a trend-following band directly on the price chart by comparing two variations of the Hull Moving Average, with an optional Kahlman filter applied to both. Line A calculates a standard Hull MA on selected price data, while Line B calculate
Boilerplate is a foundational framework designed for automated strategy development. It integrates multi-timeframe Exponential Moving Average (EMA) and Average Directional Index (ADX) filters to avoid trading counter-trends or choppy markets, along with a sess
Calculates John Ehlers' Fisher Transform oscillator and a delayed signal line. The indicator normalizes price data within a lookback period to a bounded scale, applies exponential smoothing, and uses logarithmic transformation to convert price distributions in
This indicator renders custom OHLC bars in a separate chart pane using the plotbar function. It determines the color of each bar dynamically based on price action: bars where the closing price is greater than or equal to the opening price are colored lime, whi
This indicator calculates price relative strength as the ratio of a base price series to the close of a comparison symbol. It plots the raw ratio and an exponentially smoothed ratio in a separate pane. Smoothing length controls the EMA and hides the smoothed p
This indicator detects a bullish white Marubozu on the price chart. It marks a white candle whose body is longer than a 14-bar exponential moving average of body size and whose upper and lower shadows are each no larger than five percent of that body. When the
This strategy pairs the Noro Trendribbon directional filter with price corridors formed by high and low moving averages. In an uptrend, it initiates long trades when price pulls below the upper band corridor, while in a downtrend it enters short positions when
This indicator calculates and plots multi-timeframe support and resistance zones using ATR-based reversal structure swings. It builds zones across configurable higher timeframes and the current chart timeframe, applying scoring based on touch quality, rejectio
This indicator plots trading volume bars in a separate pane alongside historical volume benchmarks for up to three user-defined trading sessions. For each active session, it calculates two benchmarks over a selectable sample size of past sessions: an overall s
This indicator draws the high and low of one selected higher-timeframe candle as horizontal lines on the price chart. It reads the 4-hour or 1-hour candle that starts at a chosen New York hour (1 AM, 5 AM, or 9 AM) and extends both levels for a user-set number
Hercules Indicator 1.7 is a multi-filter trade signal generator designed to overlay entry conditions directly on the price chart. It evaluates engulfing candle patterns alongside multiple configurable filters, including trading session windows (Sydney, Tokyo,
This indicator draws a projected three-dimensional mesh on the price chart. It builds vector, face, mesh, camera and 4x4 matrix types, then applies scale, rotation and view transforms before projecting the scene with a field of view and near and far planes. In
The Triple Exponential Moving Average (TEMA) indicator calculates a smoothed trend line by applying triple exponential smoothing with compensation to the input source, such as close prices. It plots the resulting TEMA values directly on the price chart with a
This strategy monitors two higher timeframes of 60 minutes and 240 minutes. It calculates whether the close on each timeframe exceeds the prior bar close, then checks if both are rising. When both conditions hold and no position exists, it enters a long trade
This strategy tests and demonstrates TradingView risk management using strategy.risk.max_intraday_filled_orders. It tracks the bar count within each day, triggering long entries and position exits across the initial bars of a trading session. Once the maximum
Devis'So Ratio Label draws a small numeric label on the price chart. It accumulates percentage moves between consecutive closes, runs an RSI on that series, and divides the RSI change by the change in the cumulative series. Each label shows the ratio and a sho
Calculates seven simple moving averages based on customizable Fibonacci length periods and plots them directly on the price chart. The user selects one moving average as a central anchor, from which the indicator projects three symmetric upper and lower bands.
A market structure indicator on the price chart. It finds swing pivots, labels them HH, HL, LH and LL, and marks break of structure and change of character events using close or wick confirmation. Order blocks can be created from those events, tracked until mi
A signal hub indicator that bundles many detection groups into plots on the price chart. Groups include White Flag momentum, overlap and super patterns, fauna clusters, relative volume windows, first two bars, a swing bottom and a pullback-and-jump follow-up b
This strategy calculates fast and slow exponential moving averages alongside the Average Directional Index. It plots both moving averages on the price chart and displays an on-screen table tracking trend strength, directional bias, and volatility. A long posit
This indicator draws a Gann box on the price chart between the latest swing high and swing low found within a lookback window, with Fibonacci-style percentage levels, labels and optional grid lines. Gann fans, angles and curves can be turned on, and the box ca
A Pine Script v5 library of helper functions for strategy scripts. It converts a percentage of the average entry price into ticks, price levels or currency amounts, which helps when placing percentage-based stop loss and limit exits. Inputs set a percent stop
This overlay indicator marks ARK Invest activity on the CRS price chart. It places a single green label below the bar at the timestamp 17 January 2020 with the text Buy and X1. An ETF input is present but only offers the option ALL, so it does not switch among
This indicator plots a normalized candle dynamic visualization inside a custom 500x500 Gann square grid within a separate pane. It normalizes each bar's open and close prices relative to its high-low range, storing the resulting coordinate pairs in fixed-size
This price-chart indicator builds a fast-minus-slow Jurik moving average of the selected price and wraps that series in upper and lower bands set by a standard-deviation multiplier and the fast lookback. It reads band direction, whether both bands rise or fall
A strategy based on Bollinger Bands that enters long positions when price crosses above the lower band and short positions when price crosses below the upper band. Take-profit, stop-loss, and scale-in price levels are dynamically calculated from the position a
This indicator plots John Ehlers’s 2004 Fisher Transform in a separate pane. It normalizes the midpoint of high and low over a rolling highest-lowest range, applies recursive smoothing, and clamps the result before taking a scaled inverse hyperbolic tangent wi
Example 3 is a basic demonstration indicator written in Pine Script v4 that illustrates how to plot custom candlesticks using the plotcandle function. It calculates a modified closing price by checking whether the bar is bullish, defined as the close being gre
This indicator plots the absolute price change between the current source value and the value a set number of bars earlier. It draws a single ROC line in a separate pane. The source series and lookback length are the main settings. During warm-up the lookback
The Mass Index is a volatility indicator that measures price range fluctuations. It calculates the ratio of the 9-period exponential moving average of the high-low span to the 9-period exponential moving average of that span, then sums the result over the inpu
A trend-following strategy that combines the Noro TrendRibbon direction filter with high and low moving average corridors. It determines the dominant market direction from the trend ribbon and opens positions when price moves outside the corridor, taking long
Signal Quality Engine [WavesUnchained] is a range-fade indicator that identifies exhaustion at range extremes and signals potential reversals. It applies an ADX and EMA slope regime gate to stand down during strong trends. Using distance, structure, and moment
Smart Krypto Futures Daytrade Suite is an all-in-one technical indicator tailored for intraday cryptocurrency trading. It plots higher-timeframe supply and demand zones, Fair Value Gaps with optional mitigation filtering, session VWAP, dynamic moving averages,
This indicator draws high and low levels from a chosen one-hour or four-hour candle that starts at a selected New York hour. It stores those prices once each New York day, plots them as lines on the price chart, and extends the lines for a user-set number of s
Hercules Rewrite is a signal and visual trade management indicator that overlays entry setups directly on the price chart. It detects candle setups based on minimum tick movement and engulfing patterns, filtering entries through parameters like moving averages
This indicator plots harmonic ratio levels from three user-selected points on the price chart. It reads the high, low and close at points A, B and C, then classifies the range and projects a last ratio chosen from 2.24, 2.618, 3.14 or 3.618. Labels can show AB
This indicator calculates and plots the standard True Range metric for each bar in a separate chart pane. The True Range measures market volatility by taking the maximum value among three price differences: current high minus current low, absolute difference b
The strategy computes the 20-period SMA on the 60-minute timeframe using request.security to obtain the HTF series. It generates long signals on SMA crossovers where the HTF close crosses above the SMA from below and exits long positions on downward crossovers
S Trailing is a Pine Script v6 strategy that applies trailing stops to periodic cycle-based entries. It divides the bar index into cycles of 40 bars and activates at specific phases: long entry with trailing price stop at phase 0, short entry at phase 14, plus
This indicator uses the SuperTrend to generate direction changes that calculate segment returns and update a cumulative equity curve. It starts with a balance of 100 and compounds returns for each signal segment until the next direction change, then plots the
This indicator draws Fibonacci-based time projections as horizontal lines and price projections as vertical lines on the price chart. Users select a start time and candle, then set the number of bars for time steps and initial price gap. The script calculates
A separate-pane indicator adapted from the AK MACD Bollinger Bands idea. It draws MACD-based Bollinger bands whose fill colour follows RSI against its moving average and the 55 and 45 levels. Buy and sell markers come from multi-timeframe alignment, using an a
A bearish mirror of a signal hub indicator that bundles many detection groups into plots on the price chart. Groups include White Flag momentum, overlap and super patterns, fauna clusters, relative volume windows, first two bars, a swing top and a pullback-and
A strategy on the price chart that scores each bar from 0 to 4 using four checks: volume against its average, price against a higher-timeframe EMA, bar movement against an ATR noise level, and a fast EMA above a slow EMA. The score maps to signal grades, and a
This indicator draws a Gann box on the price chart between the latest swing high and swing low found within a lookback window, with Fibonacci-style percentage levels, labels and optional grid lines. Gann fans, angles and curves can be turned on, and the box ca
A Pine Script v5 library of helper functions for strategy scripts. It converts a percentage of the entry price into ticks, a price level or a currency amount, converts between prices and ticks, and reports the profit of the open position as a percentage if it
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.