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 calculates rolling extreme price levels across a user-specified lookback length and plots them in a separate indicator pane. It includes custom loop functions to evaluate highest and lowest values alongside their corresponding bar indices, as we
This strategy calculates the Inverse Fisher Transform on selectable technical factors including Money Flow Index, RSI, RSX, Karobein Oscillator, and Scaled Price. It smooths values using a Jurik Moving Average smoother and plots the resulting oscillator in a s
This strategy plots modified Bollinger Bands and an exponential moving average on the price chart. It watches for closes crossing the upper or lower band, optionally filtered by the EMA trend and extra crossover or crossunder checks. Long stops use the recent
This indicator calculates John Ehlers' Hilbert Transform sine wave from a chosen price source, defaulting to hlc3. It smooths price, estimates the dominant cycle with a homodyne discriminator, clamps that period between 6 and 50 bars, and extracts phase with a
This overlay indicator requests the low of a Heikin Ashi series built from the symbol’s regular session and plots that value on the price chart. It builds a regular-session ticker, converts it with heikinashi, then reads the low through security on the chart’s
This indicator applies a square root transform to a user-selected price series and plots the result in a separate pane. The function returns na when the source is negative and raises a runtime error if the source is na. The only input chooses the series, defau
Calculates and plots the standard Money Flow Index oscillator using typical price and volume data over a user-defined lookback period. It renders in a separate indicator pane with reference lines at 80 for overbought, 50 for the center line, and 20 for oversol
This strategy plots a Noro trend ribbon on the price chart and uses ribbon side changes to choose long or short direction. It opens a long when price is below a high-low corridor during a long bias, and a short when price is above that corridor during a short
This indicator plots a Stochastic RSI in a separate pane on a 0–100 scale. It computes RSI of the source, then a stochastic of that RSI, and smooths the K and D lines with a selectable average including SMA, EMA, and JMA-style options. It marks midline and K/D
Swing Trade Strategy evaluates market conditions by aggregating directional signals across ten trend and momentum indicators, including an Arnaud Legoux Moving Average, Relative Momentum Index, Double Exponential Moving Average, Directional Movement Index, and
This overlay indicator marks a session opening range on the price chart and filters breakouts with relative volume. Session type, duration, and optional custom start time set the range, and historical ranges can stay on the chart. Full mode can require a liqui
Calculates and plots key session reference levels directly on the price chart, specifically pre-market high and low alongside prior day high and low. Users can adjust how levels project across historical data, toggle line labels, customize spacing, and show pr
Calculates an ATR-based z-score oscillator and normalized volume across multiple assets, screening up to 21 symbols simultaneously. Outlier detection filters extreme standard deviations before normalizing values between 0 and 100. It visualizes the comparative
Volume Force (VF) is an indicator that calculates the force of volume behind price movements. It measures price change multiplied by volume and smooths the result using an EMA-style formula with adjustable smoothing period. The script plots the VF line on a se
A test strategy from a reference corpus that calls a user-defined MACD histogram function on 60-minute, 4-hour and daily data with lookahead off. It goes long when all three histograms are positive and short when all three are negative, closing the opposite po
S_pending_entries is a strategy that places different types of pending buy and sell orders including limit, stop, and stop-limit orders at specific phases in a 68-bar cycle. It calculates reference price levels around the current close and plots them along wit
The Gann Auto-Step & Multiplier + Range Info indicator plots on the price chart. It calculates the high-low price range over a user-defined time period, separating values for green and red candles. Swing pivots are detected using a configurable pivot length. T
An overlay always-in flip indicator where a buy closes a short and opens a long, and a sell does the reverse, committed only on confirmed bars. It rebuilds an earlier trail design with an ATR trail, slope and separation checks, range hysteresis, a strict early
Bearish half of a split HV+D and PBJ indicator, drawn on the price chart. It plots 36 sell-side markers that combine high-volume candles, standard deviation displacement and a PBJ moving average and Supertrend filter. Each pattern, such as the DDDD, DDD, Foxtr
This strategy plots Donchian upper and lower channels along with the midpoint on the price chart. It generates long signals on a price crossover above the upper Donchian band when volume exceeds a moving average multiple if the filter is enabled, and short sig
An overlay that measures how far the current bar has moved from its open, as a percentage, and sends a text alert when the move reaches one of five levels, 2.5, 5, 7.5, 10 and 12.5 percent by default. Both up and down moves are measured by size, and only the h
An indicator that draws Fibonacci retracement levels on the price chart for the part of the chart currently in view. It can base the levels on the high and low of the visible range or on zig zag pivots found within it, with a pivot length setting and an option
DDD-tracker is an overlay indicator that marks historical ARK Invest purchases and sales of DDD on the price chart. It draws green buy labels below bars and red sell labels above bars at fixed dates, with a count of how many ARK funds traded the stock that day
This indicator plots Donchian Channel boundary lines along with dynamic fan projections directly on the price chart. It calculates the highest high, lowest low, and median price over a customizable lookback period. Whenever price establishes a new channel high
MultiIndicator combines multiple technical indicators into a single separate pane to save chart space. It calculates and displays market regime detection based on ordinary least squares regression, a Holt exponential smoothing crossover, normalized RSI, ADX, a
This strategy calculates standard Bollinger Bands using a Simple Moving Average and standard deviation multiplier. It enters alternating long positions when price crosses above the lower band and short positions when price crosses below the upper band. Open tr
This indicator implements John Ehlers' Hilbert Transform Trend vs Cycle Mode algorithm cross-checked against TA-Lib standards. It analyzes dominant cycle periods, phase changes, and sine wave components from a price input to determine whether the market is tre
This indicator retrieves Heikin Ashi candle data for the current symbol and timeframe using the security function. It constructs and plots custom Heikin Ashi candlesticks, coloring them green when the Heikin Ashi close is greater than or equal to the Heikin As
Calculates and plots the square root mathematical transformation of a chosen price or series input in a separate pane. This non-linear mapping compresses larger values, helping to stabilize variance across price data. The calculation includes built-in safety c
The Morning Doji Star Bullish indicator identifies a three-candle bullish reversal pattern consisting of a long black candle, a gapping doji, and a long white candle closing above the midpoint of the first body. It applies optional trend filtering using SMA50
This strategy plots an On-Balance Volume oscillator in a separate pane and applies a fast and a slow exponential moving average to it. It enters long or short when those averages cross, with a strategy type that can reverse, stay long only, or stay short only,
Structural Wave Field is a market structure indicator that evaluates structural flow, internal wave energy, and structural integrity across multiple time horizons. It combines momentum, velocity, and acceleration with wave segmentation and Elliott-context sequ
This indicator plots volume as columns in a separate pane and marks unusually quiet bars. It labels a bullish bar S when its volume is lower than both of the previous two bars, and a bearish bar D under the same volume condition. Users choose the analysis time
This indicator tracks Opening Range Breakout (ORB) levels for selected sessions such as New York, London, or custom hours directly on the price chart. It detects market structure shifts (MSS), fair value gaps (FVG), and order blocks to signal potential trade e
This indicator draws horizontal price bands and an anchor close line directly on the price chart. It projects two tiers of upper and lower boundary lines offset from the closing price by user-specified tick amounts. Each tier allows customization of tick dista
The Average Lines indicator calculates and plots average values of detected pivot highs and pivot lows directly on the price chart. It allows users to set left and right bar counts for pivot detection, choose which averages to display (pivot highs only, lows o
This indicator calculates a volume oscillator in a separate pane. It builds short and long simple moving averages of volume with circular buffers, then plots the percentage difference of the short average relative to the long average. A further moving average
A test strategy from a reference corpus that studies start-up behaviour of a daily 26-period EMA requested from a lower-timeframe chart without lookahead. It goes long while the daily EMA is rising and short while it is falling, closing the opposite position f
This strategy acts as a test fixture designed to evaluate Pine Script execution logic around pyramiding limits, position sizing, and order management under the ANY entry closure rule. It uses bar index cycles to execute scheduled entry orders, order reductions
Gann Octagon projects W.D. Gann geometric price spiral levels directly on the main chart starting from a user-selected anchor candle. The script calculates step sizes dynamically using candle height, adaptive ATR, or a user-defined manual value across up to fi
An overlay indicator that scores trend, momentum and structure and prints buy and sell signals only on confirmed bars. Inputs include a zero-lag EMA, slow EMA, HMA, ATR trail, ADX, choppiness and efficiency range detection, RSI, MACD, a breakout lookback and o
Tick-chart-safe bearish half of a split HV+D and PBJ overlay indicator. It plots 36 sell-side markers that combine high-volume candles, standard deviation displacement and a PBJ moving average and Supertrend filter. Guards give a tick-chart fallback bar length
This strategy filters fakeout signals using a 4-layer causal scoring system to ensure high-conviction entries on the price chart. It computes a sovereign score based on volume exceeding a moving average multiplier, alignment with higher-timeframe EMA, minimum
An overlay that measures the percentage move of the current bar from its open and sends a text alert when it reaches one of five positive or five negative thresholds, plus or minus 2.5, 5, 7.5, 10 and 12.5 percent by default. Up and down levels are set indepen
A Pine Script v5 library whose functions return values from the bars currently visible on the chart. It can test whether a bar is visible or is the first or last visible bar, and return the highest high, lowest low, their bar indexes and times, and the opening
This indicator plots labels on the TradingView price chart to mark ARK Invest's buy and sell trades for the DE stock. Buy transactions appear in green with X1 or X2 multipliers showing the number of ARK ETFs involved on the same day; sells appear in red. The m
This indicator overlays up to five higher-timeframe candlestick groups on the price chart. For each enabled timeframe it requests open, high, low, and close and can show up to five candles, offset by a spacing setting. The main inputs set the candle count, the
This strategy plots a scaled one-bar price change from a chosen timeframe in a separate pane. It enters long when the change crosses above a threshold divided by a divisor and short when it crosses below the negative threshold. Volume can replace price with an
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.