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.
A price-chart indicator by BigBeluga that draws a custom volatility-based Supertrend with an optional shaded trend cloud, and marks order blocks at confirmed swing pivots. Each block shows its buy and sell volume percentage. Blocks can be removed once price br
Overlays up to 46 buy and sell marker signals on the price chart, built from standard deviation displacement, pullback pockets, relative volume tiers and fair value gap structures. Inputs set three displacement multipliers, a first-bar-only switch and per-sign
A strategy that sorts the market into quiet, active and extreme regimes using ATR as a percentage of price against two thresholds. Position size is 15 percent of equity in quiet markets, 25 percent in active ones, and zero in extreme ones. Entries are long onl
Finds pivot highs and pivot lows using a symmetric bar length and measures the percentage change and bar count between consecutive pivots. It averages those intervals and, when forecasting is on, draws dotted vertical lines where the next pivot may appear base
The HUYA Tracker indicator plots buy and sell labels on the price chart to mark ARK Invest trading activity in HUYA stock. It displays dates when ARK purchased or sold shares using X1 notation for single share counts. The main setting allows selection of speci
This indicator measures the absolute bar-to-bar change of the close and tracks the smallest and largest of those changes seen so far. It maps each change onto a 0 to 100 scale between that minimum and maximum, then, on the last bar only, counts how often each
This Pine Script strategy calculates three RSI indicators with periods 50, 75 and 100 on the chosen source. It computes multiple simple and exponential moving averages on the fast RSI and assigns colors based on changes relative to the slow RSI. Long entries t
This indicator calculates a causal approximation of the Hodrick-Prescott filter. It plots a smoothed trend of the selected source and a cycle equal to the source minus that trend. Lambda controls smoothing; the source defaults to close. The trend is drawn on t
This indicator calculates and plots a 5-period simple moving average and a 50-period simple moving average based on the closing price directly on the main price chart. It detects crossover points between the fast and slow moving averages, marking each occurren
This indicator scans price charts to identify the Bearish Tri-Star candlestick pattern, which consists of three consecutive Doji candles appearing at the peak of an uptrend. It verifies trend context using simple moving averages (SMA 50 or SMA 200) or allows t
Trailering I005 is a crypto-focused trading strategy template designed for automated execution through Zignaly webhooks. It evaluates price excursion to minimize risk and maximize returns. The strategy supports take-profit targets, trailing take-profits, fixed
The USD Volume (Auto-Unit Scaling) indicator calculates the trading value as close price multiplied by volume for each bar. It plots this monetary value in a separate pane using column style bars colored green for bullish and red for bearish candles. Units aut
Price Action Suite is an overlay indicator that identifies key price action and smart money concepts directly on the main chart. It plots internal and external market structure events such as Break of Structure and Change of Character, displays swing order blo
This strategy combines MACD and Supertrend to generate entries on the price chart. The MACD oscillator uses selected source, fast length 12, slow 26, signal 9 and EMA or SMA. Supertrend on higher timeframe 15 provides trend direction and ATR trailing stop. Sig
This indicator evaluates market non-randomness by running a Wald-Wolfowitz runs test on intrabar price movements. Using lower timeframe data requested via external libraries, it measures whether intrabar directional price sequences significantly deviate from a
This validation probe strategy tests how TradingView handles dual stop-order priority based on script source order. At a fixed time of 02:45, when no position is open, it submits a short stop order below the close followed by a long stop order above the close.
This indicator plots custom moving averages and highest-high and lowest-low channels directly on the price chart based on a user-defined time range. It calculates a base period length between chosen start and end timestamps, then scales it using Fibonacci rati
A separate-pane indicator that applies a volume-weighted moving average to true range over a chosen period, with optional smoothing. Long and short thresholds set when the reading counts as a bullish or bearish state. Options include a fast Hull line, a band d
Overlays up to 46 buy and sell marker signals on the price chart, built from standard deviation displacement, pullback pockets, relative volume tiers and fair value gap structures. Inputs set three displacement multipliers, a first-bar-only switch and per-sign
A strategy that reads daily footprint data to get the previous day's value area high, value area low, point of control and delta. It stores recent value areas in a matrix and averages them into a consensus level. It goes long on a close above the value area hi
This indicator draws sine waves tied to Future Line of Demarcation cycles in a separate pane. Up to three FLD periods can be set manually or chosen automatically from the chart timeframe, with offsets, line widths and transparency for each. A composite line co
The HXL Tracker indicator visualizes historical buy and sell trades made by ARK Invest for HXL stock directly on the price chart. It places chart labels at specific timestamps corresponding to transaction dates, displaying buy or sell activity counts across AR
This indicator overlays the price chart and prepares a fixed set of fifty lines for a Monte Carlo-style test. A custom pseudo-random function updates a stored seed and returns values inside a chosen range. Inputs set the historical data size, the depth of each
This trading strategy combines three Exponential Moving Averages (8, 14, and 50 periods by default) with Stochastic RSI and Average True Range (ATR). It enters a long position when EMA 1 is above EMA 2, EMA 2 is above EMA 3, and the Stochastic RSI %K line cros
This indicator calculates Huber loss between a selected source and an exponential moving average of that source. Inside the delta threshold it uses half the squared error; beyond delta it uses a linear absolute-error form. It averages those values over the cho
This indicator draws a box on every bar using Pine Script's box.new function. The left edge is the previous bar index and the top is the previous bar's low. The right edge is the current bar index and the bottom is the current bar's high. It plots directly on
Identifies and highlights the Bullish Tri-Star candlestick pattern on the price chart. The indicator detects three consecutive doji candles following an established downtrend, determined by moving average trend rules (SMA 50, SMA 200, or disabled). When the pa
Trailering J009 is a long-only strategy designed for cryptocurrency trading with Zignaly integration. It evaluates price excursion across multiple sub-strategy trigger conditions to size trade entries and refine exit points. The system features flexible exit m
This indicator overlays volume-delta bubbles and absorption labels on the price chart. It signs volume as positive or negative from either a lower-timeframe open-close comparison or the current candle direction, then flags unusual activity with an adaptive z-s
The Professional ORB + ICT System combines Opening Range Breakout (ORB) techniques with Smart Money Concepts on the price chart. It defines session opening ranges across major global sessions, classifies range width using ATR metrics, and tracks Relative Volum
Market Rhythm Adaptive Trading Algo V1 is an overlay indicator that combines Kaufman Adaptive Moving Averages (KAMA), an ADX regime filter, Choppiness Index, Rate of Change, and RSI to identify market rhythm and trend entries. Depending on whether the ADX valu
Intraday Intensity Modes calculates David Bostian's Intraday Intensity Index with multiple calculation variations. It evaluates price positioning within the high-low range relative to volume, offering cumulative, normalized oscillator, and inverse volume optio
A test strategy from a reference corpus that places a long stop and a short stop at the same time, 0.2 percent above and below the close of the 02:45 bar. It only does so on bars where the open is nearer to the low than to the high, so the price path is expect
This indicator projects dynamic geometric shapes and envelopes directly onto the price chart based on moving averages and extreme price lookbacks. Users can select shapes such as boxes, rhombuses, ellipses, spirals, or hypercubes. The script calculates base, m
A gold-focused price-chart indicator that measures rolling correlation between the chart symbol and the dollar index, and when the correlation is inverse enough it generates signals from RSI crossing its oversold and overbought levels. It adds a Supertrend tre
Overlays up to 46 buy and sell marker signals on the price chart, built from standard deviation displacement, pullback pockets, relative volume tiers and fair value gap structures. Inputs set three displacement multipliers, a first-bar-only switch and per-sign
The script calculates the yield spread between long-term and short-term US Treasury yields (T10Y2Y or manual US10Y minus US02Y) and plots the spread line on a separate pane. It signals long entries on steepening beyond a user threshold in reversion mode or SMA
Finds pivot highs and lows using separate left and right bar lengths and draws them on the price chart. A shift setting waits for the bar to close before printing a pivot, and an option shows the most recent low as a stop reference. Levels can extend to the ri
This indicator visualizes historical transaction data for Interactive Brokers Group Inc (IBKR) executed by ARK Invest funds. It overlays visual labels directly onto the price chart at specific historical timestamps, indicating institutional buy and sell action
This indicator builds a string from an integer by counting its digits, splitting the value into two-digit indices, and mapping each index to an uppercase letter or a printable ASCII character. A selector chooses which alphabet function is used, and the mapped
This long-only trend-following strategy identifies breakout trades by requiring price to breach a 250-bar high while aligned with 50-period, 150-period, and 200-period Simple Moving Averages. It calculates relative strength against a comparative market benchma
Calculates and plots the Hurst Exponent to quantify the persistence, mean-reverting tendencies, or random walk characteristics of a time series. It computes logarithmic returns, segments the lookback window into sub-periods to determine rescaled range statisti
This Pine Script indicator computes a simple moving average (SMA) of length 10 based on the close prices of the trading instrument. The script uses the study function to define the indicator and plots the SMA line in a separate pane. No signals are generated a
This indicator plots a triple exponential moving average of the closing price on the price chart. It smooths close with an exponential moving average of a chosen length, then applies the same average twice more, and combines the three results as three times th
Trailering K004 is a long-only strategy designed with integrated Zignaly automated alert webhooks. It calculates entry signals and dynamically adjusts capital allocation based on the number of active sub-strategy conditions met over a specified lookback period
VWAP Trader NXi calculates a daily session-anchored Volume Weighted Average Price along with two custom standard deviation bands on the main price chart. It plots the core VWAP, Value Area bands, outer extension zones with background shading, and the previous
This indicator marks a trading session in the GMT+2 timezone and builds a price range from the four hours before the session starts. It requests one-minute highs and lows, stores the range extremes, and draws two horizontal lines on the price chart that extend
Market View++ is a multi-symbol market overview dashboard indicator that displays metrics across multiple financial assets on the price chart. It tracks up to ten customizable individual symbols alongside grouped composites, calculating key metrics such as rel
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.