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 plots a six-axis RSI radar on the price chart. It requests 14-period RSI for six user-chosen timeframes and places each reading on a polygon centered on the visible price range. Overbought and oversold marks sit at 70 and 30. Settings ch
The Kiln Power Efficiency strategy computes an EMA trend line and a squared displacement efficiency metric from price moves relative to ATR. It plots both on the price chart. The strategy enters long trades on EMA crossover above the trend when efficiency exce
This overlay indicator plots historical ARK Invest buy and sell labels for SNTI on the price chart. Green labels sit below the bar for buys and red labels sit above the bar for sells, each tied to a fixed calendar date and marked with an X1 count. The only set
This strategy executes trend-following breakout trades based on Donchian channels, moving average alignment, and long-term price extremes. It evaluates alignment across seven moving average periods alongside multi-period and yearly high or low filters. Long po
This indicator calculates a solar cycle from each bar's open time using the Sun's ecliptic longitude. The result runs from about -1 at the winter solstice through 0 at the equinoxes to about +1 at the summer solstice, and it is plotted as a yellow line in a se
This strategy plots exponential moving averages of length 1, 15, and 21 on the price chart and also calculates a length-5 simple moving average. It enters long when the length-1 average crosses above the length-15 average and the close is above the previous cl
Equivolume Bars displays custom candlestick boxes on the main price chart, where each bar's width is proportional to its volume relative to a rolling lookback sum. The script calculates volume ratios to stretch or shrink historical and live price bodies and wi
This strategy enters long when the fast EMA crosses above the slow EMA and RSI exceeds the entry threshold. It closes when the fast EMA crosses under the slow EMA, RSI falls below the exit threshold, or the open position reaches the maximum hold bars. A stop s
This indicator plots hardcoded ARK Invest buy and sell dates for SOFI on the price chart. Green labels sit below bars for buys and red labels sit above bars for sells. The ETF input switches between combined activity and ARKF-only records. Combined mode marks
This strategy calculates higher-timeframe pivot points, defaulting to Fibonacci calculations across configurable resolutions or symbol-based multipliers. It evaluates price interactions against these pivot levels to execute trades according to the selected tra
This indicator calculates the Spearman rank correlation coefficient between the chart asset and a secondary ticker, plotting the resulting values between minus one and plus one in a separate pane. It ranks price data over a specified lookback period and applie
This overlay indicator plots ATR-based horizontal levels around the previous close of a selected higher timeframe. A trading-type input maps day, multiday, swing, position, and long-term modes to daily through yearly periods. It draws trigger bands from a perc
This strategy detects daily opening gaps and trades them on the price chart. It marks an up or down gap from the current open and close versus the previous bar, then stores the prior extreme as the fill level. By default it buys down gaps and shorts up gaps, e
This strategy plots a smoothed historical price anchor on the price chart by averaging historical closing prices. It enters a long position when price crosses under an entry threshold set below the smoothed anchor. The trade closes when price crosses back abov
This indicator plots ARK Invest trade labels for SPCE stock on the price chart. It shows buy and sell actions with share volumes and marks multiple transactions per day when several ARK ETFs trade the stock. Users select an ETF type from the input settings to
BuyTheDip is a strategy script that identifies upward moving average alignments across multiple timeframes using SMA, EMA, HMA, RMA, VWMA or WMA types. It plots Bollinger Bands on the price chart and enters long positions when alignment scores reach 1 and pric
Square Root Transformation calculates the square root of a selected price or data series in a separate pane. It applies a mathematical square root function to compress scale differences and reduce variance across positive values. The indicator safely handles m
This indicator plots multiple deviation bands around the volume-weighted moving average and standard deviation. Upper bands R-1 to R-6 and lower bands S-1 to S-6 appear at Fibonacci ratios of the deviation from the mid-line on the price chart. The mid-line is
This strategy demonstrates position sizing with leverage and margin in Pine Script using a Stochastic Oscillator indicator. It plots the %K and %D lines in a separate pane with upper and lower threshold levels. Long entries trigger when %K crosses above %D bel
This strategy trades long only on the price chart. It enters when a fast exponential moving average crosses above a slower one and sizes the next order from the last closed trade: the recovery quantity after a negative result and the full quantity otherwise. I
This indicator plots historical buy and sell transactions executed by ARK Invest exchange-traded funds for the SPFR stock directly on the price chart. It draws green labels below price bars for buy actions and red labels above bars for sell actions, indicating
This strategy plots an Ichimoku cloud on the price chart and opens long or short trades from a selectable crossover. Signal choices cover Tenkan and Kijun, price against those lines or the cloud, and cloud color, with optional confirmation that price is beyond
This indicator plots Squeeze Momentum in a separate pane. It compares Bollinger Bands with a Keltner Channel to mark a squeeze when the bands sit inside the channel. Momentum is a linear regression of price relative to a Donchian midline and an SMA, shown as a
Bankai + DTEK is an overlay indicator that combines Qualitative Quantitative Estimation (QQE) logic, trend coloring based on SuperTrend and CCI ATR, up to four customizable EMA clouds, and simplified TD Sequential signals. It plots multiple moving average clou
This strategy plots in a separate pane and tests a selected oscillator with one of six entry logics: moving average, moving-average crossover, zero cross, extremes, mean reversion, or take profit. Users scale and time-adjust one of three oscillators and can li
The PineForge — Meridian DMI Regime strategy evaluates trend direction and momentum using the Directional Movement Index, Average Directional Index, and an Exponential Moving Average. It enters long trades when +DI crosses above -DI, provided ADX exceeds the d
SPLK Tracker is a price chart overlay indicator that plots historical buy and sell transactions made by ARK Invest ETFs for Splunk Inc. (SPLK). The script places labels above or below price bars using historical timestamps corresponding to reported fund trades
This strategy evaluates multiple MACD entry techniques on the price chart. It calculates standard or SMA-based MACD line, signal line, and histogram values, offering selectable trigger models including continuation crosses, reversal crosses, histogram zero cro
The Standard Deviation (STDDEV) indicator calculates the standard deviation of the input source series over a user-defined period. It employs a circular buffer for O(1) streaming computation, ensuring efficient memory usage. The indicator plots the standard de
Bankai DXY is a multi-component trend and signal overlay script that combines EMA clouds, moving average slope filters, Aroon filters, QQE signals, Supertrend, CCI-ATR trend rules, and simplified TD Sequential counts. It overlays dynamic EMA clouds on the main
The PMax Explorer strategy calculates the Profit Maximizer indicator by applying an ATR trailing stop band to various moving average types including EMA, VAR, ZLEMA, and TSF. It plots the selected moving average and PMax line directly on the price chart to tri
PineForge — Mosaic Map Regime is a trend-following strategy that dynamically scales trading signals using volatility regimes. It calculates an Exponential Moving Average and ATR, using a map to assign risk weights based on whether ATR percentage exceeds an exp
SPNS-tracker is an overlay indicator that marks ARK Invest purchases of SPNS on the price chart. It places green below-bar labels on two January 2020 dates, each showing a buy with a count of one. A single ETF input exists but only offers ALL, so it does not s
The CDC Action Zone V.3 Test strategy calculates fast and slow exponential moving averages to generate trend-following buy and sell signals. It plots EMA lines, custom bar colors, buy and sell labels, and a visual ribbon directly on the main price chart. The s
Calculates a linear regression trend line and standard deviation bands based on the residuals over a user-defined lookback window. The script plots the central linear regression line along with upper and lower channel boundaries directly on the price chart, fi
Bankai ES Trend combines multiple trend and momentum tools into an overlay indicator on the price chart. It calculates moving average slope filters, Aroon trend conditions, QQE momentum signals, Supertrend levels, and multi-period EMA clouds. It plots trend ba
This strategy draws a moving-average channel on the price chart and places stop entries when the source crosses the upper or lower band. Long and short orders can be cancelled if price returns through the average or reaches the stored breakout price. Optional
Orbit MTF Trend is a multi-timeframe strategy that plots higher-timeframe and local exponential moving averages on the price chart. It generates long entries on local EMA crossover above the higher EMA and closes positions on the reverse crossover. Risk manage
SPR-Tracker visualizes historical buys and sells made by ARK Invest funds for the specified ticker directly on the main price chart. It plots text labels indicating buy or sell actions along with the number of participating ARK ETFs on specific transaction dat
Crypto Price Scalper is a long-only trading strategy designed for cryptocurrency charts. It combines a custom price-range oscillator, calculated from the highest high and lowest low over a user-defined candle period, with the Vortex Indicator. A long trade ope
This indicator calculates the standard error of a linear regression of the chosen source over a user-defined lookback and plots that value as a yellow line in a separate pane. It fits slope and intercept on a circular buffer, then takes the square root of the
This strategy combines two sets of Bollinger Bands with a Laguerre RSI oscillator plotted on the price chart. It generates buy and sell signals when price touches the upper or lower bands or zones. The strategy allows enabling or disabling entries and includes
Grid Like Strategy calculates a dynamic baseline overlay that steps up or down whenever price moves beyond a defined point threshold. It enters long positions when the baseline moves upward and short positions when it moves downward, automatically placing take
The PineForge Prism Matrix Vote strategy plots two EMAs on the price chart and calculates a vote score from four factors: EMA crossover, price above fast EMA, RSI above 52, and ATR relative to close. It enters long positions when the vote score crosses above a
This indicator plots ARK Invest trade labels on the SRNG stock price chart. It marks historical buy and sell dates with green or red labels and X1 or X2 multipliers that count how many ARK ETFs participated on each day. The script draws static vertical labels
This strategy plots a mapped EMA-and-standard-deviation difference in a separate pane and trades moving-average crossovers filtered by that line. After the 50-period EMA crosses the 200-period SMA, it waits for price to stay on the crossover side and for the m
The Stochastic Fast (STOCHF) indicator calculates the fast stochastic oscillator, consisting of the raw fast %K line and the smoothed fast %D signal line. %K measures the relative position of the current close within the high-low range calculated over the spec
Buy Low Sell High Composite is a pane oscillator that normalizes RSI, a short-versus-long EMA difference, the MACD histogram, and the Money Flow Index onto a shared scale, then sums them into one composite. It plots that composite as a colored area, the MACD s
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.