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 overlay indicator looks for price retracing toward an ICT order block defined from the highest high and lowest low over a set candle period. It marks bullish and bearish touches, with an optional vertical offset that widens the touch zone around the first
Supertrend + RSI Strategy [Alose] combines the classic Supertrend indicator with the Relative Strength Index (RSI) to enter and exit positions on the price chart. Long trades open when the Supertrend is bullish and RSI crosses above 50, while short trades requ
ADBE Tracker displays historical buy and sell transactions executed by ARK Invest for Adobe Inc. directly on the main price chart. It plots color-coded labels above or below price bars corresponding to specific transaction timestamps, indicating whether ARK fu
The script defines two functions for Box-Cox array transformations in Pine Script v5. The regular function applies the transformation to stabilize variance using the provided lambda parameter, while the inverse function reverses the process. It demonstrates th
This overlay strategy is built for ES futures on the one-minute chart. It plots a volume-weighted moving average of price opens and standard-deviation bands at Fibonacci ratios, plus a second longer volume-weighted average from a higher-timeframe open. Call an
This indicator measures directional momentum by evaluating candlestick body proportions and volume over a user-defined lookback window. It computes the ratio of candle body to total range, weights the cumulative value by volume and absolute body size, and dete
This indicator detects swing highs and swing lows across price action and plots markers directly on the price chart. It checks whether the high or low of a historical bar offset by a configurable lookback is the highest or lowest value within a symmetrical win
Dynamic Linear Regression calculates and plots linear regression trendlines and standard deviation channels directly on the price chart over a user-selected time period. Traders can configure static channels locked at the end time, dynamic channels that contin
This indicator plots a dynamic step trendline directly on the price chart using Kaufman Efficiency Ratio (ER). It blends short and long standard deviations based on price efficiency to construct adaptive step thresholds. Trend flips trigger buy and sell signal
This strategy calculates momentum signals using MACD crossovers filtered by EMA trend filters and an optional RSI indicator. It enters long and short positions directly on the price chart using customizable percentage-based stop loss and take profit targets. T
This indicator plots Average Directional Movement Index Rating in a separate pane. It smooths true range and directional movement to produce plus DI, minus DI, the directional index, and ADX. ADXR averages the current ADX with the ADX from the rating period ba
An educational indicator from TradingView documentation that demonstrates how to render custom price bars using the plotbar function. It evaluates whether the close is greater than or equal to the open on each bar to determine a bullish or bearish status. Bars
This indicator tracks smart money market structure directly on the price chart. It calculates dual-period swing highs and swing lows to detect Changes of Character (CHoCH), Breaks of Structure (BOS), inducements, and liquidity sweeps. When structural levels ar
This indicator calculates dynamic upper and lower trendlines from pivot highs and pivot lows across a specified bar length. Trendline slopes are derived using ATR, standard deviation, or linear regression methods. It plots trendlines and breakout signal labels
Calculates swing points, dynamic support and resistance channels, and a baseline trend moving average directly on the price chart. It identifies structural highs and lows using 10-bar pivot logic, plotting colored triangles offset to confirmed swing bars. Dyna
The Cubic Regression Moving Average calculates a fitted endpoint using a degree-three polynomial over a specified lookback period via normal equations solved by closed-form elimination. It plots the resulting trend line directly on the price chart. Users can a
This indicator calculates and plots standard deviation projection levels based on historical session ranges. It draws the session open line alongside positive and negative standard deviation bands (0.5, 1.0, 2.0, 3.0, and 4.0 SD) directly on the main chart, ac
This indicator plots a modified Ichimoku set on the price chart. It builds Tenkan, Kijun, Chikou, and both Senkou lines from a ten-bar average of the open rather than the usual high-low midpoint, then fills the cloud between Senkou A and Senkou B. A green tria
This strategy trades on the price chart from the current bar versus the prior close. It enters long when the bar closes above its open and that open is above the previous close, and enters short when the bar closes below its open and that open is below the pre
This indicator calculates the current bar's high-minus-low range in points, excluding overnight gaps. It then computes a simple moving average of that range over a user-set length and the ratio of the current range to that average. The length input defaults to
Supply and Demand Visible Range identifies supply, demand, and equilibrium zones across the visible chart range. It accumulates high, low, and volume data starting from the leftmost visible bar, optionally requesting lower timeframe intrabar data for finer res
This strategy tracks an opening session time range to establish directional bias and triggers pullback trades using Stochastic RSI. Once price breaks out of the initial range, it establishes a directional bias and enters when the Stochastic RSI crosses over in
This strategy enters long or short when price breaks a Keltner channel built from an exponential moving average and an ATR multiple. It sizes each unit from a fixed equity risk percentage and an ATR stop, then can add units as price moves in the trade directio
Divergenced G003 is a strategy that identifies momentum divergences based on Squeeze Momentum Indicator color transitions to trigger long and short entries. Trades are exited using Curie closing moving average lines or configurable percentage-based stop loss,
Calculates long and short entry signals tailored for Bitcoin on the 15-minute timeframe using a combination of the Relative Strength Index (RSI), Traders Dynamic Index (TDI) bands, and TD Sequential counts. It triggers long signals when RSI falls below 21 and
Commodity FlowTrend plots a money-flow oscillator in a separate pane. It calculates a manually smoothed Money Flow Index from price and real trade volume, overlays a CCI reading scaled to the same range, and colors a histogram plus an optional background by ex
Smart Trader Episode 03 divides a specified lookback window into bar groups or blocks on the main price chart. It calculates aggregated composite OHLC candles for each block, draws structural group boxes, and identifies trend segments using custom angle thresh
This strategy calculates the Ultimate Oscillator in a separate pane from buying pressure and true range over fast, medium, and slow lengths, combined with a four-two-one weighting. It enters long when the oscillator crosses above the oversold level while remai
MA ATR ADX PP Strategy combines customizable moving averages with Average True Range (ATR) and Average Directional Index (ADX) filters to generate trade entries and exits on the main chart. The script supports eight moving average types, including SMA, EMA, Hu
This indicator calculates fast and slow exponential moving averages of close prices and plots colored dots in a separate pane to show trend direction. Green dots appear when the fast EMA exceeds the slow EMA, while red dots signal the opposite. The script pull
This indicator plots a standard Relative Strength Index calculated from closing prices alongside a dynamic volatility band derived from the high and low price RSIs. The upper and lower bands envelope the main RSI line to highlight intrabar price extremes relat
Calculates individual Relative Strength Index (RSI) values for price open, high, low, and close to render RSI as candlesticks in a separate pane. Users can toggle between candlestick and line displays. It includes customizable overbought and oversold threshold
This overlay indicator builds a Market Profile on the price chart from time-price opportunity letters. It marks the point of control, a value area at a configurable percent, single prints, session VWAP, and the initial balance, and can extend those levels. Use
This indicator identifies dynamic support and resistance levels using pivot highs and lows. It plots resistance and support lines directly on the price chart once pivot points are confirmed. Additionally, it calculates a volume oscillator using 9-period and 26
This indicator classifies price action into four distinct market regimes: Trend, Expansion, Compression, or Mean Reversion. It determines states using a simplified Hurst exponent estimate, ADX slope thresholds, and realized volatility measurements. Based on th
This indicator plots ICT Silver Bullet setups on the price chart. It marks New York and London session windows, fair value gaps, and optional swing highs and lows. Signals use fair value gap or market structure shift execution, with wick or close breakout dete
Indicatorv5SMC / ICT / price actionSessions & time
This overlay script is a headless volume-profile parity shell rather than a signal indicator. It fixes a one-minute source, Chicago regular-hours session, four-tick rows, a 70 percent value area, and named algorithms for the point of control, value area, and r
Weighted Percentile Nearest Rank calculates a weighted percentile level over a configurable lookback window and plots it directly on the price chart. Data points are weighted using linear time decay and optional inferred volume based on candle body size. The s
Cerebr Bot is an overlay indicator that maps order blocks and fair value gaps on the price chart. It validates order blocks using a candle-count range, a no-body buffer, and an optional reversal-magnitude filter based on candle body or the selected method. RSI
This indicator plots multi-timeframe Exponential Moving Averages alongside double Bollinger Bands directly on the price chart. It calculates three EMAs (short, medium, and long term) fetched from configurable higher timeframes, alongside two sets of Bollinger
This strategy operates directly on the price chart to generate trading signals across four switchable modules: trend following, mean reversion, momentum breakout, and smart money concepts. It triggers trade entries when a user-defined minimum number of modules
This indicator draws in a separate pane and combines a true-range component with a scaled relative liquidity index. The liquidity reading applies RSI to ATR and can tint a gradient background between low and high liquidity colors. Optional tables show an ATR-b
This strategy trades E-mini and Micro E-mini S&P 500 futures on the price chart. It enters long when a fast EMA crosses above a slow EMA during New York regular trading hours, and enters short on the opposite cross unless long-only mode is on. Each entry place
Calculates the Relative Strength Index (RSI) and automatically detects regular and hidden bullish and bearish divergences against price movements. It identifies pivot highs and lows in both price and RSI across a configurable lookback window, drawing lines and
This strategy plots Bollinger Bands on the price chart using a simple moving average basis and a standard-deviation multiplier. Optional RSI, long-period Aroon, and EMA or SMA filters are present but stay disabled unless a password enables the PRO path. Long e
This indicator plots multiple exponential moving averages on weekly and monthly timeframes, including 14-period weekly EMA, 8-period monthly EMA, and 14-period monthly EMA. It also displays a Kijun line derived from the midpoint of high and low over 20 periods
Snagprofit WMA MA combines multi-timeframe Weighted Moving Averages (1M, 5M, 15M, and 1H) with a Simple Moving Average filter to assess trend momentum across different time horizons. It plots shape signals directly on the price chart when candle breakouts alig
P-EMA21 plots a 21-period exponential moving average and two smoothed moving averages, defaulting to lengths 21 and 55, on the price chart. It places long and short labels when the EMA crosses either smoothed average. Source, lengths, and a percentage threshol
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.