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.
A signal overlay that merges Andean oscillator with clustered Money Flow Index entries and UT Bot ATR trailing stop entries. Signals can be filtered by a FRAMA trend channel, a choppiness index, an ATR percentage range and, new in this version, an optional Hur
A diagnostic proof-of-concept that checks which price scale chart drawings attach to. It draws lines on the price chart at one test price using a forced-overlay setting and again without it, and compares them with the marker TradingView adds for a price input.
An overlay indicator that draws a heat map to the right of the last bar showing the estimated probability that price touches each of several levels above and below within growing time horizons. Levels are spaced in ATR or percent steps. The estimate uses a clo
A Pine v6 indicator that looks for short setups using a 5-period EMA on the price chart. It finds runs of candles that stay entirely above the EMA, waits for a close below the low of that run, then waits for a pullback to that level before marking a short entr
Better RSI is a momentum indicator plotted in a separate pane that calculates the relative strength index with enhanced visual horizontal levels and a state-tracking cycler. It highlights overbought and oversold extremes at 70 and 30 and tracks momentum cycles
This overlay indicator plots standard deviation levels for gold. The user pastes six CME range values for the 1, 2 and 3 SD put and call sides. The script adds or subtracts them from an open price, taken automatically from a chosen timeframe or entered manuall
The Bitmoon System is an overlay indicator that projects geometric price reflections and symmetric channel levels onto the price chart. It calculates mirrored open, high, low, and close values based on user-defined central and secondary price mirror levels, al
A strategy that records the pre-London high and low, 06:00 to 08:00 UTC by default, and trades breakouts of that range after the London open. Targets are a multiple of the range width, trades per day are capped, and positions close at a set exit hour. Range bo
A strategy that scores long and short setups from a three-EMA trend alignment, an RSI position above or below 50 and a volume spike above its 20-bar average. A trade opens when the score reaches a confidence threshold input. Each entry has an ATR-based stop an
This template provides a foundational structure for building momentum oscillators in a separate pane below the price chart. It features configurable lookback periods, overbought and oversold horizontal reference levels, and an optional EMA signal line. Dynamic
A second version of an index-oriented strategy that uses TRAMA adaptive moving averages with short and long lengths, a hold percentage and a hedge percentage. It can add an RSI slope filter on a chosen timeframe and an optional Turtle-style mode that adds to p
Calculates and plots customizable sets of moving averages across intraday, daily, weekly, and monthly timeframes directly on the main price chart. Supports SMA, EMA, RMA, VWMA, and WMA calculations with per-line width and color options, moving average clouds,
Delta Pulse is a price chart overlay indicator that visualizes orderflow delta in three layers. It approximates delta per bar from lower-timeframe tick data by classifying volume as ask or bid. The gradient map colors bars by z-score of delta using configurabl
Basic Structure is an introductory educational script from a Pine Script v6 course. It demonstrates the fundamental syntax of a TradingView indicator by assigning the current bar closing price to a variable and plotting it directly on the main price chart. It
A price-chart overlay that reuses the same six-signal vote engine (moving average cross, RSI, MACD, Bollinger, OBV, Ichimoku) to mark entry signals and warn of drawdown conditions, depending on a Mode setting. A trend driver input chooses which signal leads. M
A plain RSI oscillator drawn in a separate pane. It plots the relative strength index of a chosen source over an adjustable length, defaulting to 14, with horizontal lines at 70, 50 and 30 and background shading when the reading is above 70 or below 30. A buy
A price-chart indicator that measures how a signal performs against fixed target distances. The signal can come from a predefined moving average cross, from two external series crossing, or from an external plotted signal. For each signal it tracks three take
A Pine v6 backtest strategy for the New York opening range on index futures. It marks the 09:30 to 09:45 range, then looks for a break by wick or close, a return inside the range, and a close across session VWAP in the opposite direction before entering. Stop
A high-volume plus displacement detection suite that draws 14 marker lanes, seven families on each side. Lanes combine a highest-volume test over a configurable window with a large body displacement, pocket pullback conditions, relative volume tiers and a Naga
Draws shaded boxes on the price chart for intraday futures sessions in New York time: pre-market from 4:00, the New York open from 9:30, lunch from 11:00, afternoon from 13:00 and the close from 15:00 to 16:00. Each box spans the high and low of its window, an
MM Pro v2 is a supply and demand zone indicator for TradingView. It calculates swing highs and lows based on user-selected sensitivity levels and minimum swing percentage. The indicator draws persistent zone boxes on the price chart using ATR for width. It als
An indicator for the price chart, built on an imported price action library, that marks liquidity events and inducements. It detects grabs, larger grabs, sweeps and turtle soups, each with its own pivot lengths, lookback, timeframe and colour, plus equal highs
Daddy's Turtle Strategy is an indicator that marks long and short entries when a candle closes beyond the highest high or lowest low of a configurable lookback, plus an ATR buffer. Candles must have a minimum body share and must not exceed a maximum ATR size.
This strategy plots the Donchian Channel bands on the price chart to identify breakouts. It enters a long position by placing a buy stop order when price breaks above the upper band during a target execution hour. The order remains open until filled or cancele
A chart-overlay indicator that extends a volume profile and Heikin-Ashi MACD setup with a swing-anchored VWAP. It plots the point of control and value area edges from a recent window, tracks a VWAP that re-anchors at swing highs and lows with an adaptive smoot
This strategy looks for pullbacks to the 21 EMA while the 21, 50 and 200 EMAs are stacked in trend order, with shorts enabled and longs switched off by default. Entries are screened by ADX, RSI range, volume against its average, candle body size, an ATR floor,
This is a synchronised build of a basket strategy that places a stop entry just beyond the close of a confirmed signal candle, for 10 lots, inside a trading session. Take profit and stop orders are armed together with the entry so same-bar touches execute corr
Gold Dominator Pro is an overlay strategy aimed at gold. It reads a higher-timeframe trend from three exponential moving averages and includes RSI, MACD, Stochastic RSI, ADX, ATR, and volume settings. Optional session, equity-curve, and maximum-drawdown guards
Alien Wash is a price-chart indicator that draws the latest green horizontal line at the previous candle high after an up close beyond a USD buffer, and the latest red line at the previous candle low after a down close beyond that buffer. A buy signal fires wh
A helper indicator that plots raw indicator values in a separate pane so they can be compared bar by bar with an external Python bot. It outputs a 200 and a 50 period EMA, ATR, RSI, the plus and minus directional indicators, raw ADX and an EMA-smoothed ADX, a
A Pine v5 strategy version of a candle and moving average indicator. It draws four smoothed moving averages (21, 50, 100 and 200), a trend fill against the 200 average, three line strike markers and engulfing-style candle markers, and can shade a time-zone tra
A Pine v6 overlay that builds a volume-style profile over a lookback window and draws it on the price chart as shelves, meaning price bins with concentrated activity. It separates buy and sell shares, marks a point of control line, and uses a reference EMA wit
Satoshi Clock is an overlay indicator for Bitcoin that uses two coordinates. The clock is the number of days since the latest halving, and the spring is how far price sits from a power law fitted only on past data. It draws a power-law corridor, shades cycle w
Pulls the VIX and builds a MACD histogram from it, then uses that with a SuperTrend, a band width test, price and RSI slope checks and an optional working-days filter to print B1, B2, S1 and S2 labels on the price chart. The SuperTrend fill is coloured by the
PineFlow is an ICT-based multi-timeframe strategy that identifies fair value gaps on 4H context and 15m setup timeframes to signal liquidity-driven entries on the 1m execution chart. It plots FVG zones as support and resistance levels directly on the price cha
A separate-pane indicator that builds a 0 to 100 score from price momentum, nudged by the prior move of a chosen US index and pulled toward 50 in high-volatility regimes. Background colours mark calm, elevated or panic volatility, found by comparing recent vol
MTF Confluence Trend plots trend signals when conditions align across timeframes. It detects Supertrend direction flips on the chart timeframe and confirms them against a higher timeframe Supertrend. Optional filters require an ADX strength threshold and a vol
This indicator builds the Asian session high and low, then records a London break of that range on the price chart. Entries require the range to fall between minimum and maximum point limits and, when enabled, to match a higher-timeframe EMA bias. Stops sit at
This strategy plots on the price chart and trades long when the MACD line crosses above its signal line. It closes the long when the MACD line crosses back below the signal. Position size is the number of shares that a fixed ten thousand Indian rupees can buy
A variant of the Elephant Bars overlay that considers only one-bar retracements. It flags candles whose body is at least a set multiple of the average body, then marks a following bar as a retracement when its body is small relative to the elephant bar and its
A Pine v6 indicator that draws a horizontal volume-at-price profile to the right of price over a chosen number of recent bars. It marks the point of control and the value area high and low using an adjustable value area percentage, with settings for row count,
This indicator overlays a precomputed Elliott Wave count for SPY on the price chart. It draws primary and alternate impulse and corrective waves as colored lines and price labels, including optional subwaves, projected points, invalidation levels, and Fibonacc
Plots Ethereum options Max Pain levels sourced from Deribit as horizontal dashed lines on the price chart. Each line extends from the current bar to the settlement timestamp of its corresponding expiration date. Line thickness scales relative to total open int
A chart-overlay indicator that draws Bollinger-style envelopes from a daily, weekly or monthly anchor timeframe, so the bands stay fixed relative to a higher timeframe while viewing a lower one. It plots two standard deviation zones, a slower one at 2.0 and a
A two-part macro valuation display drawn over the price chart, calculated on weekly data. The PnL Matrix compares price with volume-weighted cost bases over one to four years and ranks the average gap as a percentile over a lookback in weeks. The Valuator fits
The Fusion Cipher B Oscillator plots a multi-part momentum stack in a separate pane below the price chart. It calculates wave momentum with blue and white waves, money flow polarity, VWAP oscillator, RSI, Stochastic RSI, dots, and divergences. The script detec
A Pine v6 library template showing how to structure exported code. It defines a Pivot type holding bar index, price and direction, a higher timeframe request helper that reads the previous closed bar, a method that returns a confirmed swing pivot only after th
An indicator that draws bullish and bearish fair value gap boxes and shows a dashboard saying whether conditions are aligned for a long, a short, or to wait. A signal requires a minimum number of confirmations from gap size, impulse, volume, 200 EMA trend, pre
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.