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 overlays five Fibonacci-based exponential moving averages (3, 13, 34, 55, and 144) directly on the price chart, drawing inspiration from Guppy Multiple Moving Averages and Granville rules. It triggers buy signals when the EMAs are stacked in com
Candle Body Wick Alerts identifies candles with minimal or missing wicks based on comparisons between open, high, low, and close values. It checks if the price distance between key levels (such as open and low or high and close) falls within a set tolerance th
The River Strategy with SuperScalper plots custom Bollinger Bands to form a price channel on the main chart overlay. It identifies breakout conditions when price bars clear the channel boundaries to generate entry, stop loss, and multi-tier take profit levels.
This indicator plots a Traders Dynamic Index in a separate pane and scans it for regular and hidden divergences. It builds the index from a smoothed RSI, a signal line, and a longer baseline, then compares price and oscillator pivots over a lookback. Users can
This indicator identifies Tweezer Top and Tweezer Bottom candlestick reversal patterns directly on the price chart. It checks for matching bar highs or lows across consecutive candles while filtering out doji or weak candles based on user-defined threshold per
This indicator computes standard deviation as a proxy for entropy and plots three smoothed, normalized oscillator lines in a separate pane. It calculates fast, medium, and slow simple moving averages of price dispersion, then normalizes each using a Z-score sc
Calculates the Relative Strength Index oscillator in a separate pane with configurable overbought and oversold thresholds. Includes options for smoothing the RSI line using various moving averages or Bollinger Bands, gradient fill zones, and regular divergence
The Volume Price Analysis (VPA) indicator computes the Rate of Flow (RoF) from price and volume data using selected moving average types. It applies smoothing and signals for analysis, with normalization for subjective value levels. Plots appear in a separate
This indicator plots horizontal lines for the 50 percent level of the daily price range along with high and low values for daily, Asian, London, and New York sessions plus the true day open. It includes an optional confluence checklist that users can enable to
This strategy generates directional trade setups for gold using a blend of triple exponential moving averages, RSI, Stochastic oscillators, and Fibonacci retracement zones. Entries execute under confirmed or scalp modes filtered by M15 trigger levels, wick rej
This strategy calculates a Volume-Weighted Moving Average (VWMA) sourced from a 60-minute timeframe to generate upper and lower channel bands based on user-defined percentage offsets. It incorporates RSI and Williams Fractals logic to evaluate potential entry
FlowScope draws a volume profile on the price chart by aggregating a chosen number of candles into one profile and splitting that range into price boxes. It stores a volume distribution for each profile, colors boxes with a custom low-to-high gradient, the can
This indicator calculates the Chaikin Money Flow (CMF) to measure accumulation and distribution over a user-defined lookback period. It determines the money flow multiplier based on where the close falls within the bar's high-low range, multiplies it by volume
Smart Money Breakouts strategy is a price-chart overlay strategy that detects breakouts using volume-adjusted swing highs and lows. It calculates candle wicks or bodies, applies ATR-based adjustment for targets, and supports limit-order entries with coefficien
Points is a Pine Script v5 library that stores paired x and y coordinates as two synchronized arrays. It creates empty or sized integer and float arrays, checks that both arrays share the same length, and raises a runtime error when they diverge or when an ind
This strategy identifies pin bar candlestick patterns, specifically hammer and shooting star candles, to trigger trade entries. It detects candle shapes based on a customizable Fibonacci threshold. Signals can be filtered using minimum and maximum ATR candle s
HTF Candles & Pivots projects higher timeframe candle bodies, wicks, and pivot levels directly onto the price chart. It visualizes open-close ranges, high-low ranges, time divisions, and pivot calculations such as Central Pivot Range across automated or manual
This overlay indicator combines a ZigZag swing plot, Fibonacci retracement levels, and a linear regression channel on the price chart. Pivot points use an ATR-based deviation multiplier and a minimum depth, and optional lines can extend left or right with pric
This indicator plots green arrow up shapes on the price chart when the close exceeds the close one bar ago, high one bar ago, and high two bars ago. It plots red arrow down shapes when the close is lower than the close one bar ago, low one bar ago, and low two
A large chart overlay that builds standard deviation bands from relationships between a bar's open, high, low and close, using three timeframes chosen from preset trading horizon profiles or set manually. Visibility toggles control each band pair. The script a
A price-chart overlay that draws Fibonacci-style levels from the first five-minute candle of each day, and separately from the first red five-minute candle. Levels at 0, 0.44, 0.5, 0.56 and 1 of the candle range are drawn as lines, with an optional shaded band
Mini Screener is a multi-asset monitoring dashboard that displays price data and trend status for five user-selected symbols in an on-chart table. It calculates single-bar percentage price changes and checks whether each asset trades above or below an exponent
SMC Imbalance Context is an indicator that overlays FVG zones, BPR zones, liquidity voids, and imbalance state labels on the price chart. It reads active states and mitigation details for bull and bear FVGs along with BPR and liquidity void data from the skipp
A test strategy that draws a red horizontal line which follows a 20-period moving average by moving about a third of the distance each bar, and extends to the right. It goes long when the close crosses above that smoothed line and closes the long when the clos
This indicator in Pine Script v6 calculates and plots three lines on a separate pane. It uses an input to choose between EMA or SMA of close over 10 periods for the main line. The second line applies RSI of close over 14 periods only when close exceeds open. T
This strategy compares Bollinger Bands and Keltner Channel to detect volatility regimes. It plots the bands and their difference along with the RSI of the difference on the price chart. Entries and exits occur on transitions in the volatility state, controlled
A strategy meant for a 5-minute chart that detects a break of a delta-based level on a 15-minute context, waits for a retest from the correct side, then enters on a reclaim candle. Gates include estimated pressure rotation, candle body and close location, entr
This indicator marks internal divergence when a same-direction signal leg moves farther than the peak, or the mean plus a sigma multiple, of earlier legs. It runs trend, momentum, volatility and volume calculations as four separate methods in a separate pane.
A long-only strategy for crypto spot that builds support zones from pivot lows on a higher timeframe, 15 minutes by default, and watches the chart timeframe for a liquidity sweep below a swing low followed by a reclaim and a higher low. Reclaim confirmation ca
An overlay indicator that captures the high and low of an opening range starting at a configurable hour and minute, then computes the range average and extension levels from it. A 9 and 21 EMA pair is plotted with triangle markers on crossovers. Toggles show o
This indicator calculates geometric price reflections and time-mirrored fractals across a central price level and two reference mirror levels with specific reference times. It evaluates high and low swing fractals over a configurable period length, stores thei
A separate-pane oscillator built on a long-period RSI-style calculation with a default length of 55. Four selectable signal types are available: two trend variants, an oversold and overbought mode, and a custom long and short threshold mode. Threshold inputs s
Marks the bar where a volume order block zone is first confirmed, at the completion of the moving average crossover, so the marker does not shift to an earlier bar afterwards. A sensitivity bank input selects the six sensitivity lengths, or custom values can b
This strategy plots on the price chart and combines an opening-range breakout with gap-fill logic. It builds the range from a fixed 9:30 start for a user-set number of minutes, then marks breaks of the range high or low. Gaps are classed as full or partial fro
A strategy that shades a chosen trading session on the price chart and looks for candles whose low sits above the high from two bars back, or whose high sits below the low from two bars back. Entry is placed at the midpoint of the gap, the stop at the signal c
Classifies the market into five regimes using fuzzy-logic scores built from log returns. It estimates a Hurst-like exponent from a variance ratio and measures skewness over a window whose length adapts: the more random the market looks, the shorter the window.
This indicator tracks intraday key levels, premarket ranges, and opening range boundaries on index instruments like XSP. To compensate for missing premarket data on index charts, it streams and scales MES futures data to compute sentiment thresholds and target
A New York session strategy built on the initial balance, the price range of the first hour after the 09:30 Eastern open. It tracks the high and low of that opening window, draws a box, computes an anchored session VWAP and, once the range has formed, scans a
This indicator detects US stock ex-dividend dates using request.dividends() on the chart symbol. It plots purple diamonds marking past ex-dates and displays colored glows around buy windows: yellow when the window is open but quality gates fail, green when all
Reversal RSI Stochastic ATR is an indicator that prints a reversal label when RSI is beyond its oversold or overbought level and the stochastic K line crosses D inside its own extreme zone. On each signal it draws stop loss and take profit lines at an ATR mult
This strategy plots on the price chart and stores recent closes in a float array during the first sixty bars. It enters a long position when the newest stored close is above the close ten slots earlier and the nine-period EMA crosses above the twenty-one-perio
Scores smart money confluence across a four-layer timeframe stack on the price chart. A 4-hour EMA bias and premium or discount zone set direction, 1-hour structure confirms it, 15-minute order blocks and liquidity sweeps define the entry zone, and a chart-tim
Reads candle sequences and labels them as rally, base or drop phases, then flags four patterns: rally-base-drop, rally-base-rally, drop-base-drop and drop-base-rally. Each pattern can be switched on or off. Bars can be coloured fully, only on detection, or not
An indicator in a separate pane that shows two gauge-style speedometers drawn with lines. The left gauge maps a 14 period RSI to a needle from 0 to 100. The right gauge converts a 20 period price z-score, clamped to a chosen limit, to the same scale. Layout in
This strategy combines Exponential Moving Averages (10, 55, and 200 EMAs) with a Stochastic Oscillator to execute trades. It enters long positions when the Stochastic K line crosses above D in oversold territory while price is above the 200 EMA. Short entries
This indicator combines Volume Weighted Bands, a Hull Moving Average with Keltner Channels, and a Swing Profile directly on the price chart. It calculates volume-weighted trend lines, ATR volatility bands, and swing structures to plot dynamic support and resis
The EMA Ribbon strategy plots six exponential moving averages (periods 8, 13, 21, 34, 55, 89) on the price chart to form a visual ribbon. It detects trend direction using full stack alignment, partial alignment (at least 4 of 6 consecutive pairs), or fast EMA
A Pine v5 strategy that trades a breakout from a narrow range bar. A bar is narrow when its range is below a set fraction of the average range. Its high and low are stored and drawn as levels, and a close above the high opens a long while a close below the low
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.