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 strategy executes trend-following trades based on Supertrend reversals filtered by exponential moving averages. Long trades enter when the Supertrend turns bullish while the close is above the 50 and 200 EMAs. Short trades enter when the Supertrend turns
Calculates a VWAP-based pivot on a higher timeframe, either chosen automatically or set by the user, and extends it with up to fifteen Fibonacci multiples as horizontal levels on the price chart. Settings cover VWAP length, how many past periods to plot, line
GOOGL Tracker visualizes historical buy and sell transactions made by ARK Invest funds on Alphabet Inc. (GOOGL). The script plots labeled markers directly on the price chart at specific historical timestamps to indicate when ARK funds bought or sold shares, al
Test 32 Perlin is an experimental indicator that implements a 2D Perlin noise generation algorithm within Pine Script using native array data structures. It uses a custom pseudo-random number generator to build gradient vector grids, then calculates smoothed n
This strategy backtests hammer and star candlestick patterns on the price chart. It filters setups with an exponential moving average slope angle, optional swing high and low checks, and entry-candle size versus ATR. It opens one position at a time inside a us
This indicator calculates the Force Index as the exponential moving average of the change in close multiplied by volume. It plots the smoothed value in a separate pane and draws a dotted zero line. The period input sets the EMA smoothing length, defaulting to
This indicator is a simple demonstration of Pine Script type casting from official TradingView documentation. It defines a length variable as a float, explicitly casts it to an integer, and uses it to compute a 10-period Simple Moving Average of the closing pr
The SMI Ergodic Indicator calculates and displays the True Strength Index oscillator alongside an exponential moving average signal line in a separate pane. It evaluates price momentum through double smoothing across configurable short and long periods. Users
Sergiosqueeze D004 is a trading strategy designed for automated execution via Zignaly alerts. It utilizes squeeze momentum logic to open long positions when momentum expands positively and short positions when momentum expands negatively, exiting when the sign
This overlay indicator scans confirmed swing pivots for non-overlapping five-point Wolfe Wave wedges. It scores each candidate from 0 to 100 using contraction, channel traversal, apex, the fifth-point zone, risk/reward, timing, symmetry, and leg purity, then p
This indicator plots an exponential moving average and marks momentum-based trade sessions on the price chart. It treats RSI between 45 and 55 as chop and shades the background when momentum is present. Long and short labels appear when MACD crosses its signal
This indicator highlights key trading killzones and Smart Money Concepts (SMC) structures directly on the price chart. It detects and visualizes bullish and bearish Order Blocks (OB), Fair Value Gaps (FVG), Change in State of Delivery (CISD), trend lines, and
Indicatorv5SMC / ICT / price actionSessions & time
Calculates and plots multi-timeframe linear regression channels with customizable deviation bands directly on the price chart. The indicator overlays channels from multiple higher timeframes, ranging from intraday minutes to daily charts. Users can independent
Calculates evenly spaced grid levels across a user-defined price range bounded by upper and lower limits. It triggers simulated buy signals when price drops across a grid level and sell signals when price crosses upward through a level, evaluated via bar extre
This Pine Script strategy enters long positions at specific times of day on the price chart. It places entries at 00:15 and 06:15 each day. It then exits or closes positions at 00:45 and 06:45 using a limit order above the average entry price and a stop order
This overlay indicator on the price chart builds a logarithmic node network from price data using a resonance factor derived from the golden ratio PHI, PI, and E constants scaled by user input. It tracks Markov chain transition counts between nodes for up and
An overlay indicator that draws a trailing stop whose distance comes from a statistical distribution of recent price movement. Data length sets the sample window, distribution length sets how much history is normalised, and a base level setting picks one of fo
Combines bullish and bearish signals in one price chart overlay, built on a Keltner Channel, an ATR supertrend and several volume and displacement detectors. Markers flag candles where those detectors line up with a support or resistance structure. Version 5.3
This strategy plots three exponential moving averages on the price chart and trades when they stack in order. It opens a long when the fast average rises above the middle and the middle rises above the slow, the close is above an optional regime average, and v
Calculates a VWAP-based pivot on a higher timeframe, either chosen automatically or set by the user, and extends it with up to fifteen Fibonacci multiples as horizontal levels on the price chart. Settings cover VWAP length, how many past periods to plot, line
GRMN-tracker overlays historical ARK Invest buy and sell labels on the Garmin price chart. With the ETF input set to ALL, it marks each recorded trade date with a red sell or green buy label and a count of how many ARK funds traded that day. Selecting ARKX ins
This indicator stores recent price extremes in Pine arrays and plots their averages on the price chart. It splits a fixed-length array into a lows half and a highs half. When price makes a new high or low over that length, it inserts the price at the front of
This strategy combines the Price Moving Average Ratio Percentile (PMARP) with Madrid Moving Average Ribbon concepts to identify overextended price conditions and trend shifts. It calculates PMAR or PMARP across selectable moving average types and a lookback wi
Calculates and plots Fractal Chaos Bands directly on the price chart. The indicator identifies local fractal swing highs and lows, tracking the highest fractal high and lowest fractal low across a user-specified lookback period using monotonic deques. The resu
This indicator plots visual character markers directly on the price chart to identify bearish candles. It evaluates each bar and displays a symbol whenever the opening price is greater than the closing price. The script includes no user-configurable input para
This indicator plots the SMI Ergodic Oscillator in a separate pane. It calculates the True Strength Index of close prices using the short and long lengths, smooths that result with an exponential moving average signal, and plots the difference as a histogram.
This indicator plots a squeeze-momentum histogram in a separate pane. It compares Bollinger Bands with Keltner Channels to mark squeeze on, squeeze off, or no squeeze, and colors the zero line by that state. The histogram is a linear regression of close agains
This indicator overlays Wyckoff schematic analysis on the chart, identifying accumulation and distribution phases (A through E) alongside key events like Selling Climax, Automatic Rally, Spring, UTAD, and Sign of Strength. It calculates range quality scores, a
This visual utility overlays a custom motivational watermark and a trading rules checklist directly on the price chart using UI tables. It produces no trading signals or technical calculations. Users can customize the watermark text, font sizes, background col
NY SMC Suite Pro is an overlay indicator that visualizes Smart Money Concepts (SMC) and custom intraday trading sessions on the price chart. It detects and plots order blocks, fair value gaps, liquidity pools, market structure breaks (BOS and CHoCH), and chang
This indicator calculates and plots a linear regression channel directly on the price chart using a combination of Weighted Moving Average (WMA) and Simple Moving Average (SMA) values to derive slope and intercept. It projects a center regression line along wi
This indicator detects harmonic patterns using a Zigzag pivot engine and derives trend-following entry and stop levels relative to key pattern legs. It overlays dynamic trailing levels on the price chart to assist in tracking market direction following pattern
This strategy runs on the price chart and enters long positions at the top of each hour when the position is flat. It then closes those longs at the end of the hour while simultaneously entering a short position with a stop loss just below the low. Later in th
The Mirror Oscilator calculates a specialized oscillator in a separate pane by analyzing fractal periods and dynamic symmetry levels. It computes fractal turning points based on high and low prices over a specified period, derives symmetrical price relationshi
An ATR SuperTrend indicator on the price chart with an adaptive multiplier that scales with volatility relative to its average. Flips use a cushion measured in ATR and a signal cooldown, and can require an RSI threshold and optional volume. Risk presets draw a
Draws a Keltner Channel and ATR supertrend on the price chart and marks candles where gated combinations of pullback, displacement and volume detectors fire together. Inputs set the base moving average, channel length, ATR multiplier and displacement threshold
Calculates a Volatility-Adjusted Momentum Oscillator (VAMO) by dividing the price Rate of Change by the Average True Range, smoothed by an EMA signal line. Long positions enter when VAMO crosses above its signal line above zero, and short positions enter on be
This indicator plots an adaptive swing momentum oscillator in a separate pane, built from custom moving averages and a cycle length setting. It can read an internal lower timeframe, chosen automatically or by hand, to produce a signal line. Optional divergence
GRMNU Tracker plots historical trade activity by ARK Invest for the GRMNU ticker directly onto the price chart using chart labels. It marks specific historical dates with buy or sell markers along with the count of participating ARK funds. Users can filter by
This experimental indicator implements a cellular automaton game on an 8x8 grid using Pine Script arrays. It evaluates the north, south, east, and west neighbors of each cell with toroidal wrapping and updates active states according to survival and reproducti
This strategy overlays two exponential moving averages and ATR-based price targets directly on the price chart while calculating the Relative Vigor Index internally. It enters long positions when the RVI line crosses above its signal line during an established
This Pine Script indicator computes the FSI using Ehlers Fourier series analysis on the close price. It applies fundamental and harmonic bandpass filters, derives quadrature components for phase shift, estimates signal power over the cycle period, and reconstr
This indicator serves as a basic drawing demonstration from the official documentation, plotting directly on the price chart. On every bar, it draws a line segment connecting the previous bar's low price to the current bar's high price using the native line dr
The Smoothed Moving Average indicator calculates and plots a smoothed moving average directly on the price chart. It initializes using a simple moving average over the user-defined length and recursively updates using previous average values to reduce noise an
TradingLatino Abajo B002 is a momentum and volatility indicator that calculates a Squeeze Momentum oscillator in a separate pane. It compares Bollinger Bands and Keltner Channels to detect squeeze conditions while calculating momentum using linear regression b
ZigZag Core calculates and overlays market structure swing high and low points using customizable pivot depth, minimum pivot spacing, and flexible reversal filtering modes such as Percentage, ATR, or Hybrid. It plots connecting swing legs, developing legs, mar
This overlay strategy tracks the high and low of a user-defined London session and plots the previous session levels as support and resistance. It flags a break beyond a level when price closes past an ATR buffer, then waits a set number of bars for a retest w
This overlay indicator maps New York smart-money concepts on the price chart. It highlights three killzone sessions, draws order blocks and fair value gaps, and notes change-in-state-of-delivery events plus market-structure shifts. A statistics dashboard score
Indicatorv5SMC / ICT / price actionSessions & time
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.