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.
The Keltner Center Of Gravity Channel Mutations Indicator calculates adaptive channel metrics based on Donchian range Fibonacci levels (38.2% and 61.8%) and Average True Range (ATR) offsets. The lookback period automatically adjusts according to the active tim
A test strategy from a reference corpus that places a long stop and a short stop at the same time, 0.2 percent above and below the close of the 02:45 bar. It only does so on bars where the open is nearer to the high than to the low, so the price path is expect
This indicator draws customizable boxes, rhombuses, or ellipses on the price chart centered on a selected moving average. It computes the box height from the MA's high-low range over a lookback period and applies optional golden ratio midpoints or symmetry. Sh
An overlay indicator that draws a zero-lag EMA with upper and lower ATR bands and flips its trend state when price crosses a band. Buy and sell signals mark the flips on confirmed closes. An early reversal warning appears when price stretches beyond a band, RS
Overlays up to 46 buy and sell marker signals on the price chart, built from standard deviation displacement, pullback pockets, relative volume tiers and fair value gap structures. Inputs set three displacement multipliers, a first-bar-only switch and per-sign
The TN_CMO_v26 strategy calculates the Chande Momentum Oscillator and applies causal divergence filters against price action within a trend regime defined by a 200-bar EMA. It generates long entries on bullish divergence or CMO crossing above negative extreme
Calculates a time segmented volume line in a separate pane by weighting volume by the change in price over a chosen length, then smoothing it with a moving average. An oscillating option changes how the line is presented. Positive readings suggest volume on ri
This indicator plots historical buy and sell records from ARK Invest funds directly on the price chart for Intercontinental Exchange. It generates visual label markers timestamped to specific transaction dates, displaying trade direction and the count of funds
This indicator plots a zigzag overlay directly on the price chart by identifying pivot points whenever price reverses by a specified threshold. The reversal range can be set manually as a fixed percentage or calculated dynamically using average true range mult
This strategy backtests a long Bollinger Band deal on the price chart for 3Commas-style bots. It plots short and long simple moving averages, offset bands, and the average entry price of the open deal. A long starts when price crosses the lower band inside a c
This indicator plots the five classic Ichimoku components on the price chart. It calculates Tenkan-sen, Kijun-sen, and Senkou Span B as midpoints of the highest high and lowest low over their periods, then derives Senkou Span A from Tenkan and Kijun. Chikou Sp
My Script is a minimal Pine Script v4 visual example that demonstrates how to align text inside a drawing label. It creates a persistent label on the chart using a var declaration and sets its text alignment to right. On each new price bar, the script updates
This indicator calculates and plots the classic Triple Exponential Average (TRIX) momentum oscillator in a separate pane. It applies a triple exponential moving average to the natural logarithm of closing prices and computes the 1-bar rate of change multiplied
This long-only strategy executes automated cryptocurrency trades designed to interface directly with Zignaly webhooks. It triggers entries when a configurable minimum threshold of sub-strategy conditions are met within a lookback window, adjusting position siz
Calculates four Welles Wilder Moving Averages (RMA) using a user-specified timeframe and plots them directly on the price chart. The script tracks short, medium, extension, and long trend lines (default periods 34, 72, 89, and 144). Users can configure timefra
The Shved Supply & Demand indicator identifies and draws dynamic supply and demand zones directly on the price chart using fast and slow pivot points. It determines zone height using an ATR multiplier and categorizes levels by strength, including untested, ver
Matt Moheeka Candles repaints price chart candles using custom color rules based on session timing and price action structures. It identifies and highlights session opening candles, long-wick reversal candles such as hammers or shooting stars, and doji pattern
The Kernel Regression Toolkit calculates and plots non-linear regression estimations directly on the price chart. It provides multiple configurable kernel regression lines using functions such as Rational Quadratic, Gaussian, Periodic, and Locally Periodic ker
This strategy places long and short entries on the price chart at fixed daily times of 8:00 and 20:00. It uses fixed position sizing of 1 share with pyramiding set to 1, so only one position is held. At entry it immediately sets a three-way bracket exit that i
This indicator plots geometric structures and moving averages directly on the price chart. It calculates a simple moving average alongside periodic high and low extremes to construct shapes such as boxes, rhombuses, ellipses, or spirals using polylines. Users
A price-chart indicator that plots a zero-lag EMA with an ATR band around it. The trend flips long when price closes above the upper band and short when it closes below the lower band, marked with buy and sell labels and a shaded channel. Optional features inc
Overlays up to 64 buy and sell marker signals on the price chart, built from standard deviation displacement, pullback pockets, relative volume tiers and fair value gap structures. Inputs set displacement multipliers, a first-bar-only switch and per-signal tog
TnSovereignIctComboV6 is a multi-confluence ICT SMC strategy on the price chart. It calculates HTF EMA bias, killzone sessions, FVG detection, liquidity sweeps, market structure shifts, premium discount arrays and V17 fractal gate to achieve minimum confluence
A Pine Script v4 indicator on the price chart that draws a moving average wave, a channel of exponential averages on the high, close and low with a default length of 38, centred on a chosen source. It can also colour candles by whether they close above, below
This indicator visualizes historical trade records executed by ARK Invest for Illumina (ILMN) directly on the price chart. It plots green buy labels below bars and red sell labels above bars at hardcoded historical timestamps, noting how many Ark ETFs traded o
The script calculates a normalized oscillator derived from Murrey Math Line principles in a separate indicator pane. It supports three distinct calculation methods: Donchian Channel, Cumulative Deviation, and Decay Envelope. The indicator measures price relati
3x Supertrend and Stoch RSI is an overlay strategy combining three Supertrend indicators with Stochastic RSI momentum and a 200-period Exponential Moving Average. It uses the 200 EMA to establish the primary trend direction, requiring agreement across fast, me
This indicator calculates the Inertia Oscillator, measuring market trend strength based on the distance between price and its linear regression value. Over a user-defined length and price source, it computes the linear regression line and calculates the curren
This script is a minimal documentation example demonstrating basic Pine Script syntax. It takes the closing price series of the current symbol and displays it as shapes in a separate indicator pane. It does not include configurable user inputs, signal logic, o
This indicator plots the True Strength Index in a separate pane. It double-smooths price change and absolute price change with exponential moving averages, then expresses their ratio as a percentage. A signal line is an exponential moving average of that value
Trailering M008 is a Pine Script v5 long-only strategy that draws on the price chart and sends orders through Zignaly alerts. It increases capital as more trigger conditions are met and sets take profit from a percentage or a risk-reward ratio, using price exc
This overlay indicator evaluates trade setups on gold and intraday charts using a multi-layered filtering system. It combines fast, slow, and trend EMAs with session time filters, VWAP direction, higher-timeframe trend alignment, and ADX trend strength. It tra
This indicator plots smart-money market structure on the price chart. It marks internal and swing breaks of structure and changes of character, order blocks, equal highs and lows, fair value gaps, multi-timeframe highs and lows, and premium and discount zones.
This indicator combines Bollinger Bands, fractal detection, and RSI-based swing analysis within a customizable trading session. It identifies regular or Bill Williams fractals during active session hours and generates long or short signals when fractal extreme
This indicator splits volume into buying and selling portions from candle body and wick proportions, then measures the linear-regression slope of those series over a chosen period. It plots the resulting trend strength in a separate pane as columns or another
This Pine Script strategy acts as a validation probe to examine TradingView order execution when using trail_points without an explicit trail_offset. It enters a long position at 08:00 and a short position at 20:00 when flat, setting wide 5% protective stop-lo
Octahedron draws a geometric shape on the price chart using two user-defined points for time and price. It computes the delta between those points and plots eight blue polylines connecting points at fixed ratios to form the outline of an octahedron. The main s
An overlay indicator built on a zero-lag EMA with an ATR trailing stop. It reads market regime from ADX, adds RSI and Stochastic RSI momentum filters, and treats volume or oversized candles as spikes with a cooldown. Entries can display three take profit level
A companion verification indicator that exposes only the basic building-block signals, about 60 marker plots, with no combinations. All plots are off by default and each toggle explains its definition. The combination plots, alert aggregator and statistics are
TnS_ICT_V20 is a Pine Script v6 strategy that identifies institutional trading opportunities using ICT concepts. It calculates pivot swings as support and resistance levels, OTE zones, and a thermodynamic audit based on free energy and fractal entropy to filte
This overlay indicator marks ARK Invest activity for the INCR listing on the price chart. When the ETF input is ALL, it draws red labels above bars on fixed calendar dates, each reading a one-fund sell. The only setting selects the ETF filter, and the publishe
This Pine Script indicator plots a ZigZag on the price chart. It identifies reversal points when price moves more than a set percentage from the last pivot. The script calculates forecasts using zigzag data and labels detected geometric patterns including harm
The 3x SuperTrend Strategy combines three SuperTrend indicators, a 200-period Exponential Moving Average trend filter, and a Stochastic RSI oscillator to generate entry signals. Long trades require price to be above the 200 EMA with Stochastic RSI crossing up
This indicator calculates the interquartile range of a chosen price source over a lookback window. It estimates the 25th and 75th percentiles with linear interpolation, then plots their difference as a line in a separate pane. The source and lookback period ar
This indicator draws a single text label on the price chart. On the realtime bar only, it places a label ten bars back with the text Label, positioned above the bar using yloc.abovebar. It does not calculate oscillators, moving averages, or trade signals, and
This indicator detects Tweezer Bottom Bullish candlestick patterns on the price chart. It identifies a two-candle reversal during an uptrend, with the first candle long and red followed by a green candle with nearly identical lows. The script calculates trend
Trailering N006 is a crypto strategy framework designed for automated execution via Zignaly alerts. It calculates trade signals based on price excursion logic across lookback periods to enter positions with dynamic capital sizing. Key settings allow filtering
This indicator identifies a specific anchor candle based on user-defined start hour, start minute, and time zone inputs. It calculates the high-to-low price range of that anchor bar to project entry levels, stop losses, and target levels for both buy and sell
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.