Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 76)

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

This indicator overlays moving average clouds, swing pivots, and trade signals directly on the price chart. It combines a fast and slow moving average cloud with a long-term trend filter moving average. Trade signals are triggered by moving average crossovers

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Heikin Ashi with Pivot Trendlines
1 stars

This indicator projects cycle paths and Fibonacci-scaled moving averages directly on the price chart based on two user-selected reference points in time and price. It computes a base moving average period from the elapsed bars between anchors and derives a sec

Indicator v5 Moving averagesTrend
Updated 7 weeks ago · None stated GitHub repository of Fibo Wave MA - Auto Path (Plot)
1 stars

Overlay indicator of single-bar detections drawn on the price chart. Groups include relative volume tiers named SAAB, Kratos, Grand Slam and MOAB, regular-at-time volume tiers, an all-time high volume marker, momentum LONG and SHORT tiers, high-volume ranks fr

Indicator v5 VolumeOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Heavy Weapons Singles v2

A Pine Script v5 indicator that draws bullish and bearish order block zones on the price chart with volume information inside each zone. Swing length, maximum ATR multiplier, zone count, zone combining and invalidation by close or wick control how zones appear

Indicator v5 SMC / ICT / price actionVolume
Updated 6 months ago · None stated GitHub repository of Volumized Order Blocks LTF 2026 (G)

Position Tool

by ivansoft
1 stars

An indicator that draws a long or short position box on the price chart from an entry point, a take profit level and a stop loss level that the user clicks on the chart. It sizes the trade from an account size, a risk amount given as a percentage or in account

Indicator v5 Support & resistance
Updated 1 year ago · None stated GitHub repository of Position Tool

Function - IRR

by ricardosantos79
261 stars

This script demonstrates a custom Pine Script implementation of a fourth-order Infinite Impulse Response filter function based on AmiBroker AFL. It uses this mathematical framework to construct multiple smoothing calculations, including an IIR-calculated Expon

Indicator v5 Moving averages
Updated 4 years ago · None stated GitHub repository of Function - IRR
106 stars

This overlay strategy enters a long position when the relative strength index rises by more than five points, stays below 70, and a 9-period exponential moving average crosses above a 50-period average, provided the bar is on or after 1 January 2020. It closes

Strategy v5 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Bitpanda Coinrule Template

MA Cross

by TWODS-CAPITAL
37 stars

The MA Cross indicator calculates and plots two Simple Moving Averages (SMA) directly on the main price chart. It tracks a short-term moving average and a long-term moving average to help identify trend directions and potential crossover points. When the short

Indicator v5 Moving averagesTrend
Updated 3 years ago · MIT GitHub repository of MA Cross
13 stars

Ruckard Noro TrendRibbon E003 is a trend-following strategy that combines Noro TrendRibbon directional bias with a high and low moving average price corridor. It enters long positions when the trend ribbon is bullish and price drops below the lower corridor th

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Noro TrendRibbon E003
6 stars

CRT State Engine CURSOR is an overlay indicator that implements Candle Range Theory (CRT) models alongside Smart Money Concepts (SMC) frameworks. It tracks session ranges including Asia, London, New York, and CBDR, while identifying Direction of Liquidity (DOL

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State Engine v7.2 CURSOR

This strategy plots dual moving average clouds and a long-term trend filter directly on the price chart alongside Heikin Ashi data. It triggers long and short entry signals using moving average alignments and pivot trendline levels, with optional filtering via

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Heikin Ashi with Pivot Trendlines Strategy
1 stars

This indicator projects cyclical wave paths and moving averages directly onto the price chart based on two user-defined reference anchor points. It derives a base cycle length from the time difference between the anchors and scales a second period using the 1.

Indicator v5 Moving averagesSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Fibo Wave MA - Auto Path (Plot)

Heavy Weapons ULTRA

by nishpa800
1 stars

A volume pattern indicator that draws toggleable signals on the price chart, extended with sub-minute and sub-two-minute thresholds that change the high-volume lookback and displacement floor on very short chart intervals. Signals include relative volume patte

Indicator v5 Volume
Updated 2 months ago · None stated GitHub repository of Heavy Weapons ULTRA
1 stars

This indicator draws a zig-zag of swing highs and lows on the price chart using depth, deviation and backstep settings, and labels each leg with its bar count and optional price. It can mark higher highs and lower lows and shade upswings and downswings. The Re

Indicator v5 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of ZigCycleBarCount 2024-2

An indicator on the price chart that draws daily and weekly separator lines and marks the previous day's high and low. Daily separators carry a label with the weekday, date and time, weekly separators are drawn separately, and the previous day levels appear as

Indicator v5 Support & resistanceSessions & time
Updated 1 year ago · None stated GitHub repository of Previous Day High and Low with Separators

Bjorgum Double Tap

by hasnocool
106 stars

Bjorgum Double Tap is a price-chart strategy that detects double-bottom and double-top patterns from pivots. It enters long or short when those patterns form, and it can flip into the opposite direction while a position is open. Targets and stops are Fibonacci

Strategy v5 Support & resistanceBreakout
Updated 2 years ago · GPL-3.0 GitHub repository of Bjorgum Double Tap

MACD Strategy

by TWODS-CAPITAL
37 stars

This strategy plots on the price chart and builds a MACD line as the difference between a fast and a slow exponential moving average of close, then smooths that line into a signal. The histogram is their difference. It opens a long when the histogram crosses a

Strategy v5 Oscillators & momentumMoving averages
Updated 3 years ago · MIT GitHub repository of MACD Strategy
13 stars

This strategy combines Noro Trend Ribbon directional shifts with High and Low moving average price corridors and ADX momentum filtering. It evaluates market strength using configurable ADX key levels to filter trades during choppy or weak trend conditions. Use

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Noro TrendRibbon F005

CRT State Engine v7.3

by alboogycOdR
6 stars

This TradingView indicator for XAUUSD gold analyzes market structure, order blocks, liquidity pools, and volume profiles to generate entry signals on the price chart. It includes session monitoring engines and risk management modules that can be toggled via in

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of CRT State Engine v7.3

This strategy calculates double-smoothed Heikin Ashi candles and plots them directly on the price chart alongside a smoothed Relative Strength Index. It evaluates market conditions against external volatility data from an inverse symbol, generating long and sh

Strategy v5 Candlestick patternsOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Heikin Ashi with Session Wicks Strategy
1 stars

Fibo Wave MA - Auto Path (Plot) is an overlay indicator that projects Fibonacci-based wave structures and moving averages onto the price chart. The script calculates a wave period from two user-selected interactive anchor points and generates a secondary movin

Indicator v5 Moving averagesSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Fibo Wave MA - Auto Path (Plot)
1 stars

Plots a double-smoothed Bressert stochastic in a separate pane, built from %K and %D lines whose smoothing type can be chosen from a long list of moving averages such as DEMA, EMA, zero-lag variants and Hull-style averages. A second line pair with its own leng

Indicator v5 Oscillators & momentumMoving averages
Updated 6 months ago · None stated GitHub repository of DSS Bressert Stochastic MTF

RiskMetrics

by ivansoft
1 stars

A Pine Script v5 library that tracks compounded monthly return percentages in an array, capped at a maximum number of periods, so that ratio calculations can be built on them. It has an overload for excess returns over a benchmark. Settings include the returns

Library v5
Updated 1 year ago · None stated GitHub repository of RiskMetrics
261 stars

This indicator calculates standardized z-scores of price data across four different lookback periods (6, 14, 26, and 100). Standardizing data subtracts the moving average from the price and divides by the standard deviation. It applies a Double Exponential Mov

Indicator v5 Mean reversionVolatility & bands

Boftei's Strategy

by hasnocool
106 stars

Boftei's Strategy plots the difference between the log of the current close and the close a chosen number of bars earlier in a separate pane. It draws positive and negative histogram bars, a thin line of the same value, and dotted threshold lines. Crosses of t

Strategy v5 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Boftei's Strategy

Marubozu Black - Bearish

by TWODS-CAPITAL
37 stars

This indicator detects a bearish black marubozu on the price chart. It treats a candle as a match when the close is below the open, the body is longer than a 14-period exponential average of body size, and both upper and lower shadows are at most five percent

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Marubozu Black - Bearish
13 stars

This strategy evaluates market trend direction using a Noro TrendRibbon and creates a price corridor based on recent moving-average extremes, plotting directly on the price chart. It executes long entries when price dips below the corridor during an upward tre

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Noro TrendRibbon G004

CRT State Engine v7.6

by alboogycOdR
6 stars

CRT State Engine is an institutional trading framework based on Smart Money Concepts and Candle Range Theory. It plots session ranges, order blocks, Fair Value Gaps, liquidity sweeps, and Draw on Liquidity levels directly on the main price chart. The indicator

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State Engine v7.6

This strategy plots smoothed Heikin Ashi candlesticks directly on the price chart. It filters entries using CCI and Stochastic crossovers calculated on a separate higher timeframe. Long signals trigger on CCI crossing above 60 and Stochastic crossing above its

Strategy v5 Candlestick patternsSessions & time Repaints
Updated 5 months ago · None stated GitHub repository of Heikin Ashi with Session Wicks Strategy
1 stars

Fibo Wave MA - Auto Path Plot is an indicator that calculates and plots base moving averages along with Fibonacci-extended moving averages on the price chart. Users define a custom wave period by setting start and end times t1 and t2, with an adjustable center

Indicator v5 Moving averagesSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Fibo Wave MA - Auto Path Plot
1 stars

Overlay indicator that marks candles whose volume is the highest over 100, 200 and so on up to 1000 bars, plus an all-time high volume marker and a Hot Spot signal. Each level has its own show checkbox. To avoid live-bar flicker, every comparison uses the prio

Indicator v5 Volume
Updated 2 months ago · None stated GitHub repository of High Volume Ranks to 1K
1 stars

This Pine v5 indicator draws Future Line of Demarcation lines on the price chart: the price source is shifted forward by half a cycle for up to three cycle periods, with automatic or manual periods and bar multipliers based on the chart timeframe. Projected fo

Indicator v5 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of FLD with Projection Simple V4
1 stars

An indicator in a separate pane that calculates Sharpe and Sortino ratios from the chart symbol's periodic returns, using up to a chosen number of monthly or other periods. The comparison can be a fixed annual rate or the returns of a benchmark symbol, in whic

Indicator v5 Screeners & dashboards
Updated 1 year ago · None stated GitHub repository of Sharpe and Sortino Ratios

Function Markov Process

by ricardosantos79
261 stars

Function Markov Process is a Pine Script indicator function that models market state transitions using a three-by-three Markov chain transition matrix. It evaluates historical data categorized into bullish, bearish, or stagnant regimes (represented by values 1

Indicator v5 AI / machine learning
Updated 4 years ago · None stated GitHub repository of Function Markov Process

Boilerplate

by hasnocool
106 stars

Boilerplate is a foundational framework designed for automated strategy development. It integrates multi-timeframe Exponential Moving Average (EMA) and Average Directional Index (ADX) filters to avoid trading counter-trends or choppy markets, along with a sess

Strategy v5 TrendVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Boilerplate

Marubozu White - Bullish

by TWODS-CAPITAL
37 stars

This indicator detects a bullish white Marubozu on the price chart. It marks a white candle whose body is longer than a 14-bar exponential moving average of body size and whose upper and lower shadows are each no larger than five percent of that body. When the

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Marubozu White - Bullish
13 stars

This strategy pairs the Noro Trendribbon directional filter with price corridors formed by high and low moving averages. In an uptrend, it initiates long trades when price pulls below the upper band corridor, while in a downtrend it enters short positions when

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Noro TrendRibbon H005
6 stars

This indicator draws the high and low of one selected higher-timeframe candle as horizontal lines on the price chart. It reads the 4-hour or 1-hour candle that starts at a chosen New York hour (1 AM, 5 AM, or 9 AM) and extends both levels for a user-set number

Indicator v5 Support & resistanceSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of Dual-Mode CRT Levels (Corrected)
3 stars

Hercules Indicator 1.7 is a multi-filter trade signal generator designed to overlay entry conditions directly on the price chart. It evaluates engulfing candle patterns alongside multiple configurable filters, including trading session windows (Sydney, Tokyo,

Indicator v5 Candlestick patternsSessions & time
Updated 5 months ago · None stated GitHub repository of Hercules Indicator 1.7

3D Engine

by regalouisei
2 stars

This indicator draws a projected three-dimensional mesh on the price chart. It builds vector, face, mesh, camera and 4x4 matrix types, then applies scale, rotation and view transforms before projecting the scene with a field of view and near and far planes. In

Indicator v5
Updated 8 months ago · None stated GitHub repository of 3D Engine

Devis'So Ratio Label

by YuceSezar89
1 stars

Devis'So Ratio Label draws a small numeric label on the price chart. It accumulates percentage moves between consecutive closes, runs an RSI on that series, and divides the RSI change by the change in the cumulative series. Each label shows the ratio and a sho

Indicator v5 Oscillators & momentum
Updated 13 days ago · None stated GitHub repository of Devis'So Ratio Label

HUB 1020 1153am

by nishpa800
1 stars

A signal hub indicator that bundles many detection groups into plots on the price chart. Groups include White Flag momentum, overlap and super patterns, fauna clusters, relative volume windows, first two bars, a swing bottom and a pullback-and-jump follow-up b

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of HUB 1020 1153am

Gann Box 2024

by mikeyhu70
1 stars

This indicator draws a Gann box on the price chart between the latest swing high and swing low found within a lookback window, with Fibonacci-style percentage levels, labels and optional grid lines. Gann fans, angles and curves can be turned on, and the box ca

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Gann Box 2024

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