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.
TN Sentiment Macro Sovereign is a trend-following strategy that combines technical moving average crossovers with external macro sentiment data. It calculates 12-period and 26-period Exponential Moving Averages alongside a smoothed sentiment metric fetched via
A Pine Script v5 indicator that approximates a Tom DeMark style count on the price chart. It compares each bar with the one four bars earlier, keeps a running count over a lookback window, and plots a green up triangle at nine and a red down triangle at thirte
Experimental overlay that marks the day's high and low and the session open on the price chart, with lines, labels and background shading. It includes special handling for Moscow Exchange futures sessions (main and evening) and uses lower-timeframe requests to
A Pine v4 strategy that plots a 41-period exponential moving average of the close in orange on the price chart. It goes long when a green candle opens above the average and short when a red candle opens below it, closing each position when the opposite signal
Moving Average Channel plots separate simple moving averages for upper and lower bands on the price chart. It fills the space between bands with semi-transparent color and colors bars green above the upper band, red below the lower band, or gray in between. Us
This strategy implements a trend-following execution model based on the classic Supertrend indicator. When the ATR-derived Supertrend flips to a bullish state, the strategy opens a long position. The initial stop loss is determined by the lowest price over a u
This indicator plots historical buy and sell transactions executed by ARK Invest for Cloudera directly on the price chart. It renders visual labels at specific bar timestamps to show transaction dates and trade counts across tracked funds. The primary setting
This utility indicator calculates and plots the total number of days in a specified calendar month and year. It plots a constant numeric value in a separate pane based on user-defined inputs for the year and month. The underlying function bounds the month inpu
This strategy calculates two variations of the Hull Moving Average, optionally smoothed with a Kalman filter algorithm. It plots both lines directly on the price chart and fills the gap between them to visualize trend direction. Signals are triggered either by
This overlay strategy plots a short Bollinger Band and enters long when the close crosses above the lower band while a 14-period SMA is above a 42-period SMA. It enters short when the close crosses below that lower band while the faster SMA is below the slower
This indicator plots John Ehlers' Cyber Cycle in a separate pane. It smooths the chosen source with a four-bar FIR filter, then applies a two-pole high-pass IIR filter to isolate the dominant cycle. A one-bar delayed trigger line supports crossover reading aga
This overlay indicator shows how a value computed inside a function can be read outside it. A one-element float array stores the current average of high, low, close, and the previous average, falling back to close when that average is missing. The function the
This indicator calculates the arithmetic average of the open, high, and low prices for every bar and plots the resulting series directly on the main price chart. The calculation uses constant multiplication rather than division to optimize execution speed. It
This indicator plots multi-timeframe swing highs and lows on the price chart. It finds pivots with Bill Williams fractals or, when the filter is on, a stricter regular fractal, then stores the latest high and low. Users can show daily, four-hour, one-hour, 30-
This indicator detects a bullish kicking candlestick pattern on the price chart. It marks a two-candle sequence in which the prior candle is a black marubozu and the current candle is a white marubozu that gaps above the prior high. A K label is drawn below th
This strategy plots a trend ribbon and colored background on the price chart using moving averages calculated across price highs and lows. It generates trade signals to automate orders through Zignaly webhooks or email alerts. Users can configure the moving av
This indicator measures the relative strength of a chart symbol compared to a benchmark symbol, such as SPY or QQQ. It plots either a raw relative strength ratio or a Mansfield RS oscillator in a separate pane. Confluence signals trigger when relative strength
Predictive Moving Average Convergence Divergence - Ryder calculates a classic MACD oscillator with customizable fast, slow, and signal lengths. In addition to plotting the standard MACD line, signal line, and histogram in a separate pane, it calculates forward
This indicator implements an institutional candle range theory (CRT) and Smart Money Concepts framework on the price chart. It detects internal and swing order blocks, market structure transitions, change in structure direction, liquidity sweeps, and session p
This indicator combines a standard relative strength index (RSI) with a Heikin Ashi moving average trend visualization in a separate pane. It calculates the RSI along with a customizable moving average overlay supporting SMA, EMA, SMMA, WMA, and VWMA types. Ad
This indicator estimates a normal-inverse Gaussian distribution from recent log returns and approximates the probability of price falling in each return bin. It measures mean, standard deviation, skewness, and kurtosis over a rolling window, then sets the bin
This script calculates and plots a Simple Moving Average on the price chart. It uses a custom function with circular buffer and running sum for efficient computation of the SMA value from the chosen source, defaulting to close prices. The primary setting allow
This indicator demonstrates how to configure and separate multiple alert triggers using input toggles. It calculates a 7-period RSI to identify overbought and oversold conditions, alongside candlestick confirmations when price closes against the extreme. Signa
This strategy uses lower-timeframe data to probe numeric array reductions in Pine Script. On a 15-minute chart it fetches 15 one-minute closes using request.security_lower_tf and sums them to create a synthetic intra-bar momentum. It plots EMAs on the price ch
This indicator plots an exponential moving average of the close price in a separate pane. The average length is not a user setting. On each bar it equals the bar index modulo ten, plus one, so the length cycles through the integers from one to ten. Because the
This indicator plots open, high, low, and close for eleven user-selected symbols in a separate pane, using the chart timeframe. The chart symbol supplies the first series, while the others are requested from Binance USDT perpetual pairs by default. Symbol inpu
This indicator plots a dynamic base curve and its forward-shifted version on the price chart. The base curve is calculated as a moving average of close prices, or the highest high, or the lowest low over a shift length determined by the time intervals t1 and t
A trend indicator drawn on the price chart that plots EMA 9, 21, 50 and SMA 200 with shaded clouds between them. Buy and sell conditions are filtered by RSI thresholds, a minimum and rising ADX, relative volume, and a smart range filter that skips small or cho
A tick-chart-safe version of a volume pattern indicator that draws toggleable signals on the price chart. It includes relative volume patterns such as SAAB, Kratos, Grand Slam, Hiroshima and Nagasaki, long and short setups, and high-volume markers from 150 to
TN Session Sovereign V6 is a session breakout strategy designed for Pine Script v6. It calculates the high and low range established during the Asia session and monitors breakouts during the London session using lower-timeframe data. Entries trigger when price
A Pine Script v5 indicator that draws bullish and bearish order block zones on the price chart, with volume information shown inside each zone. Swing length sets how pivots are found, zones can be combined, sized with a maximum ATR multiplier and limited to a
A Pine Script v5 library whose functions build arrays of values that meet a condition. One function collects the latest values where a condition is true since a reset condition, optionally keeping only a set number of values, and another keeps values within a
A Pine v4 strategy that plots a 36-period exponential moving average of the close in orange on the price chart. It goes long when a green candle opens above the average and short when a red candle opens below it, closing each position when the opposite signal
This indicator plots the Williams Vix Fix and an inverted counterpart in a separate pane. It measures how far the low sits below the highest close over a lookback, and the inverse measures how far the high sits above the lowest close. Each series has a moving-
This indicator plots historical buy and sell transactions executed by ARK Invest for Cellectis S.A. (CLLS) directly on the price chart. It renders green upward labels below price bars for purchase dates and red downward labels above price bars for sales dates,
This overlay indicator plots a simple moving average of close as a center line and two pairs of bands around it. Width equals the standard deviation of close times the base-ten log of the ratio of the powered signal to the powered deviation. A second pair keep
This indicator overlays two Hull Moving Average variations smoothed with an optional Kalman filter directly on the price chart. It fills the space between the two curves with dynamic trend colors and generates buy and sell signal labels when the curves cross.
This strategy builds upon the Big Snapper system by combining trend-following moving averages, Chaikin Volatility, and volume filtering to generate trade signals directly on the main chart. Long and short entries trigger when Snapper signals align with medium
This indicator calculates the Ehlers Decycler Oscillator as the difference between two 2-pole Butterworth high-pass filters applied to a chosen price source. The long-period filter result is subtracted from the short-period filter result, and the oscillator is
This educational example script demonstrates how to debug custom Pine Script functions by returning intermediate internal variables alongside main outputs using tuple destructuring. It defines a custom function that calculates an instant average price from the
This indicator calculates J. Welles Wilder's classic Parabolic Stop and Reverse (PSAR) trailing stop levels to highlight trend direction and potential market reversals. It updates an acceleration factor whenever price makes new extreme highs or lows, bound by
This indicator tracks and plots high, low, and opening levels for major trading sessions directly on the price chart. It calculates price boundaries across defined periods including London, New York, Asia, and New York afternoon sessions. The tool does not gen
The Klinger Oscillator evaluates long-term volume flow trends while staying responsive to short-term price movements. It calculates signed volume by determining whether the typical price (HLC3) increased or decreased relative to the previous bar. The main osci
This strategy uses Noro TrendRibbon direction changes to decide long or short bias. It builds a corridor from recent high and low prices, opening a long below that corridor while longing and a short above it while shorting, with the entry tied to a percentage
This strategy identifies reversal opportunities based on liquidity sweeps and multi-gate confluence scoring. It evaluates setups using mandatory conditions such as swing sweeps, body and ATR filters, and dual EMA higher-timeframe trend alignment, alongside opt
Range Oscillator (Zeiierman) plots a range-based oscillator in a separate pane. It qualifies a range box from a minimum number of bars and sizes that box vertically with an ATR width multiplier. A heatmap splits the recent high-low span into horizontal levels
This indicator overlays an institutional Candle Range Theory (CRT) framework directly on the price chart. It analyzes session states across New York time models (1 AM, 5 AM, and 9 AM), detects market structure breaks, identifies order blocks, and tracks liquid
Indicatorv5SMC / ICT / price actionSessions & time
The Heikin Ashi Buy Sell Arrows indicator calculates custom Heikin-Ashi values on the current chart to identify potential trend reversals. A buy signal is generated when a Heikin-Ashi candle forms with no lower wick following a sell sequence, while a sell sign
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.