Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 94)

Scripts written for Pine Script version 5. They still run in TradingView as they are, and the Pine Editor can convert them to version 6.

Pine scripts4,643
Code shown here2,378open licence
Updated in a year2,687
No repaint flag4,051

Pine Script v5: Indicators, Strategies and Libraries

2 stars

This overlay indicator looks for swing highs and lows and draws D-shaped patterns around them on the price chart. Historical patterns can be shown as arcs, midlines, or both, with optional color fill and a line connecting the swing level. A breakout flag, tren

Indicator v5 BreakoutSupport & resistance
Updated 8 months ago · None stated GitHub repository of D-Shape Breakout Signals [LuxAlgo]

This strategy draws on the price chart and manages long and short entries around pivot trendlines. It filters signals with three configurable moving averages, Stochastic RSI, a higher-timeframe Stochastic RSI, and optional RSI divergence. A session window can

Strategy v5 TrendOscillators & momentum Repaints
Updated 5 months ago · None stated GitHub repository of Pivot Trendlines with Divergence Scanner Strategy
2 stars

Daily Chess Puzzles [LuxAlgo] renders interactive chess puzzles directly on the price chart using imported historical puzzle dataset libraries. The script parses chess notation to render pieces and a board on the layout. Users can type in move answers using th

Indicator v5
Updated 8 months ago · None stated GitHub repository of Daily Chess Puzzles [LuxAlgo]
1 stars

This indicator calculates a simple moving average (SMA) alongside a zero-centered symmetrized price series and its moving average. It uses Average True Range (ATR) to create a dynamic price offset, plotting a stepline translated moving average along with an up

Indicator v5 Moving averagesVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of Symmetrized MA & Dynamic Offset

This strategy combines triple moving average trend filtering with Stochastic RSI levels and optional RSI divergence signals to generate long and short trade entries. It uses Average True Range multipliers to define dynamic take profit and stop loss levels for

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Pivot Trendlines with Divergence Scanner Strategy

Tagnet Circles

by morindok
1 stars

The Tagnet Circles indicator plots geometric time-price circle projections directly on the price chart. Users interactively select two time anchor points to establish a high-low price and time window. The script draws a central main circle with dashed upper an

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Tagnet Circles
3 stars

Premium Dashboard evaluates multiple technical indicators, including moving averages, oscillators, and price action metrics, displaying a consolidated confluence table on the main chart pane. It calculates bullish and bearish alignment across up to ten customi

Indicator v5 Screeners & dashboardsMoving averages
Updated 5 months ago · None stated GitHub repository of Premium Dashboard
2 stars

This indicator overlays a dividend calendar on the price chart for a list of stocks. It schedules expected dividend payments by ex-date or pay-date, optionally estimates future payouts, and can show dividend growth over a chosen number of years. Users pick the

Indicator v5 Screeners & dashboards Repaints
Updated 8 months ago · None stated GitHub repository of Dividend Calendar (Zeiierman)
3 stars

Price Action Candles is a minimal placeholder indicator written in Pine Script. It plots the closing price of the current symbol as a simple line in a separate indicator pane. The script contains no input parameters, entry or exit signals, trade alerts, or com

Indicator v5
Updated 5 months ago · None stated GitHub repository of Price Action Candles
2 stars

Dynamic Linear Regression Channels calculates and plots an auto-adjusting linear regression line alongside upper and lower standard deviation bands on the price chart. Unlike fixed-length regression tools, it dynamically expands its calculation window bar-by-b

Indicator v5 Support & resistanceTrend
Updated 8 months ago · None stated GitHub repository of Dynamic Linear Regression Channels
1 stars

Time Analyzer {Morindok} calculates pivot highs and lows over a user-defined length to establish structural market baselines. It supports either an alternating ZigZag mode or independent high and low swing tracking. Based on these anchor points, the script con

Indicator v5 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Time Analyzer {Morindok}
3 stars

The Price Action Candles script is an indicator that calculates and plots a custom On-Balance Volume (OBV) in a separate pane. It uses a rolling period to compute signed volume accumulation based on close price changes and volume data. The primary setting adju

Indicator v5 Volume
Updated 5 months ago · None stated GitHub repository of Price Action Candles

Time Machine

by morindok
1 stars

Time Machine is an indicator that plots symmetric candles mirrored across a user-selected price level within a time range set by Point 1 and Point 2. It draws a horizontal yellow line at the selected level extending from t1 to t2 on the price chart. The script

Indicator v5 Candlestick patternsSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Time Machine
3 stars

Price Action Candles draws a grid of dotted horizontal lines on the price chart around a user-chosen starting price. On the last bar it places one line at that anchor and equal numbers of lines above and below it, spaced by a tick or pip distance. Settings cha

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Price Action Candles

Fair value bands

by regalouisei
2 stars

This overlay indicator plots a fair value basis on the price chart and surrounds it with threshold and deviation bands. The basis can be an SMA, EMA, HMA, RMA, WMA, VWMA, median, or a VWAP anchored to a chosen timeframe, using a selectable price source and len

Indicator v5 Moving averagesVolatility & bands
Updated 8 months ago · None stated GitHub repository of Fair value bands

Time Machine

by morindok
1 stars

Time Machine plots horizontal lines on the price chart at user-defined start and end price levels. It supports two calculation bases: SMA for average price or HH/LL for high-low ranges. The time range is set by start and end timestamps, with options to auto-de

Indicator v5 Support & resistanceSessions & time
Updated 7 weeks ago · None stated GitHub repository of Time Machine
3 stars

The Price Action Candles indicator plots the current low price on the chart. This provides a basic visual reference line for price action traders. The plot appears directly on the price chart as an overlay. It helps identify potential support levels and curren

Indicator v5 Support & resistanceCandlestick patterns
Updated 5 months ago · None stated GitHub repository of Price Action Candles

Financials

by regalouisei
2 stars

The Financials indicator displays a fundamental and technical comparison table on the price chart for up to five user-selected stock symbols. It uses fundamental financial data requests to calculate key valuation and financial health ratios, including Price-to

Indicator v5 Screeners & dashboardsMoving averages
Updated 8 months ago · None stated GitHub repository of Financials

Time Machine Pro

by morindok
1 stars

Time Machine Pro is an overlay drawing tool that reflects historical price between two user-selected price levels and two times. It measures green and red candle distances by sum, simple average, or volume-weighted average, then plots spirals or vertical lines

Indicator v5 Support & resistanceVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of Time Machine Pro
3 stars

This indicator plots a 20 period simple moving average of the closing price on the chart. The test_val input sets the number of last bars to show for the plot. It draws in a separate pane using price action principles and a moving average. No buy or sell signa

Indicator v5 Moving averagesCandlestick patterns
Updated 5 months ago · None stated GitHub repository of Price Action Candles
2 stars

This indicator plots FINRA daily short sale volume as colored columns alongside a simple moving average in a separate pane. Columns display in a brighter red shade whenever short volume exceeds the moving average. Users can configure the moving average length

Indicator v5 VolumeMoving averages
Updated 8 months ago · None stated GitHub repository of FINRA Daily Short Sale Volume
1 stars

Time Machine is an overlay indicator that calculates historical price reflections using Fibonacci levels, SMA variants, Bollinger Bands, VWAP, and spiral spine methods. It plots symmetric price lines around dashed levels and dynamic indicator lines, plus area

Indicator v5 Support & resistanceMean reversion
Updated 7 weeks ago · None stated GitHub repository of Time Machine{Morindok}
3 stars

Price Action Candles is a Pine Script v5 indicator that keeps a running integer and draws a text label on every bar. Each bar adds one to the previous count, then places a new label at that bar's index and close showing the number. There are no user inputs, no

Indicator v5
Updated 5 months ago · None stated GitHub repository of Price Action Candles

TMoon Mirror

by morindok
1 stars

TMoon Mirror plots a dynamic moving average line on the price chart that decays in length according to user-defined time ranges. It mirrors this line around a central level and plots top, middle, and bottom horizontal lines for support and resistance. An optio

Indicator v5 Moving averagesSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of TMoon Mirror
3 stars

Price Action Candles is an overlay indicator that plots the closing price on the main price chart. It uses a single plot of the close series and adds no calculations, filters, or trading signals. There are no user inputs, so nothing changes colour, style, or c

Indicator v5
Updated 5 months ago · None stated GitHub repository of Price Action Candles

Flare

by regalouisei
2 stars

The Flare indicator plots connected linefills on the price chart to create a customizable visual flare shape. It takes user inputs for flare width, bars to look back from the close, power factor, and step size to control the shape and transitions. The script i

Indicator v5 Support & resistanceScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Flare

Torus

by morindok
1 stars

A drawing tool that renders a wireframe torus on the price chart. The user picks two points by time and price, and the script scales a fixed set of precomputed outline coordinates into the area between them, drawing each ring as a blue polyline once on the las

Indicator v5
Updated 7 weeks ago · None stated GitHub repository of Torus
3 stars

Price Action Candles is an unfinished strategy script written in Pine Script v5. It plots the closing price line in a separate pane below the chart. The script does not contain any trading signals, order placement logic, exit rules, or user-configurable input

Strategy v5
Updated 5 months ago · None stated GitHub repository of Price Action Candles

Gann Box (Zeiierman)

by regalouisei
2 stars

The Gann Box (Zeiierman) indicator calculates and overlays Gann Box and optional Gann Fan structures directly on the main price chart. It projects horizontal Fibonacci level bounds and dynamic angle lines based on significant high and low points to highlight p

Indicator v5 Support & resistanceTrend
Updated 8 months ago · None stated GitHub repository of Gann Box (Zeiierman)
3 stars

Price Action Candles is an overlay indicator that marks simple swing patterns on the price chart. A green triangle appears below a bar when a low two bars earlier is below the lows around it and the next low is higher. A red triangle appears above a bar when t

Indicator v5 Candlestick patternsSupport & resistance Repaints
Updated 5 months ago · None stated GitHub repository of Price Action Candles

Golden Pocket

by regalouisei
2 stars

Golden Pocket indicator identifies potential reversal zones by drawing Fibonacci retracement lines and boxes between pivot highs and lows on the price chart. It applies moving average filters to confirm trend direction for both bull and bear setups. Users can

Indicator v5 Support & resistanceMoving averages
Updated 8 months ago · None stated GitHub repository of Golden Pocket

Two Tangent Circles

by morindok
1 stars

The script plots two closed polylines on the price chart representing tangent circles. It takes two user-defined points defined by time and price inputs to calculate the direction and distance between them. Centers of two circles with radii one-quarter of thos

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Two Tangent Circles
3 stars

This indicator calculates a 30-period and a 50-period simple moving average of the closing price and plots both lines in a separate pane. It fills the space between them teal when the shorter average is above the longer average and red when it is below. There

Indicator v5 Moving averagesTrend
Updated 5 months ago · None stated GitHub repository of Price Action Candles

Heatmap Volume [xdecow]

by regalouisei
2 stars

This indicator classifies volume by how many standard deviations it sits from a moving average and colors that classification as a heatmap in a separate pane. Extra-high, high, medium, normal, and low bands use multiplier thresholds. Users can color volume bar

Indicator v5 VolumeMoving averages
Updated 8 months ago · None stated GitHub repository of Heatmap Volume [xdecow]

Universal System

by morindok
1 stars

Universal System plots geometric logarithmic spirals based on the golden ratio directly on the price chart. The indicator gathers price range data between two user-defined anchor timestamps, accumulating bullish and bearish price movement sums. On the final ba

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Universal System
3 stars

Price Action Candles highlights consecutive range-containing bars on the price chart. It marks a bar when its high is at or above the prior high and its low is at or below the prior low, so the current range contains the previous bar. It paints the background

Indicator v5 Candlestick patterns
Updated 5 months ago · None stated GitHub repository of Price Action Candles
2 stars

This indicator implements Hosoda's Ichimoku Theories directly on the price chart, combining standard Ichimoku Kinko Hyo components (Tenkan-sen, Kijun-sen, Kumo cloud, and Chikou span) with Time Theory and Wave Theory analysis. It detects swing highs and lows,

Indicator v5 TrendSupport & resistance
Updated 8 months ago · None stated GitHub repository of Ichimoku Theories [LuxAlgo]
3 stars

This lightweight indicator calculates a 9-period Exponential Moving Average (EMA) and a 20-period EMA, plotting both directly on the price chart overlay. It also plots a third line in orange that displays the mathematical sum of the two EMAs as a simple trend

Indicator v5 Moving averagesTrend
Updated 5 months ago · None stated GitHub repository of Price Action Candles

Indicators Overlay

by regalouisei
2 stars

Indicators Overlay plots up to ten technical indicators directly on the main price chart using line drawings, avoiding the need for separate sub-panes. It calculates common technical metrics such as RSI, CCI, OBV, Stochastic, MFI, ATR, CMO, CMF, Stochastic RSI

Indicator v5 Oscillators & momentumVolatility & bands
Updated 8 months ago · None stated GitHub repository of Indicators Overlay

Universe Of Mirrors

by morindok
1 stars

This Pine Script indicator calculates two pairs of parallel universes derived from moving averages of the source price using Fibonacci ratios of the golden ratio. It plots Universe A and Universe B lines along with their inverse counterparts, plus fill bands b

Indicator v5 TrendMoving averages
Updated 7 weeks ago · None stated GitHub repository of Universe Of Mirrors

More Pine Script Categories

Browse the whole Pine Library

Third-party code. ForexR lists open-source Pine scripts from GitHub; it did not write, test or endorse them, and their summaries are generated automatically from each script's code and README. Indicators describe the past, and a strategy's backtest can look better than live trading. Check a script on a demo account before you rely on it. CFDs and leveraged forex are complex instruments with a high risk of losing money rapidly.

Learn to Use Pine Scripts

Free, plain-English guides: add a script to TradingView, read what it does, test it and avoid the common traps.

  1. 1Using this librarySearch, filters, licences and what the badges mean.
  2. 2Add a script to TradingViewCopy, paste into the Pine Editor, save and add to chart.
  3. 3Indicators, strategies and librariesWhat each type does and how to tell them apart.
  4. 4Spot a script that repaintsWhy some signals change after the bar closes.
  5. 5Backtest a strategyStrategy Tester settings that keep results honest.
  6. 6Send alerts to MT4 or MT5From a TradingView alert to an order in MetaTrader.
  7. 7What Pine Script isThe language, what it can and cannot do, and where to start.
  8. 8Write your first indicatorA complete script, line by line, in the Pine Editor.
  9. 9Read a script before you trust itA routine for checking inputs, logic and red flags.
  10. 10Edit a script safelyChange colours and lengths, add a filter or an alert.
  11. 11Pine Script alertsalertcondition(), alert(), placeholders and webhooks.
  12. 12Build a crossover strategyAn EMA cross strategy with an ATR stop, ready to test.

Trade Your Charts With a Regulated Broker

Compare regulated brokers on platforms, spreads, minimum deposit and leverage.

Compare brokers