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 plots bullish and bearish order-block boxes on the price chart. It marks the prior candle when the current bar engulfs it and volume exceeds a twenty-bar average times a multiplier, then stores the zone in a matrix. Volume threshold and box colo
Marks change of character events on the price chart, using swing pivots found with a leg-detection routine. It tracks a swing structure level with a default length of 50 and a shorter internal level with a default length of 5. Each can be switched on or off an
A combined overlay for the price chart that joins an ATR Trend module with a smart money concepts module. The trend line is built from an ATR band with ten smoothing types, a fast trend, an optional smoothed range channel and buy and sell markers on trend flip
This indicator labels Elliott Wave counts on the price chart. It runs a zig-zag at several depths, chooses the depth that gives the best fit, and applies Elliott Wave rules, with a strict mode that forces an A-B-C count when the rules break. A correction mode
An indicator on the price chart that labels Elliott Wave structures from swing points. Primary and optional sub-wave swings are detected with length and minimum percentage move settings, then labelled as impulse waves 1 to 5 and corrective A-B-C patterns, with
Plots annualised historical volatility using a choice of estimators, including close-to-close, Parkinson, Garman-Klass, Rogers-Satchell, Yang-Zhang, exponentially weighted and absolute-deviation methods. Inputs set the model, length, annualisation factor, a pe
This multi-timeframe strategy identifies trading opportunities by combining higher-timeframe market structure shifts with optimal trade entry Fibonacci levels and lower-timeframe confirmations. It calculates swing pivots on higher timeframes to determine bias,
This indicator calculates the percentile rank of the current daily close price compared to the prior windowDays daily closes for Bitcoin. It plots the resulting 0-100 value in a separate pane. Users adjust the window length with the windowDays input ranging fr
This indicator detects bullish and bearish harami candle patterns and plots them on the price chart. It compares three bars: a prior opposite candle, a smaller middle candle, and a confirming candle in the new direction. Green upward triangles mark bullish set
A strategy variant, described by its file name as optimized for long trades only, that sends orders to MetaTrader through a connector service via alert messages. Inputs cover symbol prefix, suffix and mapping, lot size, a magic number, a pip multiplier and a b
This strategy overlays Bitcoin cycle timing, an all-time-high rise and drop model, and optional chart studies on the price chart. It sizes positions as a percentage of equity and allows up to five stacked entries in the same direction. Users can show an EMA ra
A single indicator that combines two systems and enables each only on its own timeframe. On a fifteen-minute chart it runs a volatility squeeze breakout using an ATR percentile and a regime filter. On a four-hour chart it runs a VWAP mean reversion with standa
A Pine v6 rewrite of a supply and demand zone indicator, drawn on the price chart. It classifies candles as impulse or base using ATR multiples, then marks a zone when one or more base candles sit between two impulse candles. The direction of the two impulses
A price-chart indicator for volume spread analysis that marks No Demand and No Supply bars. A signal needs the current volume to be lower than recent bars, by an all-lower or average-lower rule, and optionally a rejection wick of a minimum ratio. Further filte
This strategy identifies Initial Balance periods on NQ and ES futures charts using user-defined start and end hours in Eastern Time. It classifies days as narrow or wide based on average range lookback and skips narrow or trending days per settings. Entries tr
Fibonacci Pullback Strategy is a trend-following system that identifies retracements within established trends. It calculates dynamic Fibonacci levels (38.2%, 50.0%, and 61.8%) based on recent swing highs and lows over a specified lookback period. Trades are f
A volume price analysis indicator in a separate pane. It tests each bar for patterns such as buying and selling climaxes, up-thrusts, down-thrusts, no-demand and no-supply bars, using volume against its average and bar range against average spread. The bullish
This indicator overlays a weighted ensemble of three models on the price chart. It compares the current bar with historical bars using RSI, volume ratio, price change and range position, then blends that KNN vote with a linear-regression projection and an EMA-
A Pine v5 strategy that trades pin bar candles on the price chart. A pin bar needs a long wick relative to its body and range, a small opposite wick, and an optional required wick side. Optional confirmation uses band, momentum and EMA crossover settings and a
This strategy calculates the RSI indicator to detect mean reversion in AU stocks. It enters long positions when RSI falls below the oversold level with no current position and closes positions when RSI rises above the overbought level. Position size uses a fix
A price-chart overlay that draws a static set of options gamma levels for MES (Micro E-mini S&P 500 futures, scaled from SPY options) expiring in thirty days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot da
A strategy that trades MACD line and signal line crossovers within a chosen date range and compares three position sizing methods: a fixed dollar risk, a fixed percentage of equity risk, or a fixed quantity. Stop loss and take profit distances are set in ticks
A long-only strategy generated from the TrendLab research project, drawn on the price chart. It calculates the Parabolic SAR with acceleration start 0.05, step 0.01 and maximum 0.33. It buys when the close crosses above the SAR and closes the position when the
An overlay indicator that draws liquidity levels at pivot highs and lows, filtered by volume. A level appears when the pivot bar's volume exceeds a multiple of its moving average. High and low levels have separate colours, and a display mode shows either all h
Calculates Chaikin Money Flow, which measures buying and selling pressure from where each close sits in its range, weighted by volume over a set length. The default is twenty bars. It plots in a separate pane around a zero line, with colour by sign and an opti
This indicator combines three trend tools on the price chart. Smart signals colour candles and place labels by trend direction, with a time horizon setting from fast to slow and an option to show only strong signals. A fair value trail draws an ATR-based cloud
This indicator combines RSI and MACD to mark confirmation signals on the price chart. A buy circle appears when RSI is below 50 and rising while the MACD histogram is positive and the MACD line is above its signal line. A sell circle appears when RSI is above
Institutional Order Flow is a price-chart overlay that marks order blocks, fair value gaps, liquidity sweeps, and market structure. Bullish and bearish order-block boxes require a strong candle, volume above a multiple of a 20-bar average, and a later rally or
This strategy fades opening gaps on ES during the New York regular session. It requires a gap that meets percentage, point, and optional ATR thresholds, then places long or short fade entries after a selectable 5-, 15-, or 30-minute opening range. A TICK bread
Calculates trend channels based on a Simple Moving Average (SMA) and Average True Range (ATR) envelope. When price crosses outside the volatility envelope, the indicator identifies trend changes and draws dynamic mid, top, and bottom channel lines directly on
The Smart Money Concepts indicator plots order blocks, fair value gaps, break of structure, and liquidity zones directly on the price chart. It identifies bullish order blocks as strong up-candles following down moves and bearish order blocks as strong down-ca
A chart-overlay indicator for lower timeframes that draws a fast ATR trailing stop and marks buy and sell triangles when price breaks it, with a volatility sensitivity filter. A configurable dashboard reports market state using the Choppiness Index, RSI above
This library from the SFA framework detects structural flow points using break of structure (BOS) and change of character (CHOCH) events. It calculates impulse origins by comparing close prices against ATR-based high and low extremes, filtered by volume percen
This Pine Script v6 utility library provides a reusable function to filter backtest date ranges. It evaluates whether the current bar timestamp falls between a specified start time and end time, returning a boolean value. Although configured as an overlay on t
Risk Interval Derivatives is an overlay indicator for E-mini S&P 500 and Nasdaq 100 futures. It detects ES or NQ from the chart symbol, takes a fixed risk interval in points (or a manual override), and plots multiples of that interval above and below the previ
This strategy evaluates market conditions using a combination of WaveTrend, RSI, Stochastic RSI, and a custom Money Flow Index calculation inspired by VuManChu. It enters long positions when multiple oscillators hit oversold thresholds and generate an upward c
A chart-overlay indicator that plots a fast and a slow EMA, pivot-based support and resistance, and buy or sell signals. A signal needs at least four of five conditions: an EMA cross, RSI inside a middle band, price on the correct side of the fast EMA, a volum
Draws support and resistance boxes from pivot highs and lows on the price chart, with box height set as a multiple of ATR. It also marks price gaps above a minimum percentage, with an option to show filled ones, and draws stop loss and two take profit lines. T
A pattern scanner that looks for symmetrical discount and premium structures built from confirmed pivots, then scores each one against symmetry, trend, volume, depth and structure weights. Only patterns above a minimum quality score are shown, and optional vol
This indicator projects future price trajectory directly on the price chart by searching historical price movements for matching patterns. It compares a recent reference window against historical evaluation segments using correlation to identify the most simil
Advanced Inflection Point Pro is a reversal detection indicator that combines state analysis, pattern matching, and volume anomaly detection to identify turning points. It evaluates multi-factor probability scores to plot signal trails, market flow ribbons, re
The Donchian Breakout Strategy is a Turtle-style breakout system that plots Donchian channels on the price chart. It generates long entries when the close price crosses above the upper channel and short entries when crossing below the lower channel. Exits are
This indicator identifies high and low pivot points on the price chart using user-defined left and right bars around each bar. It connects pivot points with wave lines, plots PH and PL marks, and labels the latest P1 to P8 patterns. A table shows pivot details
An intraday strategy that builds a range from the first fifteen minutes after a configurable start time, then trades breakouts of that range until a set end time. Targets use a risk-to-reward ratio setting, and position size is a small percentage of equity. Th
Draws a Fibonacci channel on a logarithmic price scale on the price chart. The user sets two high dates and one low date; the script reads monthly highs and lows around those dates, converts them to base-10 logarithms and derives a sloped channel from the two
This strategy trades three-candle reversal patterns, called 123, PFR and engulfing, together with a 9, 40 and 80 EMA trend stack. Entries can occur when price crosses the fast EMA without crossing the slower ones, or when it crosses all of them. Optional volum
This script is a template for improving Pine Script indicators and strategies. It provides a structured framework with sections for documenting original code, listing improvements, adding or modifying input parameters, performing calculations, modifying plot s
A minimal overlay that watches a 20-period EMA and prints a green STRONGBUY label below the bar each time the close crosses above it. It has no inputs, no exit logic and no filters, so every upward cross of the average produces a label, including during sidewa
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.