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 multi-timeframe scalping strategy plots moving averages alongside Smart Money Concepts elements on the price chart. It calculates trend signals using configurable moving average types like ALMA, Hull MA, or TEMA across alternate timeframes. It also plots
The 7M Multi-Factor Momentum Scoreboard evaluates real-time market momentum across multiple criteria and displays the results in an overlay dashboard panel on the price chart. It tracks anchored percentage price moves based on pre-market, regular open, or post
The RSI + BB Oscillator combines Relative Strength Index (RSI) and Bollinger Bands %B calculations across two timeframes into a single separate pane plot. It shifts RSI values around zero and measures %B bandwidth using selectable moving average types includin
This indicator plots smart money concepts on the price chart, focusing on session setups initiated at a specified start hour. It calculates swing highs and lows, monitors liquidity sweeps, confirms market structure shifts, and identifies order blocks and fair
Indicatorv5SMC / ICT / price actionSessions & time
This indicator is a visual-design fixture that does not calculate a volume profile. It draws one manually entered, already validated value-area edge, either VAH or VAL, as a thin price zone four ticks wide on the chart. The fixture stays off until enabled, and
Spread by is a volatility channel overlay indicator that calculates statistical central tendencies and dispersion envelopes around price. It provides multiple central basis options including arithmetic mean, median, trimean, midhinge, midrange, root-mean-squar
Calculates multi-timeframe Moving Average Convergence Divergence (MACD) alongside a Money Flow filter to identify potential market breakouts. It evaluates higher-timeframe MACD calculations using exponential or simple moving averages combined with Money Flow o
This strategy identifies potential reversal conditions using statistical bands derived from price extremes relative to moving averages and standard deviations. It enters long positions when a greed condition confirms over consecutive bars. Exits are handled vi
This strategy plots on the price chart and combines up to seven optional modules that vote for long or short conditions. The modules use a 20-period simple moving average, a five-period RSI, Bollinger Band squeezes, a simplified prior-bar break, stacked expone
This strategy evaluates EMA crossovers filtered by a long-term 200-period EMA trend filter designed for Gold futures and XAUUSD. It enters a long position when a fast EMA crosses above a slow EMA while price is above the 200 EMA. If long-only mode is turned of
Calculates a standard Relative Strength Index (RSI) oscillator to trigger oversold and overbought signal conditions, then formats custom JSON alert payloads designed for webhook integration with external services. The script plots RSI in a separate pane and ge
This indicator calculates 3-period and 13-period exponential moving averages (EMAs) and plots them on the main price chart. It checks whether a single candlestick's real body—the space between its open and close prices—intersects both EMAs on the same bar. Whe
This indicator measures buyer and seller strength over a fixed twenty-bar lookback window and plots the result in a separate pane. It calculates bull force based on the distance from the lowest close and bear force from the highest close, incorporating the bar
This indicator plots trading signals, swing levels, a trend cloud, and optional take-profit and stop-loss targets directly on the price chart. It calculates advanced historical volatility metrics, including Garman-Klass and Yang-Zhang estimators, to evaluate m
The Volatility Clustering Estimator measures autocorrelation in logarithmic price returns across daily, weekly, and monthly timeframes. It calculates logarithmic returns for higher-timeframe close prices and evaluates their correlation with lagged returns usin
Vector Candles is an overlay indicator that recolors price bars according to relative trading volume and volume spread. It compares current volume against a 10-bar moving average and evaluates volume spread relative to recent highs. Bars are categorized and hi
This indicator plots Fair Value Gaps, Order Blocks and Threeple patterns on the price chart based on ICT concepts. It draws boxes and lines for potential supply and demand zones using higher-timeframe data across multiple charts. Users set box size (open/close
This Pine Script v5 strategy generates buy and sell signals for XAUUSD on the price chart. It combines Stochastic Oscillator, RSI, EMA crossovers and Fibonacci retracements with M15 overbought/oversold triggers and rejection wick filters to identify entries. C
This strategy plots the Williams Vix Fix indicator as a histogram in a separate pane to detect potential trend reversals. It calculates the Vix Fix value using a lookback period and standard deviation bands derived from Bollinger Bands on the Vix Fix. Multiple
Market Sessions & Viewer Panel tracks and visualizes major global trading sessions, such as Tokyo, London, New York, and Sydney, on the main price chart. It highlights active market intervals using customizable box shapes, background colors, and labels, while
The Elder's Force Index indicator calculates buying and selling pressure using price changes and volume. It computes a raw force as the difference in price multiplied by volume, then applies exponential moving average smoothing. The primary input is the length
This strategy implements a Quickfinger Luc mean-reversion trading model tailored for automated execution. It calculates base support levels and volume moving averages across timeframes to identify sharp price dips below established base levels. The script incl
This script demonstrates how to calculate and display ATR-based stop loss and take profit levels directly on the price chart. It detects hammer and shooting star candlestick patterns filtered by a 50-period EMA trend. When a setup occurs and no active trade is
Double Mm With Hhll is an indicator that plots two separate ZigZag lines on the price chart using different periods. It calculates swing highs and lows for each period and connects them into trend lines with customizable colors for up and down moves, line styl
An extended strategy version that adds a strategy preset, a risk aggression choice and a pattern type filter to an AlphaTrend style core with MACD. It includes three consolidation layers with volume profile, candlestick and macro pattern drawings, a kinematic
Session Filter is an overlay indicator that plots a fast and a slow exponential moving average on the price chart. It marks a buy when the fast average crosses above the slow average only during a user-defined trading session, and it marks crossovers outside t
SMC Profile Engine is a Pine Script library designed to build custom volume profiles on TradingView. It provides structured data types including Bucket, ProfileConfig, and Profile to manage volume calculations across price levels. The library facilitates track
A long-only strategy that pairs a rolling median line with the Chande Momentum Oscillator. It enters long when price crosses above the median while the oscillator is above an entry level. It exits when price drops below the median, the oscillator falls under a
This indicator serves as a minimal syntax test fixture designed for parser validation in Pine Script version 6. It executes in a separate pane and plots the current close price using a named argument structure. Because it is a basic test script, it does not ca
A long-only strategy adapted from an academic study of intraday reversal. It measures the return over a ranking period given in minutes, skips a bar, and buys when that return falls in the lowest percentile of its own recent history, then holds for a set numbe
This multi-asset crypto indicator monitors up to twenty symbols using four distinct analytical pillars: trend, momentum, volatility, and volume. It generates trade signals based on configurable modes including single-pillar execution, simultaneous confluence,
An overlay indicator that finds pivot highs and lows on closing prices using left and right strength settings, then draws extending resistance and support lines. It labels when a level is created and confirmed, includes a pre-resistance alert based on a percen
This indicator plots a dynamic trend level on the main price chart based on an interactively chosen anchor time and price level. It calculates the vertical offset between the selected price level and a moving average at the anchor time, projecting this dynamic
A simple exponential moving average crossover indicator drawn on the price chart. It plots a fast EMA and a slow EMA, 20 and 50 periods by default, and colors the fast line green when it is above the slow one and red when below. BUY and SELL labels mark the cr
Finds volume order blocks, zones built from heavy volume around moving average crossovers, and draws them on the price chart. This multiples-only edition focuses on combined events: strict ladder patterns across six sensitivity tiers, multi-zone coincidences,
This strategy draws in a separate pane and trades intraday reversion toward a session VWAP. It builds that VWAP and its standard deviation from typical price and volume during New York regular hours, then converts close into a z-score. Shorts require the z-sco
GitLemon Con is an overlay indicator that looks for W and M formations on price and optional confirming series. Users can include on-balance volume, Williams %R, money flow index, RSI, and directional movement, each with a strict mode and a shared maximum widt
VCP Volume Contraction is an indicator designed to identify Volatility Contraction Pattern setups by measuring both volume and price volatility tightness. It calculates a volume ratio by comparing current volume against its moving average, alongside an ATR-bas
Swing Trade ATR is an indicator that marks Swing L and Swing S labels when a 9-period EMA crosses a 21-period EMA, with a fill between them. After each signal it draws stop loss and take profit lines at ATR multiples from the signal close and clears them when
This strategy evaluates short-term trend momentum by summing price differences across a user-defined lookback period using a for loop. It combines this calculated average momentum with 9-period and 21-period Exponential Moving Average crossovers. A long trade
A Supertrend strategy that enters on the trend direction, filtered by a 4-hour Supertrend, relative volume and ADX strength. It exits at a percentage profit target, with an optional trailing offset, and a time-based exit that closes at breakeven after a maximu
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. Tables show the pivot dates and nearby future dates, with colours for bullish and bearish pivots. The left and right
This strategy runs on the price chart and is titled for a percentile SuperTrend combined with OBV and DI, although the provided excerpt does not show those calculations. It restricts trading to bars after a user-chosen start time and can enable long entries, s
A Pine v5 strategy that trades around point of control and value area levels. These are not a true volume profile: the code builds approximate levels from the previous session's high, low and close, taken from a daily, weekly or monthly timeframe and scaled by
This strategy enters long when the close is above the upper Bollinger Band and volume exceeds a moving average multiplied by a threshold, and enters short when the close is below the lower band with the same volume condition. New entries occur only while the p
This script combines a Volume Profile / Market Profile (TPO) tool with an overlay MACD indicator directly on the price chart. It calculates volume or time-at-price distributions across customizable ranges (Visible Range, Anchored Range, or All Range) to identi
Educational example based on the Pine documentation that estimates an empirical cumulative distribution of a source over a rolling window. It keeps a queue of recent values, computes the share of values below each of a chosen number of steps, and shows the res
An empty Pine Script v5 indicator template that sets up an overlay indicator with price formatting, two-decimal precision and timeframe gap handling. The visible code contains only section headers for parameters and indicators, with no inputs, calculations or
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.