Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 85)

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

This strategy evaluates multi-factor breakout confluence using a customized scoring system on the price chart. It checks Minervini-style Volatility Contraction Pattern trend templates, TTM squeeze volatility compression, volume dry-up with OBV accumulation, mo

Strategy v6 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of TnSovereign Breakout Confluence V6
99 stars

This overlay indicator plots Jurik Adaptive Envelope Bands around price. It calculates a Jurik moving average as the middle line and builds upper and lower bands from that filter’s adaptive envelope. A ten-bar window tracks local deviation from the bands, and

Indicator v6 Moving averagesVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Jurik Adaptive Envelope Bands

A test strategy from a reference corpus that re-issues a pending stop entry every bar. When the 8-period EMA is above the 21-period EMA it places a buy stop at the previous bar high and cancels the sell stop, and otherwise it places a sell stop at the previous

Strategy v6 Moving averagesBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 94 Stop Entry Cancel No Regime Close
1 stars

This strategy draws on the price chart and filters directional signals with four optional checks. It compares a fast exponential moving average with a slower one, requires volume above its average when the volume audit is on, and aligns close with a higher-tim

Strategy v6 Moving averagesVolatility & bands
Updated 2 months ago · None stated GitHub repository of TnSovereign Fakeout Confirmed
99 stars

The Jurik Composite Fractal Behavior indicator computes a weighted average of efficient trend lengths as a composite fractal behavior value, also known as the trend duration index. It processes a user-specified source series using a max lookback length and cal

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Jurik Composite Fractal Behavior
1 stars

A test strategy from a reference corpus that checks order flipping with stop entries set so far from price that they always fill at the next bar open. At 08:00 it places a short stop entry and at 14:00 a long one, closing the opposite position each time, so ea

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 95 Multi-Cycle Open Fill Stops
1 stars

TnSovereign Fakeout Filter V6 is a trend-following strategy designed to reduce false breakouts by evaluating entries against a four-layer scoring system. It checks fast and slow EMA crossovers alongside volume surges, higher-timeframe trend alignment, and ATR

Strategy v6 TrendMoving averages Repaints
Updated 2 months ago · None stated GitHub repository of TnSovereign Fakeout Filter V6

DMX plots the Jurik Directional Movement Index in a separate pane. The indicator computes a smoothed version of the directional movement index using Jurik smoothing applied to the ADX components derived from true range, up and down directional moves. It applie

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Jurik Directional Movement Index (DMX)
1 stars

A test strategy from a reference corpus that repeats an order-flipping check with processing of orders at bar close switched on. At 08:00 it places a short stop entry and at 14:00 a long one, with stops set so far away that they fill at the next open, and clos

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 96 Multi-Cycle POOC Cross-Bar

This overlay strategy enters when a fair-value gap is larger than a minimum ATR multiple, volume exceeds 1.5 times its 20-bar average, and path efficiency over 20 bars clears a threshold. Longs also require price below a lookback high, and shorts require price

Strategy v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of TnSovereign Imbalance Confluence
99 stars

The Kairi Relative Index (KRI) indicator computes the percentage deviation of a source price from its simple moving average. It plots the resulting KRI value as a yellow line in a separate pane along with a dotted gray zero line. Users can select any source se

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Kairi Relative Index (KRI)
1 stars

The strategy detects range expansion by comparing the previous bar's range to its ATR multiple. It places pending stop entries above highs of up bars or below lows of down bars. On trigger it enters positions with take profit and stop loss in ticks using OCA g

Strategy v6 Volatility & bandsSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 97 - tp/sl gap reversal oca

TnSovereign NeuraRL

by raybird
1 stars

An experimental strategy that applies a small reinforcement learning agent, a dueling deep Q-network built with the NeuraLib library, to chart data. An eight-value state vector from price z-score, RSI, ATR ratio, EMA slope, volume, MACD and candle features fee

Strategy v6 AI / machine learning
Updated 2 months ago · None stated GitHub repository of TnSovereign NeuraRL

Kalman Filter (KALMAN)

by mihakralj
99 stars

This indicator applies a one-dimensional Kalman filter to a chosen price source and plots the filtered series on the price chart. Process noise and measurement noise set how quickly the estimate follows new data versus how much it trusts the measurement. The f

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Kalman Filter (KALMAN)
1 stars

This strategy identifies trend changes using a dual moving average crossover. It computes fast and slow simple moving averages of the close price and generates long entry signals on fast SMA crossover above slow and short signals on crossover below. Upon entry

Strategy v6 Moving averagesTrend
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 97a - tp/sl bracket isolate
1 stars

This overlay indicator detects Power of Three cycles on the price chart: an accumulation range, a manipulation sweep, and a distribution path. It confirms sweeps by a close back inside the range or a fifty percent retrace, and it can require a prior cycle high

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of TnSovereign Power of Three

KDJ Oscillator

by mihakralj
99 stars

The KDJ Oscillator is a momentum indicator that calculates an enhanced variation of the Stochastic Oscillator. It computes the Raw Stochastic Value from local price extremes over a user-defined lookback length and applies exponential smoothing to derive the K

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of KDJ Oscillator
1 stars

This strategy identifies long and short positions using a dual moving average crossover on the price chart. The fast and slow simple moving averages generate crossover signals that trigger market entries. The script caps the number of intraday filled orders to

Strategy v6 Moving averagesTrend
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 97b - intraday cap isolate
1 stars

A reversal strategy that looks for liquidity sweeps: price pokes beyond the prior swing high or low and closes back inside. Entries must agree with a higher-timeframe EMA 50 and 200 trend, pass an ATR volatility corridor and a candle body check, and optionally

Strategy v6 Mean reversionVolatility & bands
Updated 2 months ago · None stated GitHub repository of TnSovereign Reversal Engine

Keltner Channel (KC)

by mihakralj
99 stars

This indicator calculates a Keltner Channel on the price chart. The middle line is an exponential moving average of the chosen source, with a warmup weight so the average builds from the first bars. Upper and lower bands sit a multiple of average true range aw

Indicator v6 Volatility & bandsMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Keltner Channel (KC)
1 stars

A test strategy from a reference corpus that arms pending stop entries after a range expansion. When the previous bar's range exceeds a multiple of the prior ATR, it places a buy stop at the previous high if that bar closed up, or a sell stop at the previous l

Strategy v6 BreakoutVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 97c Range Expansion Pending Stop
1 stars

A basic Supertrend strategy with an optional volume filter, drawn on the price chart. The Supertrend line is calculated from ATR length and multiplier. A long or short entry is taken in the trend direction when volume exceeds a multiple of its moving average,

Strategy v6 TrendVolume
Updated 2 months ago · None stated GitHub repository of TnSovereign Supertrend Volume
99 stars

This indicator plots Kendall's Tau-a rank correlation between a chart source and the close of a second symbol. It counts concordant and discordant pairs inside a rolling window and divides their difference by the number of pairs, producing a value from -1 to +

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Kendall Rank Correlation

PF Probe 98 - Inside-Bar Engulf

by pineforge-4pass
1 stars

PF Probe 98 - Inside-Bar Engulf is a strategy that detects single-bar inside range patterns paired with candle direction filters. It identifies inside bars where the high is lower than the previous high and the low is higher than the previous low. A long entry

Strategy v6 Candlestick patterns
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 98 - Inside-Bar Engulf

A breakout strategy that scores setups from 0 to 100 using a trend template of stacked moving averages, a volatility contraction check, a squeeze test with Bollinger and Keltner bands, and volume flow. A custom free energy versus fractal entropy measure acts a

Strategy v6 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of TnSovereign Thermodynamic Breakout

KST Oscillator

by mihakralj
99 stars

This indicator plots the Know Sure Thing oscillator in a separate pane. It computes four rates of change on the selected source, smooths each with a simple moving average, and combines them with weights of one through four. A further simple moving average form

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of KST Oscillator
1 stars

This strategy calculates Keltner Channels using an Exponential Moving Average (EMA) for the midline and Average True Range (ATR) scaled by a multiplier for band width. It triggers a long entry when the close price crosses above the upper band and a short entry

Strategy v6 TrendVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 99 - Keltner Channel Break

A volatility squeeze strategy on the price chart. It detects when Bollinger Bands contract inside Keltner Channels, then waits for the squeeze to release. A long or short entry is considered when price closes outside the band on release and a custom free energ

Strategy v6 Volatility & bandsBreakout
Updated 2 months ago · None stated GitHub repository of TnSovereign Thermodynamic Squeeze
99 stars

This indicator calculates excess kurtosis, a measure of distribution tailedness, for a chosen source over a rolling lookback. It keeps running power sums and a circular buffer so each bar updates the fourth-moment statistic without rebuilding the window. The v

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Kurtosis, tailedness (KURTOSIS)

Detects swing break-of-structure (BOS) levels using confirmed pivot highs and lows. It records the most recent confirmed swing points and triggers a long trade when the bar closes above the last pivot high, or a short trade when it closes below the last pivot

Strategy v6 SMC / ICT / price actionBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe bos-curv-probe-01-swing-bos-trigger
1 stars

A momentum reversal strategy that uses the WaveTrend oscillator. A long is considered when the fast line crosses above its signal line from below the oversold level, and a short on a cross down from above the overbought level. A custom free energy and fractal

Strategy v6 Oscillators & momentumMean reversion
Updated 2 months ago · None stated GitHub repository of TnSovereign WaveTrend

Laguerre RSI (LRSI)

by mihakralj
99 stars

This indicator plots Laguerre RSI in a separate pane. It passes close through four cascaded Laguerre filter stages and forms a ratio of upward stage differences to total stage differences, producing a dimensionless value from 0 to 1. When all stages match, the

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Laguerre RSI (LRSI)
1 stars

This overlay strategy combines confirmed pivot break-of-structure with a curved linear-regression and ATR channel. It enters long when price breaks a confirmed pivot high and closes above the slope-adjusted channel midline, and enters short on the symmetric be

Strategy v6 BreakoutSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe bos-curv-probe-integration

TnSovereignAliceV6

by raybird
1 stars

TnSovereignAliceV6 evaluates price action using a five-part methodology comprising fractal efficiency, RSI, Bollinger Bands, proxy institutional flow, and MACD histogram momentum. Entries trigger when a user-defined minimum number of consensus conditions align

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of TnSovereignAliceV6

This indicator calculates a Normalized Least Mean Squares (LMS) adaptive FIR filter based on the Widrow-Hoff learning algorithm. It predicts the current bar price using weighted past values and dynamically adjusts its coefficients based on the prediction error

Indicator v6 TrendMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Least Mean Squares Adaptive Filter (LMS)
1 stars

This strategy plots the Kaufman Adaptive Moving Average on the price chart as an overlay. It generates buy signals on ta.crossover of close above the KAMA and sell signals on ta.crossunder of close below the KAMA. Long entries occur when flat or short, short e

Strategy v6 Moving averagesTrend Repaints
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe Kanuck-Probe-01-Kama-State
1 stars

TnSovereignEntropyCausalityV6 evaluates directional information flow between volume and price using symbolic encoding and an approximated transfer entropy metric. It calculates whether volume precedes price moves across a selectable lookback window while filte

Strategy v6 VolumeTrend
Updated 2 months ago · None stated GitHub repository of TnSovereignEntropyCausalityV6

Linear Decay (DECAY)

by mihakralj
99 stars

This indicator calculates a linear decay filter over a selected price source and plots the result directly on the price chart. The algorithm tracks local peaks and descends linearly by a fixed step equal to the inverse of the specified period whenever the pric

Indicator v6 TrendSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Linear Decay (DECAY)
1 stars

This strategy is a validation probe that forces a 500-bar history buffer. It calculates a long simple moving average of close, an RSI of close shifted by a configurable offset, and a lagged close. Those first two series are plotted but do not gate trades. It e

Strategy v6 Moving averagesOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe kanuck-probe-03-max-bars-back-500
99 stars

This indicator computes the linear regression endpoint and slope over a specified rolling lookback period. It manages historical price values internally using a circular array buffer, handling missing data by carrying forward the last valid price. The calculat

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Linear Regression (LINREG)
1 stars

This validation strategy tests the simultaneous runtime handling of Kaufman's Adaptive Moving Average (KAMA), intra-bar tick counting, and deep historical buffer retention. It enters trades when the closing price crosses above KAMA, gated by an intra-bar tick

Strategy v6 Moving averagesTrend Repaints
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe Kanuck-Probe-Integration

This overlay strategy enters only after a buy-side or sell-side liquidity sweep confirms a displaced fair value gap. It sizes the position from a fixed fraction of equity, uses a dynamic stop based on that risk, and sets the target from a reward-to-risk multip

Strategy v6 SMC / ICT / price actionVolatility & bands
Updated 2 months ago · None stated GitHub repository of TnSovereignIctSniperV6 [TeleNexus]
1 stars

This strategy draws an exponential moving average of close and an ATR envelope around it on the price chart. It enters one long contract when close crosses above the upper band and one short contract when close crosses below the lower band, reversing only from

Strategy v6 BreakoutMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe kkb-probe-02-breakout-trigger

TNSovereignLib

by raybird
1 stars

TNSovereignLib is a Pine Script v6 library providing modular components for trading systems. It defines custom data structures including an execution regime enumeration and a signal payload user-defined type containing price, validity flags, and metadata tags.

Library v6
Updated 2 months ago · None stated GitHub repository of TNSovereignLib

LOESS Filter

by mihakralj
99 stars

This indicator plots a LOESS smoother on the price chart. It fits a locally weighted linear regression inside a sliding window and returns the fitted value at the window center. The length setting sets the window, which is forced to an odd size of at least thr

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of LOESS Filter
1 stars

This validation strategy calculates fast and slow simple moving averages of the closing price. It submits a fixed-size long entry when the fast SMA crosses above the slow SMA, and enters short when the fast SMA crosses below the slow SMA, reversing any open po

Strategy v6 Moving averagesTrend
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe kkb-probe-03-margin-100-pct

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