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 standardizes price inputs using z-score normalization before calculating a relative strength index (RSI). It generates trade signals when standardized price components cross over or under the standardized RSI feature. Signals can be filtered by
Calculates multi-period logarithmic regression trend channels and deviation bands across up to twenty selectable lookback lengths directly on the price chart. It evaluates channel slopes and Pearson's correlation coefficient to detect market trends and generat
This indicator calculates the Bollinger Bands %B oscillator, measuring the position of price relative to the upper and lower Bollinger Bands. A value of 1 represents the upper band, 0 represents the lower band, and 0.5 indicates the middle band. Standard refer
This indicator demonstrates Pine Script bar-state handling on the price chart. It creates one persistent label on the first bar and, when the current bar is the last bar, moves that label to the bar high and sets its text to the high formatted to the symbol mi
The Channel indicator identifies recent pivot highs and pivot lows using fixed left and right bar lengths. It connects the two most recent pivot highs and two most recent pivot lows with extended lines to project upper and lower boundaries directly on the pric
This indicator applies the exponential transformation y equals e to the power x to a user selected input series. The function computes the transformed values using a runtime validated implementation that errors on non numeric data. The result series plots in a
This indicator plots the previous day's high, low and midpoint and the previous week's high, low and midpoint directly on the price chart. It also marks New York, London and Asia sessions, optionally filling each session range and showing that session's maximu
This indicator plots the Commodity Channel Index in a separate pane. It measures how far the selected source, defaulting to the average of high, low, and close, sits from its simple moving average, scaled by mean deviation. Dashed bands mark plus and minus 100
This strategy trades Donchian channel breakouts and can go long or short. It sizes the first unit from a percent of equity and an ATR stop, then adds smaller fractional units only when RSI confirms momentum. It exits with an ATR initial stop, a chandelier trai
Ersinator A002 is a strategy that combines moving average and KDJ momentum calculations to generate trade signals directly on the price chart. It features built-in alert formatting designed for integration with the Zignaly crypto trading platform. Position ris
FlowBias calculates a composite market momentum metric using Chaikin Money Flow, volume delta, Stochastic, and the Ultimate Oscillator. Plotted in a separate pane, it identifies trend pullbacks and market exhaustion reversals through visual signals and labels.
Aivance Opening Range & Vol Factor identifies the first candle of each new trading day, plotting its high, low, open, and close levels with colored boxes and lines directly on the chart. It calculates a Volume Factor percentage by comparing the opening bar vol
RSI Signal is a multi-timeframe momentum indicator that plots buy and sell signals on the price chart based on Relative Strength Index crossovers. It retrieves RSI values across four configurable timeframes and evaluates trend alignment using the highest timef
The 3-Candle Time Pattern - Enhanced (Fixed) indicator plots high, low, and mid lines on the price chart to mark detected 3-candle patterns across multiple timeframes. It identifies range candles and potential manipulation within a user-defined 4-hour window c
This indicator combines MACD and RSI to generate pullback signals on forex pairs. It plots MACD line, signal line and histogram alongside RSI and Wave Trend oscillator. Higher-timeframe MACD provides trend bias while RSI identifies overbought and oversold zone
Combines the Kijun-Sen baseline, SSL channel crossovers, and Waddah Attar Explosion momentum calculations to generate directional trade signals. The indicator plots the Kijun-Sen and SSL lines directly on the price chart. When price aligns relative to the Kiju
This strategy plots the Alligator indicator with customizable Jaw, Teeth, and Lips lines on the price chart. It generates buy and sell signals when the close price moves beyond the Lips line by a minimum gap percentage. The strategy includes optional SMA and V
This strategy combines a standard Moving Average Convergence Divergence (MACD) crossover signal with an exponential moving average (EMA) trend filter. Long positions are entered when the MACD crosses above its signal line while price is above the trend EMA. Sh
This indicator plots five Exponential Moving Averages (EMA 3, 13, 34, 55, and 144) on the price chart to determine market trend structure. It identifies entry confluence signals by detecting when an EMA 3 and 13 crossover coincides with a MACD crossover within
CSW MTF Sentiment Line evaluates market sentiment across five customizable timeframes on the price chart. Traded assets can be measured using RSI, volatility (RSI of price standard deviation), or volume (RSI of volume moving average), with values normalized on
This indicator overlays a dynamic trend ribbon or cloud on the price chart to visualize market direction and strength. It generates long and short signals based on selected strategy modes such as Default, Scalping, Intraday or Swing, using adjustable period, s
Plots the classic Ichimoku Kinko Hyo system directly on the price chart. It calculates the Tenkan-Sen, Kijun-Sen, Senkou Span A, Senkou Span B, and Chikou Span based on midpoints of highest highs and lowest lows over user-defined lookback periods. The Kumo clo
This overlay indicator detects bullish and bearish fair value gaps on the price chart and stores the zones internally without drawing boxes. It plots a fast and slow EMA and can require price to agree with that trend. A signal is intended after a retest of a s
This strategy executes confirmation and scalp trade setups on gold using a combination of Stochastic, RSI, and triple exponential moving averages. Signals evaluate trend direction, Fibonacci pullback zones, and candlestick rejection wicks, with optional higher
This strategy combines the Williams Vix Fix oscillator with volume-weighted moving average (VWMA) bands to identify reversal entries. It plots the VIX Fix histogram and optional Bollinger and percentile bands in a separate pane. Long entries trigger when the o
Options Max Pain Calculator [BackQuant] estimates options max pain theory levels, pin risk zones, and market maker gamma exposure directly on the price chart. It models strike prices, put/call volume ratios, implied volatility, and dealer hedging parameters to
The Garman-Klass Volatility indicator measures market volatility using open, high, low, and close prices on a logarithmic scale. By accounting for intraday high-low range alongside opening and closing prices, it offers a more detailed volatility measure than s
CTC BB Hedge Strategy calculates the Pearson correlation coefficient between the close prices of two symbols to determine market alignment. It applies Bollinger Bands to the primary symbol for mean-reversion signals while optionally filtering with a moving ave
This educational script calculates trailing stop loss reference levels based on the Average True Range. It measures 14-period market volatility and projects potential long stop levels below the current low and short stop levels above the current high. The scri
A complex strategy that mixes a volatility-based trend model, MACD with an optional relaxed mode, candlestick and chart pattern labels, consolidation zones with volume profile, and forecast projections with a Bayesian style hit tracker. Inputs include pattern
This indicator calculates an ATR-based trailing stop and combines it with a 200-period baseline EMA to identify trend reversals on closed candles. To eliminate false breakouts, it filters signals through an ADX chop detector, a relative volume threshold, and a
The SMC Structure Context indicator overlays visual elements on the price chart to represent the current market structure state. It displays a state label indicating bullish, bearish, or neutral conditions, along with markers for change of character (CHoCH) an
This strategy computes two simple moving averages on a selectable price source and plots them on the price chart. The source defaults to close but can be overridden at runtime via the input panel, for example to high. It signals long entries on fast SMA crossi
P_err_request_security is a minimal Pine Script v6 test fixture designed to evaluate multi-timeframe security requests. It retrieves the daily closing price of the current ticker symbol using request.security and plots the resulting value in a separate indicat
A strategy for MNQ futures that trades with the trend only when a regime score allows it. The score blends higher-timeframe EMA bias, ADX, choppiness, efficiency ratio and persistence, with separate enter and hold thresholds. Four switchable triggers can open
This multi-symbol indicator monitors up to twenty cryptocurrency pairs and evaluates signals across four core dimensions: trend, momentum, volatility, and volume. It allows traders to configure signal generation through individual dimensions, simultaneous mult
An overlay version of the WaveTrend oscillator whose lines are hidden by default, showing buy and sell labels on the price chart instead. A bullish or bearish cross of the two lines is signalled, optionally only when price is above or below a 200-period EMA. L
Symmetric Attraction is an indicator that plots mirrored candles on the price chart by reflecting OHLC data around a regression basis line. The basis is computed using linear regression on the selected source with an optional logarithmic transformation. It als
A separate-pane momentum tool built on a smoothed rate of change with a signal line and standard deviation bands. It also measures acceleration of that momentum with its own moving average and smoothing length. Display options include classic or Heikin Ashi va
Draws volume order block zones with asymmetric signals on the price chart, then adds a proximity layer that checks how close those signals sit to high-volume, displacement and tier conditions. Version 1.2 is a tick-friendly build. It is an indicator only.
A strategy that switches logic by volatility regime, measured as the percentile rank of ATR as a percent of price over 200 bars. In low volatility it buys RSI below 30 and sells above 70. In the middle regime it follows a 20 and 50 EMA crossover, with longs al
This indicator draws a background color over a customizable trading session in a selected timezone. The session can be limited to specific days of the week. Only during the active session, bars are colored green for bullish paint when the current bar's low exc
The strategy plots fast and slow exponential moving averages with their difference as spread on the price chart. It enters long when the spread line crosses from negative to positive and short when crossing from positive to negative. Positions stay open until
A Pine Script v5 indicator in a separate pane that works with Hurst-style forward cycle projections known as future line of demand (FLD) lines. It offers seven FLD slots, each with an automatic or manual period and a bars-per-period multiplier, and a switch be
Range Scalper marks support and resistance from the latest confirmed pivot low and pivot high. It treats price as range-bound when the distance between those levels, divided by the close, is at or below the range threshold. While that condition holds, it plots
This indicator calculates and plots volume and sentiment profiles directly on the price chart across a user-defined lookback range. It segments trading activity into discrete price levels to identify the Point of Control, Value Area High, and Value Area Low. I
A strategy built on Keltner Channels. The middle line is a simple or exponential moving average and the bands sit a multiple of the average true range, true range or high-low range away. When the source crosses above the upper band it places a long stop order
An alert-focused version of a multi-indicator divergence scanner. It checks pivot highs and lows on the price chart against MACD, MACD histogram, RSI, Stochastic, CCI, momentum, OBV, volume-weighted MACD, Chaikin Money Flow, MFI and the Stochastic Momentum Ind
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.