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 indicator plots opening range breakout levels across multiple timeframes, including five, fifteen, thirty, and sixty minutes, directly on the price chart. It also displays the session open and overnight high and low levels. The script calculates an openin
This overlay indicator builds a dashboard that compares last price, last volume, average price, or average volume across selected crypto exchanges or forex brokers. The source input can follow the chart asset automatically or lock the list to exchanges or brok
This strategy implements Bill Williams' Awesome Oscillator (AO) calculated as the difference between two simple moving averages of the median price. It generates long and short entries using three classic signal triggers: zero-line crossovers, twin peaks diver
This multi-timeframe indicator detects and visualizes Smart Money Concepts (SMC) and ICT market structures on the price chart. It maps higher-timeframe dealing ranges, premium and discount zones, break of structure (BOS), change of character (CHoCH), order blo
Support and Resistance Signals MTF identifies dynamic support and resistance zones across selectable timeframes directly on the price chart. It detects manipulation and liquidity grab zones alongside swing highs and lows, generating visual signals for breakout
This indicator is an oscillator suite inspired by Market Cipher B and VuManChu Cipher B that plots in a separate pane. It combines a WaveTrend oscillator, a Money Flow Index (MFI) area, and an RSI indicator with automatic divergence detection. Visual signals h
Calculates the standard Stochastic Oscillator (%K and %D) based on price range over a user-defined period. The indicator plots the smoothed %K line and %D signal line in a separate pane along with upper and lower boundary levels set at 80 and 20. Users can adj
This long-only strategy calculates three exponential moving averages with lengths of 50, 100, and 150 periods, plotting them directly on the price chart. It also calculates a 14-period RSI and MACD. The strategy opens long positions when the moving averages al
This indicator plots currency strength values for EUR, USD, JPY, GBP, CHF, AUD, CAD, NZD and optionally XAU or XAG on a separate pane. It computes strength by comparing current pair closes to daily closes using broker-specific data from OANDA, FX or FOREXCOM.
This strategy plots a Tillson T3 average on the price chart and colors it by slope. It combines the T3 direction with a range filter, ADX, RSI, MACD and parabolic SAR to mark long and short entries, including optional unconfirmed signals. Positions can be rest
A minimal test script from a Pine Script linter project that checks indentation of a for loop body. It adds the closing prices of the previous seven bars in a loop and plots the total in a separate pane. There are no inputs and no signals, and it exists to exe
This indicator marks momentum breakouts on the price chart. A signal appears only when the bar makes a new high over the lookback, volume is at least a chosen multiple of the 20-bar average, the percentage change from the prior close meets a minimum, the close
This strategy identifies engulfing outside bar formations combined with fractal pivot conditions to generate intraday trading signals on index futures. Signals are filtered against a long-period Tillson T3 moving average, triggering long entries below the T3 l
This strategy calculates a StockCharts Technical Rank metric alongside an O'Neil-style relative strength rating, plotting both curves in a separate pane. It evaluates long-term, medium-term, and short-term exponential moving average deviations, rate-of-change
This script plots horizontal trade plan levels generated by an external trade assistant directly onto the price chart. It draws visual lines and text labels for entry, stop-loss, and up to two take-profit targets based on template parameters. Additionally, it
This indicator calculates the Average True Range over a user-defined lookback period and reference offset, displaying the resulting values alongside multiple selectable ATR multipliers. Instead of plotting line curves, it presents current volatility metrics in
The Average Sentiment Oscillator (ASO) measures bullish and bearish market sentiment by evaluating intrabar and group price ranges over a specified period. It plots bull and bear sentiment lines in a separate pane along with optional shifted lead or lag lines
The Breaker Block strategy identifies failed Smart Money Concepts (SMC) order blocks and trades their retests. It uses an ATR impulse condition to detect bullish and bearish order blocks, tracking when price breaks through them. When price retests a broken ord
A trend-following strategy that combines Bollinger Bands, RSI momentum, triple exponential moving average alignment, and volume filters directly on the price chart. It calculates standard Bollinger Bands, RSI, three EMAs (50, 100, 200), and customized ranging
Custom EMA Crossover Strategy calculates two Exponential Moving Averages to identify trend direction on the main price chart. It enters a long position when the fast EMA crosses above the slow EMA during a specified backtest period. The strategy closes the lon
This indicator detects 1v1 candle break setups for both long and short directions directly on the price chart. It identifies when the current candle closes beyond the open of the prior opposite-color candle, calculates a 1.618 Fibonacci extension target based
This indicator serves as a starter template calculating an exponential moving average (EMA) directly on the price chart. It detects price crossovers relative to the moving average and plots green triangle-up markers when price crosses above, or red triangle-do
This strategy plots DeMark pivot, support, and resistance levels on the price chart. It can keep several historical daily pivots, draw labels and prices, and mark crosses of the pivot. When strategy trading is enabled, it sizes trades from a risk-per-trade per
This strategy calculates the relative strength index of the closing price using a user-set length and prints that value in labels on the price chart. It also requests the close from a selectable higher timeframe, though the shown logic does not use that series
Calculates and plots dynamic support and resistance zones alongside manipulation zones directly on the price chart. It identifies price interactions around these levels, generating signals for bullish and bearish breakouts, tests, retests, and rejections. Sett
This strategy combines Ichimoku Kinko Hyo components, a Stochastic oscillator, and specific candlestick patterns to generate trade signals. It identifies Kumo twists and range breakouts while evaluating candle body shapes using Fibonacci threshold filters. Tra
This strategy evaluates market trend alignment across multiple timeframes by plotting a 90-period Simple Moving Average from the daily and 4-hour timeframes alongside a weekly VWAP directly on the price chart. Long trades are entered when the weekly VWAP cross
This indicator highlights key trading sessions directly on the price chart using colored boxes and text labels. It tracks up to three customizable sessions, defaulting to London, New York, and Tokyo, and can display opening ranges, session extensions, and Fibo
This Pine Script strategy combines Triple Exponential Moving Average, Bollinger Bands, and RSI to generate trading signals on the price chart. It plots the TEMA line along with the Bollinger Bands basis and outer bands. Long entries trigger when RSI crosses be
This strategy declares many input types and plots a simple moving average of the chosen source in a separate pane. Length sets the average period and source selects the price series. Other inputs cover a numeric threshold, an enable flag, a long or short side,
This indicator plots classic Bollinger Bands on the price chart. It calculates a simple moving average of the selected source over the chosen length, then places upper and lower bands at a multiple of the standard deviation around that basis. The basis, upper
Calculates price projection ranges over a specified horizon using Monte Carlo simulations via empirical bootstrap or parametric normal distributions. It plots projected price range boundaries directly on the price chart alongside a distribution profile histogr
Identifies and highlights recurring key market calendar dates directly on the price chart. It plots visual lines and labels for month, quarter, and year opens and closes, as well as monthly and quarterly options expiration (OPEX), OPEX week starts, earnings se
This indicator detects and visualizes Candle Range Theory (CRT) setups directly on the price chart across defined session windows. It tracks 1-hour and 4-hour key ranges for Asian, London, and New York sessions using higher-timeframe data. The script draws hor
Indicatorv6SMC / ICT / price actionSessions & time
MarketMerge Data Panel is a Pine Script indicator that overlays a customizable data panel on price charts to display company fundamentals. It shows ratings including composite, RS, EPS, SMR, Acc/Dis, P/E, ROE and Minervini trend template checks. The panel pres
Basic Long Entry System 2 is a long-only price-chart strategy that reads one-hour ADX and an exponential moving average, then looks for a 15-minute RSI pullback under the hourly RSI. It sets the hourly bias when ADX is above a threshold, declining, and price i
This strategy tracks momentum using an 8-period and 21-period Exponential Moving Average (EMA) crossover system. It enters long positions when the 8 EMA crosses above the 21 EMA and closes open long positions when the 8 EMA crosses below the 21 EMA. Each trade
This indicator estimates multi-horizon volatility in a separate pane. It requests the chart symbol's daily and 15-minute close, volume, time, and turnover, then walks backward until each window covers a target number of hours. It computes the variance and stan
Calculates and identifies local swing highs and swing lows on the main price chart based on a configurable lookback length. The indicator marks identified pivots with customizable labels and shapes, and can project horizontal lines across the chart from pivot
Edge 59 is a price-chart strategy that combines an ADX directional filter, a weighted moving average, and a trend-follower channel. The channel uses an exponential moving average of close, optionally smoothed by linear regression, and a percentage of a fixed 2
This indicator overlays three moving averages and a volume-weighted average price on the price chart. Each average can be shown or hidden, with default lengths of 20, 50 and 200. A single switch changes all three from simple to exponential averages. The VWAP u
This strategy plots the same-length exponential moving average on the chart and on two higher timeframes. It enters long when the chart average is above the first higher-timeframe average, that average is above the second, and price is above the chart average.
HTF Recon Probe v2 is a throwaway diagnostic indicator that checks higher-timeframe reconstruction for TheStrat bar classification. It requests monthly, quarterly, and yearly time, high, and low with lookahead enabled, and when the chart is above daily it load
This strategy calculates fast and slow exponential moving averages to execute trend-following trades based on CDC ActionZone logic. It colors price bars across six conditions depending on price position relative to the fast and slow EMAs. Entries occur when th
ChandraQuant Kala-Chakra is an overlay indicator for Indian equity indices. It calculates Sun and Moon ecliptic longitudes from Meeus periodic series, converts them to the sidereal zodiac with the Lahiri ayanamsa, and marks nakshatra changes, Purnima and Amava
RG Structure Break-Retest Strategy estimates pivot-constrained support and resistance trendlines and evaluates market regimes. It enters trades upon two-stage break and retest confirmation, scoring setup quality to dynamically scale position sizing between tie
This indicator plots price action tools directly on the main price chart. It shades candles according to Internal Bar Strength (IBS) and optional wick-length thresholds to differentiate trend bars from trading ranges. The script tracks session bar counts durin
TradeKit is an all-in-one technical analysis indicator that consolidates multiple chart overlays into a single script on the price chart. It plots up to four customizable moving averages (SMA, EMA, SMMA, WMA, or VWMA), Bollinger Bands, VWAP, and reference leve
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.