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.
UMURLU-5-8-13-X overlays three exponential moving averages (5, 8, and 13 EMAs) alongside dual Bollinger Bands with narrow and wide standard deviation multipliers directly on the price chart. It generates visual signal labels on the chart when the 5-period EMA
The SnagProfit Trending 1H indicator calculates EMA crossovers using periods 5, 10 and 20 on the close price to identify bullish and bearish trend conditions. It draws a table panel on the chart that labels long trend status as OK CALL or NO CALL. The indicato
This indicator evaluates multiple technical trading strategies and strategy combinations across various timeframes to identify the top-performing setup for Turkish stocks and other assets. Depending on whether the active chart is intraday or higher timeframe,
This indicator plots five exponential moving averages of Fibonacci lengths on the price chart: 3 and 13 as fast lines, 34 and 55 as slow lines, and 144 as a filter. They are drawn in red, orange, blue, purple, and black. The visible code also counts how many o
This indicator estimates buying and selling volume from each bar's range and candle body, then plots both in a separate pane. It splits the bar's volume using the upper wick, lower wick, and body size, assigning more of the volume to the close direction. Buy v
This indicator is a debugging example that overlays a scaled close-to-SMA ratio on the price chart. It divides close by a simple moving average, takes the natural log, and multiplies by 100. A triangle appears below the bar when that scaled value exceeds the t
This indicator plots a composite momentum oscillator in a separate pane, featuring a hyper wave calculation and an integrated smart money flow oscillator. It detects both bullish and bearish divergences using an adjustable sensitivity threshold. Additional vis
Identifies continuation trade setups based on Beat the Market Maker (BTMM) second-leg patterns directly on the price chart. It defines trading session phases across Asian, London, and New York sessions, filters impulse legs using fast and slow exponential movi
Indicatorv5SMC / ICT / price actionSessions & time
This Pine Script v5 indicator detects spinning top candlestick patterns by comparing the real body size to user-defined min and max thresholds as percentages of the candle's range. It signals bullish spinning tops with a white arrow below the bar and bearish o
This strategy is written for NVIDIA stock and overlays the price chart. It opens a long when price crosses above an exponential moving average, the rate of change is positive, and the average true range exceeds the previous daily ATR. It closes that long when
The Currency Strength Chart calculates and plots relative currency strength values for major forex currencies in a separate pane. Calculations can be based on raw price action, RSI, CCI, or Stochastic oscillators, smoothed with various moving average types. Us
Calculates and plots Naked Point of Control levels directly on the price chart using order flow footprint data. It identifies the price row with the highest traded volume either per individual candle or aggregated across an entire session. Levels extend horizo
Sniper is a custom oscillator indicator that derives Bullish and Bearish lines from close and open prices using a smoothing factor based on trend length. These lines feed into a signal line calculated as EMA over the signal length. The indicator plots Bullish
This Pine Script library exports multiple technical analysis functions for use in TradingView indicators and strategies. It includes helper functions for moving averages such as dema, ema2, t3, tema, and rma2, oscillators like macd2, stochFull, stochRsi, and p
This strategy overlays XAUUSD and combines stochastic, RSI, and three EMAs with an ATR-based risk model. Confirm entries can require an M15 overbought or oversold trigger plus a rejection wick, and they stay near Fibonacci or EMA zones without chasing far from
This strategy combines a WaveTrend oscillator with a dual-period RSI differential to generate trend-following entries in a separate indicator pane. It calculates fast and slow RSI values, alongside WaveTrend channel lines and overbought or oversold thresholds.
EMD Trend calculates trend direction by combining moving averages with an exponential moving deviation filter. Rendered as an overlay on the main price chart, it generates visual long and short trend signals and offers optional bar coloring. It includes an on-
This indicator calculates the Bollinger Band Width Percentile (BBWP) by evaluating the current Bollinger Band width against historical values over a designated lookback window. It plots the resulting percentile curve in a separate pane with a percentage scale.
This strategy enters trades based on consecutive candle directions relative to a chosen moving average filter. It triggers a long entry when both the current and previous candles close bullish above the moving average, and a short entry when both candles close
Quick Stats displays key trading metrics directly on the price chart overlay. It calculates Mark Minervini's Trend Template rules by scoring moving average alignments (50, 150, and 200 SMAs), 200 SMA slope, and 52-week high/low proximities. Additionally, it co
MomentumSignals is a Pine Script utility library designed to detect changes in momentum across technical series such as moving averages and oscillator histograms. It offers helper functions that quantize directional changes, detect reversal signals, and comput
This indicator calculates an Exponential Moving Average (EMA) and plots it directly on the main price chart. It dynamically changes the color of the EMA line based on the relationship between the current closing price and the moving average value. The line tur
Plots higher-timeframe candlestick overlays and pivot points directly on the price chart. It draws HTF candle bodies and wicks using boxes and lines across custom or auto-selected higher timeframes. The indicator can also compute and display traditional pivot
This indicator plots a custom ZigZag line connecting extreme high and low points on the price chart whenever price reverses by more than a specified percentage. It uses arrays to track these points based on close prices and a chosen lookback length. The script
This strategy calculates support and resistance lines by identifying pivot highs and pivot lows over configurable left and right lookback periods. It computes linear slope and intercept values to project dynamic trend lines on the main price chart. Optional ta
An indicator that detects market structure and draws Fibonacci retracements only after an impulse breaks structure and a pullback pivot forms. Settings control pivot lengths, minimum displacement in ATR, an invalidation buffer, maximum leg age and an optional
A separate-pane indicator, short title Vol MACD, that applies the MACD calculation to volume instead of price. It takes a fast and a slow moving average of volume, subtracts them to form the MACD line, smooths that with a signal average and plots the differenc
This indicator identifies market structure by tracking confirmed swing highs and lows using pivot points. It detects breaks of structure (BOS) and changes of character (CHoCH) when the bar close breaches the most recent unbroken swing level. Visual outputs on
This indicator plots HTF SMC confluence signals in a separate pane. It visualizes ATR regime states from compression through expansion and exhaustion using custom colors. Squeeze markers indicate on or released states while reversal context displays scores for
Drawing Chartpoint Trendline is a strategy that calculates a 20-period simple moving average to dynamically construct a trendline using chart points between past SMA values. It extracts the projected line price at the previous bar as a reference level on the p
P Syn Switch is an indicator that selects price values based on the mode input using a switch function. For mode 'a' it calculates and plots close, for 'b' it uses open, and for 'c' it calculates hl2. It also plots v2 to indicate candle direction as 1 for bull
This price-chart strategy seeks Bitcoin mean-reversion entries. It buys when RSI is below its oversold level, Stochastic K is oversold, and price is above ninety percent of a 200-period EMA. It sells short when RSI and Stochastic are overbought and price is be
An indicator meant for a 5-minute chart that recomputes a simplified 15-minute break of session delta levels, then watches a retest of the broken level within a set number of hours and flags a trigger candle, optionally needing delta confirmation. It also show
DEPV2 C1c DEVISSO KOLAYLIK calculates a Devisso ratio and ease score for five selectable symbols using daily higher-timeframe data. It computes each symbol's historical ratio percentile over a configurable lookback window alongside a cross-sectional percentile
A long-only strategy meant for a one-minute chart that tracks the previous day's low as a liquidity level. When price trades below it and a green candle closes back above, a stop-buy order is placed just above that candle's high. The stop sits under the signal
An overlay indicator that plots opening range levels and a 9 and 21 EMA cross for an index chart, and follows four option symbols against the third resistance and support levels. Cross flags and times for each option are stored and shown in a table that can be
Synthetic test fixture for a strategy-description simulator, drawn in a separate pane. Instead of chart prices it uses a built-in array of four flat artificial candles, built to test simultaneous entry signals, so it runs the same on any chart. The comments st
This overlay indicator reflects each candle across two user-selected price levels and plots those mirrored candles in purple and blue on the price chart. It scans highs and lows over a configurable period to mark up and down fractals, keeping only the last two
This trading strategy generates scalping entries by combining exponential moving averages with momentum and trend filters. It triggers long or short trades when the short EMA crosses the long EMA, provided RSI, MACD, ADX trend strength, and Stochastic levels c
A separate-pane momentum indicator by Lyro RS that computes rate of change over an adjustable length and passes it through three EMA stages, described as instant, reactive and committed. A trend is flagged only when all three stages agree. It can show signals
Plots volume order block zones on the price chart with three tiers of asymmetric buy and sell volume signals and a signal cooldown. High-volume proximity markers fire when the rolling highest-volume candle and a tier signal occur within a set number of bars of
This strategy trades Bitcoin mean reversion on the one-minute chart. It enters at Bollinger Band extremes when a short RSI is stretched, then requires ranging ADX on the one- and five-minute charts, a neutral five-minute RSI, and a flat five-minute EMA. Wick s
An indicator that flags paint bars, meaning candles whose low is above the high from two bars earlier or whose high is below the low from two bars earlier. Signals are limited to up to three user-defined sessions on weekdays, with a daily close check at 1 PM P
Combines three normalised measures into a dashboard drawn over the price chart. A smart-money catalyst score flags candles whose body-weighted volume has an unusually high Z-score and keeps a decaying memory of them. A retail validation index divides average v
This overlay indicator calculates intraday standard deviation sigma bands using live implied volatility from VIX or a manual percentage input. Designed for index options credit spread placement, it projects 1s, 2s, and 3s expected move boundaries anchored to e
A strategy that tests trailing stop methods on a single mock trade. It opens one long or short position at a chosen start time and then trails a stop behind price. The trail can use ATR with a multiplier or a percentage, anchored to swing lows and highs, close
This indicator computes relative strength by subtracting KLCI index returns from stock returns over a user-defined lookback period. It plots the resulting RS percentage in a separate pane using green for positive values and red for negative values. The default
Quad Rotation 60 10 is the slowest pane of a four-stochastic setup with periods 9, 14, 40 and 60. It plots the 60/10 stochastic K and D lines in a separate pane with oversold and overbought zones, K/D cross triangles inside extreme zones, and a convergence ban
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.