8,340 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 plots a smoothed stochastic oscillator in a separate pane. It calculates percent K from the high, low, and close, smooths that value, and derives percent D as a moving average of percent K. Lines draw thicker when a value is above the upper thre
V1 Binancash - Futures Strategy 1M Candles is an intraday trading strategy designed for 1-minute cryptocurrency futures charts. It calculates dynamic support and resistance levels using pivot highs and lows, combined with a custom smoothed trend filter and a 3
This indicator draws a doubled numbered Square of Nine from a user-selected high or low. It fills cells by a chosen price step across several rotations and can show bar counts from that pivot. Pivot highs and lows that form after the anchor are marked on the c
30 min Pivot is an overlay indicator that plots an exponential moving average (EMA) calculated from a specified timeframe (default 30 minutes) and flags specific multi-bar candle setups. It checks the relative distance between price and the higher-timeframe EM
The Average Day Range indicator calculates market volatility by taking the difference between the simple moving averages of high and low prices over a specified lookback period. Plotted in a separate pane, it gives traders a measure of average price movement t
This indicator detects swing highs and lows to plot bull and bear trendlines directly on the main price chart. It projects valid trendlines forward while applying rules for maximum slope, bar span, and average bar range tolerance to filter out invalid or broke
Harness Trivial SMA is a basic test indicator that calculates and plots a Simple Moving Average (SMA) of the closing price over a user-defined length. Plotted in a separate pane below the chart, it provides a straightforward visual representation of average pr
The VWMA Band indicator calculates volume-weighted moving averages based on high, low, median (HL2), and close prices over a specified period. It plots an upper band, lower band, median line, and close VWMA directly on the main price chart with a translucent c
This strategy implements an ADX trend-following system with moving average pullbacks. It identifies strong market momentum when the Average Directional Index exceeds a chosen threshold, then monitors price retests of an exponential or simple moving average. Lo
This indicator modifies Perry Kaufman's Adaptive Moving Average by integrating John Ehlers' dominant cycle detection. It filters the selected price source with a high-pass filter and a super smoother, then evaluates Pearson correlation across multiple lags to
This 1-minute strategy combines the Relative Strength Index (RSI), Bollinger Bands, and Bollinger Band Width to trigger trades. It plots the RSI curve and custom buy or sell threshold lines in a separate pane. Long entries trigger when price and RSI drop below
This strategy implements Turtle System 1 fast trend following directly on the price chart. It opens long or short positions upon 20-bar Donchian channel breakouts and exits on opposing 10-bar Donchian extremes. Position sizing is calculated dynamically from AT
Trend Compass 4H plots a multi-EMA ribbon (10/21/50) along with higher-timeframe reference levels on the price chart. It classifies trend phase into six states and calculates a composite weighted trend score. The script detects RSI and MACD divergences, analyz
Divergenced B004 is a Pine Script strategy that plots on the price chart and looks for divergences in the Squeeze Momentum Indicator. It shorts when a green-section squeeze value falls while price rises, and longs when a red-section squeeze value rises while p
Calculates the time elapsed between consecutive bars to measure market speed and volatility, designed primarily for Renko chart blocks where bar duration varies. In Momentum mode, it contrasts the current duration against a 100-period moving average baseline,
WE-Angels is an overlay indicator that plots optional exponential and simple moving averages, including 111-day and yearly angel averages, on the price chart. It can show Pi Cycle and inverse Pi Cycle crosses with labels, a dollar-cost averaging view, long or
This indicator draws horizontal open-price levels on the price chart for the current day. It plots a New York midnight open, the daily standard open, a Tuesday 04:00 entry, and a Monday 04:00 OSOK entry, each as a time-anchored line with an optional price labe
The Candle Story Engine evaluates multi-candle price action dynamics, analyzing pressure, sequence persistence, deceleration, and structural exhaustion across a customizable lookback window. Incorporating optional trend context via exponential moving averages,
This separate-pane indicator calculates multi-period volatility regimes by analyzing fast, medium, and slow Average True Range (ATR) metrics alongside volume integration, gap adjustments, and session weighting. It visualizes volatility states using a heat map
This indicator estimates net buying pressure from footprint buy and sell volume and plots it in a separate pane. It subtracts sell volume from buy volume, then accumulates that difference as net volume or as dollar volume using a user-selected price. A third m
Calculates the Parabolic Stop and Reverse (SAR) indicator paired with an optional Exponential Moving Average (EMA) trend filter. A long position is triggered when price crosses above the SAR while remaining above the trend EMA. A short position is entered when
This indicator draws a currency-strength view in a separate pane. It requests the current close and the previous daily close for major forex pairs plus gold crosses, using a broker prefix of OANDA, FX, or FOREXCOM. The pair-set input switches between an overal
This indicator plots a multi-timeframe Moving Average Convergence Divergence (MACD) oscillator with a signal line and customizable histogram in a separate pane. It features a four-color histogram that reflects whether momentum is accelerating or decelerating a
The Signals MA indicator calculates a moving average of the close price using either SMA or EMA based on a user-defined length. It plots this average on the price chart. Breakout signals occur when the close crosses above the moving average from below, and bre
Multi-Ticker Anchored Candles overlays up to three user-selected symbols on the price chart as candles anchored to a chosen period, which defaults to the daily timeframe. Each symbol has its own color and an on or off toggle. Optional drawings mark session bre
This strategy generates trading signals based on a triple confluence of Exponential Moving Averages (EMA), the Relative Strength Index (RSI), and MACD histogram momentum. Long entries require a fast EMA above a slow EMA, price above the fast EMA, RSI between 5
Calculates relative strength index values across up to four configurable timeframes to compare short-term and long-term momentum. Generates long and short entry signals when lower-timeframe RSI crosses key thresholds, conditioned on higher-timeframe RSI levels
This indicator plots On Balance Volume in a separate pane and can overlay a smoothing average of that series. By default it draws a 20-period SMA of OBV with Bollinger Bands set two standard deviations away, plus a fixed 10-period EMA of OBV. A fill between th
This strategy calculates the full Ichimoku Kinko Hyo indicator system, plotting the Tenkan-sen, Kijun-sen, Senkou Spans, Chikou Span, and Kumo Cloud directly on the price chart. It enters long positions when the Tenkan-sen is above the Kijun-sen while price tr
This indicator draws a volume profile on the price chart from recent bars. It accumulates volume until a circulation threshold is reached, then splits that price range into histogram rows and assigns each bar's volume to buy and sell boxes by where the close s
The Capital41 Liquidity Sweep Simple indicator detects liquidity sweeps where price breaks a recent swing high or low then closes back inside the range with volume confirmation. It plots triangular shapes below the bar for bullish sweeps and above for bearish
Institutional CRT State Engine is an overlay indicator that combines Direction of Liquidity (DOL) bias detection with Candle Range Theory (CRT) pattern recognition. It monitors key institutional session windows—including CBDR, Asia, London, London Lunch, and N
Indicatorv6SMC / ICT / price actionSessions & time
TheStrat Suite is a multi-timeframe price-action indicator that implements Rob Smith's TheStrat on the price chart. It classifies bars, marks inside bars, hammers, shooters, Failed 2s and outside bars, and plots magnitude and exhaustion targets plus stop level
Calculates an adaptive tracking model using a Mechanical Feedback Price Model to measure price innovations. It evaluates positive and negative deviations through peak decay and saturation functions to determine dynamic intensity levels. It applies these intens
This indicator calculates and plots dynamic SuperTrend volatility bands around median price to identify market trend direction. It signals bullish conditions when price stays above the green support line and bearish conditions when price falls below the red re
This indicator plots RSI(14) on the price chart along with regular and hidden bullish and bearish divergences. It detects divergences by comparing price highs and lows to RSI values using pivot points with configurable lookback bars. Signals appear as triangle
This indicator plots 50-period and 200-period exponential moving averages on the price chart while calculating money flow index and WaveTrend oscillators in the background. Long signals trigger when price trends above the 200 EMA with a recent 50 EMA pullback,
Elton's Screener is an indicator that runs in a separate pane and scores one of twenty selectable strategies, or auto-selects a route from the symbol type. It filters signals by a minimum confidence level and a higher-timeframe EMA trend alignment. ATR multipl
The Relative Liquidity Index measures market volatility and liquidity dynamics by calculating the Relative Strength Index (RSI) of the Average True Range (ATR). Displayed in a separate pane, it highlights low and high liquidity states based on configurable thr
This strategy trades exponential moving average crossovers tailored for the German DAX market during Xetra session hours. It enters long positions on bullish EMA crossovers and short positions on bearish crossovers, provided the bar falls within 09:00 to 17:30
Multi-Timeframe Trend Analyzer [Lab] is an overlay indicator that evaluates market trends across five customizable timeframes using a selected detection method. Traders can determine trend direction using Moving Average Crossovers, Supertrend, EMA Slope, or Pr
This indicator detects the bullish Upside Tasuki Gap candlestick pattern on the price chart. It looks for a long green candle, a smaller gapped green candle, and a red candle that closes inside the gap without filling it, while an optional trend filter require
NYSA-Trend Kanali combines Parabolic SAR, higher-timeframe exponential moving averages, and weekly MACD signals on the price chart. It calculates Parabolic SAR to highlight trend shifts with visual buy and sell labels, plots weekly 8-period and 13-period EMAs,
This indicator draws an on-screen dashboard table tracking market structure and technical metrics across higher timeframes such as 2-hour and 4-hour intervals. It uses higher-timeframe data to evaluate swing highs, swing lows, RSI levels, support and resistanc
This indicator calculates and plots the Fisher Transform oscillator alongside its trigger line in a separate pane to highlight extreme price moves and potential reversals. It identifies bullish signals when the Fisher line crosses above its trigger line from o
This indicator implements a modified Guppy Multiple Moving Average system based on Fibonacci periods (3, 13, 34, 55, and 144 EMAs) combined with Granville rules. It detects reset crossover signals when the 3 EMA crosses the 55 EMA with price confirmation, as w
This indicator detects price movements over a configurable number of lookback bars based on percentage or price distance thresholds. It plots buy and sell signals directly on the price chart and can invert signals for counter-trend entries. Users can filter si
The RSI Alert Strategy with Webhook Integration is a Pine Script v5 strategy that plots RSI and EMA on the price chart to generate trading signals. It enters long positions when RSI drops below oversold levels while above the EMA and short positions when RSI r
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.