Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 4)

Scripts written for Pine Script version 6, the current version of TradingView's language. They paste into the Pine Editor and run as they are.

Pine scripts4,367
Code shown here2,412open licence
Updated in a year4,021
No repaint flag3,857

Pine Script v6: Indicators, Strategies and Libraries

Medallion Cipher

by ricksimpsontrading
3 stars

Medallion Cipher is a separate-pane indicator that combines a four-state hidden Markov model (bull, bear, range, and crisis) with weighted confluence signals. It can include mean reversion, trend, session timing, pattern matching, Hurst exponent, Shannon entro

Indicator v6 AI / machine learningMean reversion
Updated 9 days ago · None stated GitHub repository of Medallion Cipher

JCO Swings Trend HTF

by jcornierfra
3 stars

This Pine Script indicator detects swing highs and lows on a higher timeframe while analyzing the current chart timeframe. It calculates trend direction using swing structures with bullish or bearish momentum and compression status. CHoCH detection identifies

Indicator v6 TrendSMC / ICT / price action
Updated 12 days ago · None stated GitHub repository of JCO Swings Trend HTF

Adaptive Moving Average

by AkashSasikumar47
3 stars

Adaptive Moving Average (AMA) is a trend-following indicator that dynamically adjusts smoothing based on recent price volatility. It blends a fast EMA (default length 2) with a slow EMA (default length 30) using an adaptive multiplier derived from the highest

Indicator v6 TrendMoving averages
Updated 2 weeks ago · MIT GitHub repository of Adaptive Moving Average
3 stars

This strategy replays historical execution logs exported from TradersPost on the main price chart. It iterates through hardcoded timestamp, direction, price, and quantity arrays generated by an external conversion tool. When the current bar timestamp matches a

Strategy v6
Updated 3 weeks ago · MIT GitHub repository of TradersPost Trade Replay Strategy

Basic Strategy Scaffold

by jpantsjoha
3 stars

This strategy enters long when a fast EMA crosses above a slow EMA and short when it crosses below, only after the bar is confirmed. It sizes each order as a percentage of equity and exits with a percentage stop and a percentage target measured from the averag

Strategy v6 TrendMoving averages
Updated 3 weeks ago · Custom licence GitHub repository of Basic Strategy Scaffold

This indicator plots buy and sell signals on the price chart overlay using Supertrend as the primary trend filter combined with multiple moving average crossover strategies. Users select from preset modes or enable custom combinations via toggles for 12 differ

Indicator v6 TrendMoving averages
Updated 5 weeks ago · MIT GitHub repository of Quantum Queen X + Supertrend Signal

Mean Reversion T

by Ye-Yu-Mo
3 stars

Mean Reversion T is a dual-engine intraday indicator designed for 15-minute charts to detect mean-reversion and shock-reversal trading opportunities. It calculates Z-score price deviations from a moving average mean alongside regime scores across 15-minute and

Indicator v6 Mean reversionMoving averages Repaints
Updated 2 months ago · MPL-2.0 GitHub repository of Mean Reversion T

RTD IFVG

by Rickylel
3 stars

RTD IFVG tracks inverted fair value gaps (IFVGs) and identifies bullish or bearish trade setups when price closes through gaps following liquidity sweeps, higher-timeframe FVG reactions, or SMT divergence. The indicator grades setups from A+ to C based on posi

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of RTD IFVG

Luxy Big Beautiful ORB

by hintheman
3 stars

Draws Opening Range Breakout levels on the price chart for 5, 15, 30 and 60 minute ranges, each with its own colour and an optional mid-range line. It detects breakouts and retests of those ranges using a percentage buffer, a minimum number of bars outside the

Indicator v6 BreakoutSessions & time
Updated 2 months ago · Custom licence GitHub repository of Luxy Big Beautiful ORB

TradingFlow: Stoch X

by realanthonyc
3 stars

TradingFlow: Stoch X is a Stochastic oscillator indicator plotted in a separate pane. It calculates standard percent K and percent D lines along with secondary crossover lines to generate trade signals outside overbought and oversold bands. The indicator autom

Indicator v6 Oscillators & momentumDivergence
Updated 2 months ago · MPL-2.0 GitHub repository of TradingFlow: Stoch X

KatanaFlow

by 7mertyavuz
3 stars

KatanaFlow is a trend-following overlay indicator that combines a Twin Range Filter with a smoothed moving average line to identify market direction and signal reversals. It calculates adaptive volatility bands using dual-period range smoothing to filter out p

Indicator v6 TrendVolatility & bands
Updated 3 months ago · MIT GitHub repository of KatanaFlow

This indicator plots pivot levels and inflection zones on the price chart. It calculates P, S1 to R4 pivot points using selected type such as Traditional or Fibonacci and anchor timeframe. Inflection zones appear as supply and demand boxes based on swing highs

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
Updated 3 months ago · MIT GitHub repository of Combined Advanced Trading Blueprint

Cyber HUD XAU

by panzmoravylab
3 stars

Cyber HUD XAU is an overlay indicator designed for XAUUSD that combines trend, momentum, and volatility filters. It calculates fast and slow ATR ratios alongside local price ranges to detect consolidation and chop filter states. The script evaluates candle bod

Indicator v6 Volatility & bandsOscillators & momentum
Updated 4 months ago · None stated GitHub repository of Cyber HUD XAU
3 stars

Daily High Levels calculates and tracks regular trading hours (RTH) session open, high, low, and close values for intraday charts based on customizable New York session bounds. It fetches the prior daily close of NQ futures using higher-timeframe data retrieva

Indicator v6 Support & resistanceSessions & time Repaints
Updated 5 months ago · None stated GitHub repository of Daily High Levels
3 stars

Calculates and plots ICT concepts on the price chart, including Buy-Side Liquidity (BSL) and Sell-Side Liquidity (SSL) levels identified through fractal swings. The indicator detects liquidity sweeps, identifies Premium and Discount valuation zones with an Equ

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of ICT SSL Premium & Discount

DP2

by grinay
3 stars

DP2 is a price-chart strategy that looks for a short dump between the chosen from and to prices, optionally requiring a break of a multi-day low while ignoring moves larger than a dump cap. It can enter through classic, two-close, break-and-retest, ATR-stop, a

Strategy v6 Mean reversionVolatility & bands
Updated 8 months ago · MIT GitHub repository of DP2

Regard Hodler's Profile

by regardhodler
3 stars

The Regard Hodler's Profile indicator plots a volume profile on the price chart. It analyzes the last lookback bars to bin prices and accumulate buy and sell volumes based on candle direction. Stacked green and red bars appear at each price level, with a dashe

Indicator v6 VolumeSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Regard Hodler's Profile

Stella's Bollinger Bands

by stella-entry
3 stars

This strategy plots Bollinger Bands on the price chart and trades a long-only mean-reversion idea. It enters when the close is below the lower band, or when the low touches that band if Touch mode is selected, and only while flat. With the opposite-band exit e

Strategy v6 Volatility & bandsMean reversion
Updated 8 months ago · MIT GitHub repository of Stella's Bollinger Bands

JINADA Down

by cathxrsys
3 stars

JINADA Down is a multi-oscillator visualizer rendered in a separate chart pane. It constructs an oscillator map using Momentum, Commodity Channel Index, Stochastic, and RSI metrics. The indicator calculates and identifies standard and hidden bullish and bearis

Indicator v6 Oscillators & momentumDivergence
Updated 9 months ago · GPL-3.0 GitHub repository of JINADA Down

Traffic Light Strategy

by Pa1-Tiwari
3 stars

The Traffic Light Strategy is a breakout trading system overlaid on the main price chart. It detects momentum transitions whenever two consecutive candles have opposing colors (bullish followed by bearish, or vice versa). Upon detection, it marks the combined

Strategy v6 BreakoutCandlestick patterns
Updated 10 months ago · MIT GitHub repository of Traffic Light Strategy

Liquidity Health Index (LHI)

by LucasRibeiroCaetano
3 stars

This indicator plots a composite Liquidity Health Index in a separate pane. It averages four 0 to 100 scores: the US 10-year minus 2-year yield spread, an inverse CBOE VIX score, an inverse MOVE index score, and the year-over-year change in the Fed balance she

Indicator v6 Volatility & bandsScreeners & dashboards
Updated 11 months ago · Custom licence GitHub repository of Liquidity Health Index (LHI)
3 stars

%R Trend Exhaustion is a momentum and trend exhaustion indicator based on dual-period Williams %R calculations. It combines a standard fast %R with a slow-period %R to identify extended trends and subsequent exhaustion breaks around overbought and oversold thr

Indicator v6 Oscillators & momentumTrend Repaints
Updated 12 months ago · None stated GitHub repository of %R Trend Exhaustion [upslidedown]

Supertrend Strategy

by dharaarpan7
3 stars

This strategy executes long trades based on the Supertrend indicator and candle color confirmation. It enters when a fresh bullish Supertrend flip occurs on a green candle and exits when the trend flips bearish on a red candle. It also places bracket orders wi

Strategy v6 TrendVolatility & bands
Updated 1 year ago · MIT GitHub repository of Supertrend Strategy

Crypto Bull Market Strategy

by EngineeredSuccess
3 stars

Crypto Bull Market Strategy is a long-term Bitcoin cycle indicator overlaying price targets and trend phase tracking on the price chart. It calculates a 50-week simple moving average to evaluate long-term market trends and monitors progress toward user-defined

Indicator v6 TrendMoving averages
Updated 1 year ago · Custom licence GitHub repository of Crypto Bull Market Strategy
3 stars

Plots volume distribution across price levels over a user-defined historical window. Divides price range into equal-height rows and aggregates volume in each. Highlights the Point of Control (highest volume row) with a bold line and the Value Area (containing

Indicator v6 VolumeSupport & resistance
Updated 1 year ago · None stated GitHub repository of Volume Profile [ActiveQuants]

Golden Strategy

by AliAhmadi-Software
3 stars

The Golden Strategy is a Pine Script v6 strategy that overlays EMA and SMA on the price chart to detect crossovers for trend direction. It adds MACD for momentum confirmation and RSI to identify overbought and oversold conditions. Volume average filters out lo

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Golden Strategy

Cipher A

by diehardyearone
3 stars

Cipher A is a trend-following overlay indicator that plots a multi-line moving average ribbon alongside long-term moving averages, VWAP, and higher-timeframe weekly and monthly key levels directly on the price chart. It incorporates underlying WaveTrend, RSI,

Indicator v6 TrendMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of Cipher A

Pivot Points

by roshaneforde
3 stars

The Pivot Points indicator plots horizontal lines on the price chart to mark bullish and bearish pivot points. It identifies shifts from bullish to bearish or vice versa by scanning the last 100 candles by default. Buy lines appear in blue and sell lines in re

Indicator v6 Support & resistanceTrend
Updated 1 year ago · MIT GitHub repository of Pivot Points

This indicator plots a MACD-style oscillator in a separate pane. It subtracts a slow moving average from a fast moving average of the chosen source, then smooths that difference into a signal line. SMA or EMA can be selected for both the oscillator and the sig

Indicator v6 Oscillators & momentumMoving averages
Updated 1 year ago · MPL-2.0 GitHub repository of Relative Moving Average Convergence Divergence (RMAC)

This indicator detects pivot highs and lows, evaluates how often levels are respected by price, and uses an internal logistic regression model to estimate the probability that a level will hold. Qualifying support and resistance lines are projected onto the pr

Indicator v6 Support & resistanceAI / machine learning
Updated yesterday · None stated GitHub repository of Support and Resistance Logistic Regression | Flux Charts

CNN Fear and Greedy Index

by CasualStudy
2 stars

CNN Fear and Greedy Index plots historical sentiment data from the CNN Fear and Greed Index in a separate pane below the chart. Because Pine Script cannot fetch external API data dynamically, the script utilizes a hardcoded array of daily sentiment values upda

Indicator v6
Updated yesterday · None stated GitHub repository of CNN Fear and Greedy Index
2 stars

This indicator constructs bar-by-bar volume profiles and volume delta distributions directly on the price chart. Utilizing lower-timeframe data through intrabar requests, it calculates volume distribution across a configurable number of price rows per bar, pin

Indicator v6 VolumeSupport & resistance
Updated 3 days ago · None stated GitHub repository of Intrabar Profile [Kioseff Trading]

Divergence Signal Alerts

by allanninal
2 stars

This indicator detects regular and hidden divergences between price and RSI or MACD histogram oscillators, drawing lines and arrows directly on the price chart. It identifies swing highs and lows using configurable left and right pivot lookback windows, evalua

Indicator v6 DivergenceOscillators & momentum
Updated 7 days ago · Custom licence GitHub repository of Divergence Signal Alerts

BTC MA Accumulation v1

by yalili8521
2 stars

BTC MA Accumulation v1 is a scalping strategy designed primarily for 1-minute Bitcoin charts. It identifies trend continuation by requiring a triple moving average stack alongside steady price accumulation or distribution. The script counts consecutive rising

Strategy v6 TrendMoving averages
Updated 8 days ago · None stated GitHub repository of BTC MA Accumulation v1

1x MA = Moving Average

by piecioshka
2 stars

This indicator plots a single moving average of user-defined length and type overlaid on the price chart. The average can be SMA, EMA, WMA, VWMA or RMA with default length 50 and EMA type. The line color is also configurable. An optional label at the end of th

Indicator v6 Moving averages
Updated 11 days ago · MIT GitHub repository of 1x MA = Moving Average

MCDX Smart Money

by vtnhqw
2 stars

MCDX Smart Money is a separate pane momentum oscillator that calculates and categorizes momentum components into Banker, Hot Money, and Retailer profiles using modified RSI calculations. The values are computed using configurable RSI periods, bases, and sensit

Indicator v6 Oscillators & momentum
Updated 11 days ago · None stated GitHub repository of MCDX Smart Money

This multi-timeframe indicator plots technical analysis tools directly on the price chart using 1-hour higher timeframe data. It calculates 1-hour Exponential Moving Averages (20, 30, 40), a custom Rank Correlation Index (RCI), and MACD divergence signals. Add

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 weeks ago · None stated GitHub repository of Ver15 Environment Recognition (Provisional Pivot)

OWS Context

by vishnu-vardhan-d
2 stars

This indicator evaluates institutional market structure by tracking five core behaviors: liquidity sweeps with reclaims, stopping volume, range compression and expansion, breaks of structure, and order block mitigations. When a user-defined minimum number of p

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 weeks ago · MIT GitHub repository of OWS Context

ORB Multi-Model Indicator

by BobLeeHacker
2 stars

This indicator plots Opening Range Breakout signals on the price chart for the New York session. It implements nine ORB models with varying conditions including volume filters, RSI thresholds, FVG detection, and compression requirements. Signals display entrie

Indicator v6 BreakoutSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of ORB Multi-Model Indicator
2 stars

The Adaptive Decycler Supertrend indicator plots an adaptive decycler baseline directly on the price chart. It adjusts its cutoff frequency between minimum and maximum bounds based on price efficiency measured over a chosen lookback period. Using the root-mean

Indicator v6 TrendVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Adaptive Decycler Supertrend

FortiTrade Elite Multi-Strategy with DeepSeek Turbo is an overlay trading strategy that combines trend-following, momentum scalping, grid bounds, and external signal inputs. It calculates dynamic volatility-adjusted RSI, adaptive fast and slow EMAs, Bollinger

Strategy v6 TrendOscillators & momentum
Updated 3 weeks ago · MIT GitHub repository of FortiTrade Elite Multi-Strategy with DeepSeek Turbo

SMC Marks

by kxngHADES
2 stars

This Pine Script indicator automatically marks Smart Money Concepts on the price chart. It identifies swing highs and lows as HH, HL, LH, LL using a configurable swing length. It detects breaks of market structure (BMS/BOS) and changes of character (CHoCH), wi

Indicator v6 SMC / ICT / price actionTrend
Updated 4 weeks ago · None stated GitHub repository of SMC Marks

EMA & PVSR Master MP

by midngtpickle
2 stars

This indicator unifies Price Volume Spread Analysis (PVSRA) with a suite of moving averages and VWAP. It calculates volume classifications—flagging climax, above-average, and regular bars—and projects synchronized candle coloring, six customizable EMAs, three

Indicator v6 Moving averagesVolume
Updated 4 weeks ago · Custom licence GitHub repository of EMA & PVSR Master MP

Crypto Trading Strategy

by AmjadSaidam
2 stars

Crypto Trading Strategy identifies breakout setups on the price chart by combining Bollinger Bands with daily cumulative volume delta. It computes a standard Bollinger Band envelope alongside a daily resetting cumulative volume series normalised into z-scores.

Indicator v6 BreakoutVolume
Updated 5 weeks ago · MIT GitHub repository of Crypto Trading Strategy

STA S&R v2

by balacloud
2 stars

This indicator plots support and resistance levels on the price chart based on pivot detection. It identifies potential reversal points by finding local highs and lows with specified strength. For each level, it counts how many times price has touched or appro

Indicator v6 Support & resistance
Updated 5 weeks ago · None stated GitHub repository of STA S&R v2

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