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 strategy calculates standard Bollinger Bands using a Simple Moving Average and standard deviation multiplier to identify entry conditions. It triggers pending stop orders and outputs formatted alert messages compatible with TradingConnector for automated
This indicator estimates the dominant cycle period of a price series using John Ehlers' homodyne discriminator. It smooths the source, builds in-phase and quadrature components, and converts the phase angle into a cycle length. The result is rate-limited by ab
This script illustrates how to request non-standard chart data within Pine Script v4. It creates a Renko ticker identifier using a 10-period ATR calculation for brick size, requests the low price of the Renko bars via the security function, and plots the resul
Calculates the detrended synthetic price using dual Super Smoother Filters (SSF) derived from a user-defined dominant cycle period. The indicator computes a fast SSF based on a quarter-cycle period and a slow SSF based on a half-cycle period, then plots the di
Morning Star - Bullish is a price chart indicator that automatically identifies three-candle bullish Morning Star candlestick patterns. It filters pattern occurrences using optional trend context defined by 50-period or 200-period simple moving averages. When
Ruckard Random A004 is a strategy that executes entries in a random manner to evaluate the effect of risk management rules on trading results. It controls positions using customizable stop loss, take profit, trailing stops, and break-even settings, alongside o
This indicator quantifies the risk of a prevailing market structure break by combining trend context, structure, and momentum into a composite 0–100 risk score. It plots an RSI oscillator with momentum divergence lines in a separate pane while projecting key b
Trend Line Methods draws optional trend geometry on the price chart. The pivot span method stores recent pivot highs and lows using left and right confirmation bars, a pivot count, and a lookback length, then plots a high trend line and a low trend line with a
This indicator is a manual trading companion that marks opening-range breakouts on the price chart. It builds a session range for New York, London, Asia, custom times, or preset windows, then flags breakouts by close, wick, or body. Signals can require a fair
This indicator draws horizontal price levels and bands anchored to recent price points directly on the main chart. It calculates a central midline along with inner and outer symmetrical boundary lines offset by specified multiples of the instrument's minimum t
This indicator draws an Average Volume Profile on the price chart. It calculates the profile based on average volume across the selected timeframe and sensitivity setting. The Point of Control appears in bright blue while the Value Area High and Low display in
This indicator measures the speed at which volume changes over a specified number of periods. It calculates either the simple point difference or the percentage change between current volume and historical volume from a set lookback period. The resulting line
This strategy computes a session-gated RSI value using a deep history reference of 500 bars on a source that is NA outside the session window. It signals long entries on RSI crossover above 30 with valid session and closes positions on crossover below 70. The
This strategy fixture cycles every forty bars and places timed long and short entries, closes, and raw orders to exercise TradingView pyramiding and FIFO fill rules. It opens up to three long entries, ignores a fourth, closes by identifier, reduces size with a
This indicator computes a confluence score from Gann angles and Fibonacci retracements anchored to a user base price, step size, swing low and high. It layers in RSI for oversold conditions and Bollinger Bands distance for additional context. The score increme
An overlay indicator that prints buy, sell and exit signals only on confirmed bars. It extends the v7 scoring with hysteresis for range and trend states, so one borderline candle cannot flip the regime, and with a pause after abnormal gaps, shock candles and e
Second revision of the bearish half of a split HV+D and PBJ indicator, drawn on the price chart. It plots 36 sell-side markers built from high-volume candles, standard deviation displacement and a PBJ trend filter. Visibility toggles control patterns such as D
This overlay strategy builds long and short signals from a fast EMA crossing a slow EMA. Optional filters require elevated volume versus a volume average, a set number of confirmation bars, alignment with a higher-timeframe EMA, and a minimum bar move versus A
An overlay that places up to ten percentage price levels above and below the last close, or the current open, and triggers alerts when price crosses them. Levels can be drawn as plots or price lines, colored by position relative to price, dimmed or hidden once
An indicator on the price chart that plots a trailing stop line offset from a chosen source by a multiple of the Average True Range. Settings set the source, the ATR length and the ATR factor. The line can be drawn as a line, circles, diamonds or arrows in one
This overlay indicator marks historical ARK Invest purchases and sales of Disney on the price chart. It does not calculate an oscillator or generate live signals. When the ETF input is ALL, it places green buy labels below bars and red sell labels above bars o
Standardized Trend Map calculates series momentum relative to active price range across 40 distinct lookback periods ranging from 2 to 80 bars on an exponential moving average source. Each standardized calculation rounds to an integer values of -1, 0, or 1 to
This indicator evaluates Relative Strength Index (RSI) and Stochastic RSI conditions across eight customizable higher timeframes simultaneously. For each timeframe, ranging from 5 minutes to 12 hours, it checks whether RSI and Stochastic %K or %D cross specifi
This strategy initiates momentum breakout positions when the Relative Strength Index reaches extreme levels and Bollinger Band standard deviation is expanding. Long trades open when RSI is above the overbought threshold and bands are not contracting, while sho
The Ehlers Laguerre Filter is a smoothing indicator designed by John F. Ehlers that utilizes a four-element cascaded infinite impulse response filter. It applies time-warped Laguerre polynomials to the chosen price source to achieve low-lag trend filtering. Tr
This indicator demonstrates how to request and display non-standard chart data in Pine Script v4. It builds a three-line break ticker identifier for the current instrument and fetches the line break close price using a security call at the current chart resolu
Calculates the rolling Z-score of an input price series over a specified lookback window. It uses a sliding window array to maintain rolling sums and calculate the sample mean and sample standard deviation incrementally, accounting for missing values. The resu
This indicator plots a simple moving average of a chosen price source on the price chart. Length, source, and a horizontal offset control the main blue line. A second smoothing line applies SMA, EMA, RMA, WMA, or VWMA to that average, with its own length, but
This strategy evaluates moving average squeezes and Squeeze Momentum section height changes to identify potential entry signals. It opens trades based on momentum comparisons across moving average thresholds. The script features customizable risk management co
This indicator identifies support and resistance levels on the price chart using an integrated detector engine. It combines pivot clusters, multiple price tests, supply and demand bases, order blocks, fair value gaps, and equal high or low liquidity. Detected
This overlay indicator calculates a WaveTrend oscillator from the typical price using two exponential averages and a short simple average. It marks a long when the fast and slow lines cross bullishly below the oversold level, and a short when they cross bearis
This strategy backtests opening-range breakouts on the price chart for New York, London, Asia, or a custom session. Simple mode follows the opening-range direction when relative volume is high enough. ICT mode can require a fair value gap, displacement, and an
This indicator plots horizontal line bands on the price chart using lower timeframe data. It requests 1-minute high, low, and close values from security to calculate anchor points. Horizontal lines are drawn at specific levels with options for multiple lines i
This indicator estimates Black-Scholes call and put prices and selected Greek values from the chart's spot price. It runs only on the daily timeframe and overlays its output on the price chart. Users set the strike, expiry date and time, implied volatility, an
This indicator calculates and plots the Volume Weighted Accumulation/Distribution (VWAD) in a separate pane. It enhances standard accumulation/distribution principles by weighting money flow volume according to the ratio of current volume against the rolling s
This strategy detects RSI momentum crossovers to enter long positions with fixed size. When holding a position it places a bracket exit using ATR-based stop and limit levels. The OCA name ensures any filled side cancels the other. The script verifies that stra
S_risk is a test strategy designed to demonstrate and verify Pine Script strategy risk management functions. It applies built-in risk rules to restrict order direction to long-only (converting short orders into position closures), caps maximum position sizes,
The script detects pivot highs and lows on the price chart using user-defined left and right bars. It projects future price paths with the golden ratio and calculates intersection points between paths. These intersections are stored in an array for geometric b
An overlay signal indicator that makes entries harder and reversals slower than earlier versions. Entries need a persistent confirmed trend, a fresh trigger, and price not too extended from the zero-lag line. Exits need opposite evidence and a minimum ATR retr
Bullish-only overlay indicator that plots 38 buy-side detection markers on the price chart. It combines high-volume candles, standard deviation displacement and a PBJ trend filter, with a revised price-spike relative volume ladder in this build. Toggles switch
This price-chart strategy enters long when a fast EMA crosses above a slow EMA and short when it crosses below, provided optional filters pass. Volume must exceed a multiple of its average, price must sit on the matching side of a higher-timeframe EMA, and the
This indicator uses the Goertzel algorithm to find a dominant cycle, then projects it as a sine wave to estimate future prices and dates. It also scans past bars for a similar pattern of set length within a lookback window. Results appear in a dashboard table
An indicator on the price chart that plots an ATR-based volatility stop taken from a higher timeframe. The higher timeframe is picked in discrete steps, as a multiple of the chart timeframe, or as a fixed timeframe. It can detect when chart bars breach the hig
This indicator plots historical ARK Invest purchase and sale marks for DocuSign on the price chart. Green labels below bars mark buys and red labels above bars mark sells, each tied to a fixed calendar date. A multiplier such as X2 or X3 shows how many selecte
This indicator calculates an outlier-filtered moving average based on statistical filtering concepts. It stores close prices in a rolling array over a user-defined length, calculates the mean and standard deviation, and excludes values falling within a specifi
Calculates an aggregated momentum curve by normalizing and averaging values from RSI, CCI, Center of Gravity, and price slope metrics. It plots this aggregated signal as a linear regression line alongside color-coded threshold columns in a separate pane to sig
This strategy buys when price breaks above the upper Bollinger Band and exits by trailing a stop on the lower band. Trades can execute on a wick or a candle close, and an optional fixed-percentage stop can set a tighter initial exit until the lower band catche
Calculates John Ehlers' Linear Predictive Filter based on the Griffiths Least Mean Squares adaptive predictor algorithm. It processes the source price through a roofing filter combining a highpass filter and SuperSmoother lowpass filter, followed by automatic
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.