Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 93)

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

RSI Bar Chart v2

by regalouisei
2 stars

This indicator plots multiple RSI oscillators calculated from various price sources and timeframes in a separate pane. It renders the RSIs as customizable lines with different colors, widths, and styles. Colored bars highlight overbought and oversold zones bas

Indicator v5 Oscillators & momentum Repaints
Updated 8 months ago · None stated GitHub repository of RSI Bar Chart v2

The Super Mirror indicator plots spiral symmetry patterns on the price chart using user-specified start and end points along with reflection ratios. It calculates mirrored price levels and spiral growth factors for upward and downward movements based on input

Indicator v5 Support & resistanceSMC / ICT / price action

ORB Twisted M

by g-moe
3 stars

This strategy builds an opening range during a user-defined morning session and trades breakouts of that range during a later trade window. It enters long above the range high and short below the range low, then manages exits with two range-size extensions, a

Strategy v5 BreakoutSessions & time
Updated 5 months ago · None stated GitHub repository of ORB Twisted M

RSI direction bias - JD

by regalouisei
2 stars

This indicator calculates an RSI and holds a directional bias until the oscillator crosses the opposite threshold. A regular RSI uses the selected source and length, while the future-smoothed option uses a projected Heikin Ashi open. Bias turns long above the

Indicator v5 Oscillators & momentum Repaints
Updated 8 months ago · None stated GitHub repository of RSI direction bias - JD

ORB_twisted_m

by g-moe
3 stars

This strategy executes opening range breakout trades on the price chart during New York market hours. It tracks the high and low of a customizable opening session and enters long or short positions when price breaks above or below the range. Position sizing de

Strategy v5 BreakoutSessions & time
Updated 5 months ago · None stated GitHub repository of ORB_twisted_m
2 stars

This indicator analyzes and visualizes the statistical price impact following specific Relative Strength Index (RSI) trigger conditions. When the RSI crosses over or under a defined threshold level, the script measures post-trigger price movements across a spe

Indicator v5 Oscillators & momentumVolatility & bands
Updated 8 months ago · None stated GitHub repository of RSI Impact Heat Map [Trendoscope]

Parabolic SAR

by g-moe
3 stars

Parabolic SAR is a price-chart strategy that reads Commodity Channel Index and Parabolic SAR values from four user-selected timeframes. It opens a long when every timeframe’s CCI is above the entry level and price is below every SAR, and it closes that long wh

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Parabolic SAR

RSI Past

by regalouisei
2 stars

RSI Past is an indicator that plots the bar difference between the last overbought and oversold readings of a custom RSI. It calculates the distance in bars from the most recent time the RSI crossed above the overbought threshold to the last time it dropped be

Indicator v5 Oscillators & momentum
Updated 8 months ago · None stated GitHub repository of RSI Past

Parabolic SAR

by g-moe
3 stars

This strategy overlays a smoothed moving average on price and combines it with Aroon, Chaikin Money Flow and a Chaikin oscillator to define long and short conditions. Relative Vigor Index and Parabolic SAR values are calculated for exits. Entries can be limite

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Parabolic SAR

Volume Dots

by regalouisei
2 stars

This indicator highlights high volume and open interest (OI) extremities directly on the price chart. It identifies potential support and resistance zones, naked levels, and liquidation ranges using visual dots, lines, and boxes. An optional on-screen table di

Indicator v5 VolumeSupport & resistance
Updated 8 months ago · None stated GitHub repository of Volume Dots

Period VWAP

by g-moe
3 stars

Period VWAP calculates a rolling volume-weighted average price over a chosen number of bars. It multiplies the typical price by volume, sums both that product and volume across the period, and divides them to plot one line on the price chart. The period input

Indicator v5 Volume
Updated 5 months ago · None stated GitHub repository of Period VWAP

3Commas Bot

by regalouisei
2 stars

This strategy draws two moving averages on the price chart and uses their bias to open long or short trades. It places the stop beyond a swing high or low using an ATR risk multiple, then sets a limit exit from the reward-to-risk ratio. An optional ATR trail c

Strategy v5 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of 3Commas Bot
1 stars

This indicator plots the original simple moving average, a symmetric moving average calculated from the highest and lowest moving averages over the window length, and a dynamic midline. It generates buy signals when the deviation from the symmetric moving aver

Indicator v5 Moving averagesTrend
Updated 7 weeks ago · None stated GitHub repository of Symmetric MA Reversal Signals

Pivot Trendlines

by g-moe
3 stars

Pivot Trendlines marks confirmed pivot highs and pivot lows on the price chart and tracks small pivot highs and lows from consecutive red or green candles. It plots the count of green bars since the last pivot low and red bars since the last pivot high, and it

Indicator v5 Support & resistanceTrend
Updated 5 months ago · None stated GitHub repository of Pivot Trendlines

3D Sine Wave

by regalouisei
2 stars

This indicator plots a 3D sine wave in a separate pane. It calculates wave values using bar index, wave height and duration inputs. Lines form a wave shape with top, bottom, left and right fills based on coloring style. Regular or irregular shape option change

Indicator v5 Support & resistanceVolatility & bands
Updated 8 months ago · None stated GitHub repository of 3D Sine Wave

Pivot Trendlines

by g-moe
3 stars

This strategy overlays two SMA lines with a cloud fill to show trend direction. It detects band reversals with Bollinger Bands and uses RSI for mean-reversion signals. Long entries trigger when the trend is bullish, price touches the lower band, and RSI is bel

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

This indicator renders an analog and digital world clock in a separate pane. It calculates local time across global cities based on UTC offsets and configurable daylight saving time options. Users can choose specific time zones, adjust text sizes, and toggle d

Indicator v5 Sessions & time Repaints
Updated 8 months ago · None stated GitHub repository of Analog/Digital World Clock by DGT

Symmetric Price

by morindok
1 stars

This indicator plots a mirrored copy of the close around a user-chosen symmetry price. For each bar it stores a point at twice the level minus the close, then draws those points as one orange polyline on the price chart when the last bar has at least two point

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Symmetric Price

Pivot Trendlines

by g-moe
3 stars

Pivot Trendlines is an indicator that plots horizontal support and resistance lines along with trendline support and resistance based on swing pivots of customizable lengths. Three separate groups allow adjustment of pivot length to draw multiple horizontal li

Indicator v5 Support & resistanceTrend
Updated 5 months ago · None stated GitHub repository of Pivot Trendlines

Andean Oscillator

by regalouisei
2 stars

The Andean Oscillator measures trend strength by calculating distinct bullish and bearish components using modified exponential envelopes applied to open and close prices. It computes variance-like metrics to estimate directional volatility and tracks momentum

Indicator v5 TrendOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Andean Oscillator

Symmetric Price - Invertible System calculates geometric trend baselines, symmetric moving averages, and Fibonacci wave oscillations overlaid directly on the price chart. Users select two anchor points with custom timestamps and prices to define a central slop

Indicator v5 Moving averagesSupport & resistance

Pivot Trendlines

by g-moe
3 stars

The Pivot Trendlines indicator identifies swing highs and lows on the chart to form support and resistance levels. It plots these levels as markers and draws trendlines connecting them. Buy and sell signals activate when the price breaks beyond a set percentag

Indicator v5 Support & resistanceBreakout
Updated 5 months ago · None stated GitHub repository of Pivot Trendlines
1 stars

Symmetric Price Mirror is an overlay indicator that reflects price candles around Fibonacci extension levels derived from two user-selected prices and a time window. It builds upper and lower slopes from degree angles or from box diagonals, then offsets those

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Symmetric Price Mirror

Pivot Trendlines

by g-moe
3 stars

This indicator plots supply and demand zones along with pivot-based trendlines on the price chart. It detects swing highs and lows to form trendlines and overlays three customizable zones with adjustable lengths and timeframes for multi-timeframe analysis. Mai

Indicator v5 Support & resistanceTrend Repaints
Updated 5 months ago · None stated GitHub repository of Pivot Trendlines
1 stars

The Symmetric Price Mirror indicator calculates mirrored high and low price levels based on user-defined pivot range from lev1 and lev2 with optional time window t0 to t1. It applies slope adjustments using angles ang1 and ang2 or diagonal boxes scaled by bars

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Symmetric Price Mirror

Pivot Trendlines

by g-moe
3 stars

The Pivot Trendlines strategy identifies swing pivots on the price chart using a configurable swing lookback period and draws trendlines connecting these pivots. It generates buy and sell signals based on three-move patterns with user-defined move sizes, filte

Strategy v5 TrendBreakout
Updated 5 months ago · None stated GitHub repository of Pivot Trendlines
2 stars

Calculates the statistical likelihood of price reaching multiple percentage-spaced breakout levels above and below the current price. It renders horizontal lines with percentage probability labels directly on the price chart and maintains a summary dashboard i

Indicator v5 BreakoutSupport & resistance
Updated 8 months ago · None stated GitHub repository of Breakout Probability (Expo)
1 stars

Symmetric Price with MA calculates centered and mirrored price values using moving average midpoints and user-defined slope projections. It allows users to set a time anchor and slope angle to dynamically offset price data, optionally applying Golden Ratio mul

Indicator v5 Moving averagesTrend
Updated 7 weeks ago · None stated GitHub repository of Symmetric Price with MA

Pivot Trendlines

by g-moe
3 stars

The Pivot Trendlines indicator detects swing pivot highs and lows on the price chart using a user-defined pivot length. It identifies small pivots when they occur and large pivots when price breaks through the recent opposite small pivot. Labels for small pivo

Indicator v5 Support & resistanceSMC / ICT / price action Repaints
Updated 5 months ago · None stated GitHub repository of Pivot Trendlines

CAGR Custom Range

by regalouisei
2 stars

CAGR Custom Range calculates the compound annual growth rate between two user-selected times on the chart. It captures the close at each point, passes those prices and times to TradingView's cagr function, and draws a connecting line colored by whether the lat

Indicator v5
Updated 8 months ago · None stated GitHub repository of CAGR Custom Range
1 stars

Symmetric Range Spiral System projects geometric mirrored price paths and spiral structures directly onto the price chart. It calculates reflection levels and symmetric price polylines relative to a user-selected price level and time window. Storing bar data i

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Symmetric Range Spiral System

Pivot Trendlines

by g-moe
3 stars

This indicator identifies pivot highs and lows using a swing lookback period and connects them with trendlines on the price chart. It generates long and short entry signals when price moves through predefined percentage thresholds in three steps for buy and se

Indicator v5 TrendSupport & resistance
Updated 5 months ago · None stated GitHub repository of Pivot Trendlines
2 stars

Christmas Toolkit [LuxAlgo] draws a decorative Christmas tree, garland, stars, and a moving deer on the price chart using labels. Width, offset, and garland rotations change the tree layout, while Static Tree and Deer Speed control whether the tree stays fixed

Indicator v5 Screeners & dashboardsOscillators & momentum Repaints
Updated 8 months ago · None stated GitHub repository of Christmas Toolkit [LuxAlgo]
1 stars

The Symmetrical Golden Shapes indicator draws geometric patterns directly on the price chart overlay within a user-defined time range and price level. It uses Pine Script polylines to plot customizable shapes such as diamonds, triangles, rectangles, polygons,

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Symmetrical Golden Shapes
3 stars

This indicator plots horizontal support and resistance levels alongside sloping diagonal trendlines based on pivot high and pivot low points directly on the price chart. It provides three independent groups of pivot length settings, allowing traders to monitor

Indicator v5 Support & resistanceTrend
Updated 5 months ago · None stated GitHub repository of Pivot Trendlines v2

CM MacD Ult MTF V2.1

by regalouisei
2 stars

This indicator plots a customizable MACD in a separate pane. It calculates the MACD line from fast and slow SMA or EMA values, a signal line, and a histogram of their difference. An optional indicator timeframe can use another chart resolution. Users can show

Indicator v5 Oscillators & momentumMoving averages
Updated 8 months ago · None stated GitHub repository of CM MacD Ult MTF V2.1
1 stars

Symmetrical Golden Shapes plots customizable geometric shapes, including diamonds, ellipses, polygons, and stars, directly on the price chart. The indicator allows users to define time and price boundaries interactively, adjust center ratios, and mirror or rot

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Symmetrical Golden Shapes

This overlay indicator plots three moving averages chosen from EMA, SMA, HMA, VWMA, or RMA. Inputs also configure Stochastic RSI and RSI lengths, buy and sell thresholds, and an optional RSI divergence filter with its own lookback. A session window can restric

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

Custom Pattern Detection

by regalouisei
2 stars

This indicator identifies multi-leg custom harmonic or structural patterns on the price chart based on pivot high and low points. It calculates Zigzag trendlines using a configurable lookback period and filters pattern segments (AB, BC, CD, DE, EF) using targe

Indicator v5 Support & resistanceTrend Repaints
Updated 8 months ago · None stated GitHub repository of Custom Pattern Detection

This indicator plots pivot trendlines on the price chart and scans for divergences using RSI. It combines multiple moving averages, stochastic RSI indicators, and multi-timeframe stochastic RSI to generate buy and sell signals based on confluence. Entries foll

Indicator v5 TrendDivergence Repaints
Updated 5 months ago · None stated GitHub repository of Pivot Trendlines with Divergence Scanner

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