Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 86)

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

1 stars

This indicator ranks swing-pivot liquidity pools on the price chart and marks the highest-scoring pool as the current magnet. It clusters equal highs and lows, then scores each pool from strength, proximity, age decay, and momentum bias. A higher-timeframe EMA

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

Log-Cosh Loss

by mihakralj
99 stars

Log-Cosh Loss computes a numerically stable log-cosh of the difference between an actual series and a predicted series, then plots the simple moving average of that loss over a user-set length. Defaults compare close with open. It draws the result in a separat

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Log-Cosh Loss

PF probe kkb-probe-integration

by pineforge-4pass
1 stars

This strategy combines a one-dimensional Kalman filter with an EMA midline and ATR breakout bands. It enters long when the Kalman estimate rises and close crosses above the upper band, and short when the estimate falls and close crosses below the lower band. A

Strategy v6 TrendVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe kkb-probe-integration
1 stars

TnSovereignLiquidityMatrixV6 is a Pine Script v6 strategy that identifies liquidity zones for trading. It extracts a macro anchor point from the highest volume bar on a user-defined timeframe such as daily. Fibonacci levels are then extended using ATR multiple

Strategy v6 VolumeSupport & resistance
Updated 2 months ago · None stated GitHub repository of TnSovereignLiquidityMatrixV6

This indicator computes the cumulative distribution function (CDF) of a log-normal distribution applied to a min-max normalized price series. It normalizes the source series within a rolling lookback window and calculates the CDF using an Abramowitz and Stegun

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Log-Normal Distribution CDF (LOGNORMDIST)

This strategy confirms swing pivot highs and lows and compares each new pivot with the previous swing of the same type. It draws on the price chart. A long entry fires when a confirmed pivot high is a higher high and the position is flat or short. A short entr

Strategy v6 Support & resistanceTrend
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe liquidity-sweep-probe-01-pivot-swing
1 stars

This strategy draws on the price chart and trades structural breakouts. It stores confirmed pivot highs and lows, then looks for a close beyond the last pivot in the direction of an exponential moving average. A thermodynamic check must also pass, with free en

Strategy v6 SMC / ICT / price actionBreakout
Updated 2 months ago · None stated GitHub repository of TnSovereignMarketStructureV20
99 stars

This indicator applies a natural logarithmic transformation to a chosen price series and plots the result in a separate pane. For each bar it returns the natural logarithm of the source when the value is positive, and returns a missing value when the source is

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Logarithmic Transformation (LOG)
1 stars

This strategy detects liquidity sweep patterns based on pivot high and pivot low levels calculated over configurable left and right bar periods. A bullish sweep occurs when a candle's low pierces below the most recent pivot low while closing back above it, tri

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe Liquidity-Sweep-Probe-02-Sweep-Bar
99 stars

The sigmoid indicator applies the logistic function to a source series, transforming any real-valued input into the range between 0 and 1. It calculates the output using the formula S(x) = 1 / (1 + exp(-k * (x - x0))), where k is the steepness factor and x0 is

Indicator v6 Moving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Logistic Function (SIGMOID)

This strategy tracks liquidity sweeps across pivot highs and lows to trigger delayed reversal entries. It identifies pivots based on configurable left and right bar lengths and records sweeps when the price breaches a pivot but closes back inside it. Upon dete

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe liquidity-sweep-probe-03-reentry-on-sweep

Lowest Value (LOWEST)

by mihakralj
99 stars

This indicator plots the lowest value of a chosen source over a rolling lookback. It uses a monotonic deque so each bar updates the window minimum without scanning the whole period. A period input sets the lookback length, and a source input selects the series

Indicator v6 Support & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Lowest Value (LOWEST)
1 stars

This strategy detects pivot highs and lows to establish swing structure, then identifies liquidity sweeps where price breaks the wick of the most recent pivot and closes back inside it. After a one-bar delay on continuation, it fires long entries on bullish st

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe liquidity-sweep-probe-integration

Lunar Phase (LUNAR)

by mihakralj
99 stars

This indicator calculates the lunar phase for each bar from the bar open timestamp using orbital elements, perturbation terms, and epoch corrections. It plots a continuous phase value from 0 at new moon to 1 at full moon in a separate pane. It marks new moon n

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Lunar Phase (LUNAR)

This strategy detects market regime state transitions based on pivot high and low break levels. It calculates pivot highs and lows using a specified strength setting and updates the market state when the close price breaks above the last pivot high or below th

Strategy v6 TrendBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe Market Shift Probe 03 Shift Driven Entry

MA Envelope (MAE)

by mihakralj
99 stars

The MA Envelope indicator calculates upper and lower channel bands shifted by a user-defined percentage around a baseline moving average. It supports Simple Moving Average, Exponential Moving Average, and Weighted Moving Average calculation types. The script p

Indicator v6 Moving averagesSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of MA Envelope (MAE)
1 stars

This strategy maintains a market regime state based on breaks through recent pivot highs and lows. It tracks pivot levels with user-set strength and flips from neutral to bull on price closing above the last pivot high or to bear on closing below the last pivo

Strategy v6 TrendSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe Market-Shift-Probe-01-Shift-State
1 stars

TnSovereignSignalForgeV20 is a price-chart strategy that combines seven directional votes from RSI, EMA, MACD, volume, VWAP, Bollinger Bands, and a volume oscillator. A long condition requires the vote total to meet a minimum agreement setting. A thermodynamic

Strategy v6 Oscillators & momentumMoving averages
Updated 2 months ago · None stated GitHub repository of TnSovereignSignalForgeV20
99 stars

This script calculates Bill Williams' Market Facilitation Index (BW MFI) to evaluate price movement efficiency relative to trading volume. It computes the range between the high and low prices divided by volume for each bar, returning zero when volume is zero.

Indicator v6 VolumeVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Market Facilitation Index (MARKETFI)

This Pine Script strategy computes rolling highest and lowest prices over a user-set window. It draws reference levels on the price chart and issues long signals on close crossing the prior rolling low plus short signals on close crossing the prior rolling hig

Strategy v6 TrendSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe market-shift-probe-02-rolling-extreme
1 stars

This strategy plots on the price chart and combines seven scored models into a weighted composite. It scores RSI extremes, volume spikes against a 20-bar average, price versus VWAP, EMA 9 and 21 alignment, MACD direction, Bollinger band location, and an estima

Strategy v6 Oscillators & momentumMoving averages
Updated 2 months ago · None stated GitHub repository of TnSovereignSignalForgeV6

Mean %Error (MPE)

by mihakralj
99 stars

Mean %Error measures the average percentage difference between an input price series and a predicted target, set by default to its Exponential Moving Average. It calculates individual bar percentage errors and computes a sliding average over a customizable loo

Indicator v6 Moving averagesVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Mean %Error (MPE)
1 stars

This strategy composes confirmed pivot breaks, a rolling price extreme, and a state-edge detector into overlay entries on the price chart. Market state turns bullish when close breaks the latest confirmed pivot high and bearish on a break of the latest pivot l

Strategy v6 Support & resistanceBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe market-shift-probe-integration
1 stars

This strategy plots on the price chart and measures fractal efficiency over 10, 20, and 40 bars. It multiplies those efficiencies into a connectivity score and requires a volume z-score above a threshold. A long opens when connectivity is high, the 10-bar aver

Strategy v6 TrendVolume
Updated 2 months ago · None stated GitHub repository of TnSovereignTopologicalSutureV6
99 stars

Calculates the Mean Absolute Percentage Deviation (MAPD) between a chosen price source and its exponential moving average over a specified period. It measures relative dispersion by averaging percentage differences using an internal circular buffer algorithm.

Indicator v6 Volatility & bandsMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Mean Absolute %Deviation (MAPD)
1 stars

This strategy enters trades based on EMA crossovers and manages exits with tight tick-based bracket orders on the price chart. It calculates fast and slow Exponential Moving Averages, triggering long entries on bullish crossovers and short entries on bearish c

Strategy v6 Moving averagesScalping
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe Scalping Tight TP SL Points
99 stars

This indicator calculates the mean absolute percentage error between a chosen price source and an exponential moving average of that same source. It averages absolute percentage differences with a circular buffer over the selected lookback and plots the result

Indicator v6 Moving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Mean Absolute %Error (MAPE)
1 stars

This strategy plots a fast and a slow exponential moving average on the price chart and flips position when they cross. A crossover of the fast EMA above the slow EMA enters one unit long, and a crossunder enters one unit short. There is no stop loss, take pro

Strategy v6 Moving averagesScalping
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe scalping-probe-02-fast-ma-trigger
1 stars

The strategy calculates the point of control and value area from the volume profile using a lookback of 150 bars and 24 rows. It applies a fast EMA trend filter, a V18 coherence resonance check with minimum threshold of 1.6, and an ATR volatility filter requir

Strategy v6 VolumeSupport & resistance
Updated 2 months ago · None stated GitHub repository of TnSovereignVolumeProfileScalpV6
99 stars

This indicator calculates the mean absolute error between a selected price source and an exponential moving average of that same source. Absolute differences are averaged with a circular buffer over the chosen period, and the period is limited between 1 and 40

Indicator v6 Moving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Mean Absolute Error (MAE)
1 stars

This strategy combines a three-tier EMA stack, RSI momentum filtering, and channel breakout rules to generate trend-following entries on the price chart. It detects swing highs and swing lows to draw connecting trend lines across pivot points. Entries trigger

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe Trendmaster Integration
99 stars

This indicator plots Mean Absolute Scaled Error between a selected price source and an exponential moving average of that source. Absolute differences are divided by a scale equal to the mean absolute bar-to-bar change of the source, computed once from the fir

Indicator v6 Moving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Mean Absolute Scaled Error (MASE)
1 stars

PF Probe Trendmaster Trend Line Projection is a Pine Script strategy designed to evaluate trend line projections and slope math. It identifies swing pivot highs and lows using a configurable pivot strength setting and draws trend lines directly on the price ch

Strategy v6 TrendSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe Trendmaster Trend Line Projection
1 stars

TnSovereignVwapRegimeV6 is a mean-reversion strategy designed to trade price exhaustion away from the volume-weighted average price (VWAP). It calculates standard deviation bands around a session VWAP and tracks price deviation in normalized standard deviation

Strategy v6 Mean reversionVolatility & bands
Updated 2 months ago · None stated GitHub repository of TnSovereignVwapRegimeV6
1 stars

This strategy tracks a three-tier exponential moving average (EMA) stack to identify trend alignment regimes. It defines a bullish state when fast EMA is above mid and mid is above slow, and a bearish state when inverted. Orders execute strictly on state trans

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe trendmaster-probe-02-multi-tier-ma
1 stars

Calculates the classic WaveTrend oscillator using exponential moving averages and absolute deviations of typical price. Entries trigger on momentum reversals across timeframe-specific overbought and oversold thresholds, filtered through configurable quality ga

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

Mean Deviation

by mihakralj
99 stars

This indicator calculates the mean absolute deviation of a chosen source from its mean over a lookback period. A circular buffer keeps a running sum, then averages the absolute distance of each stored value from that mean. It plots the result as a line in a se

Indicator v6 Volatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Mean Deviation
1 stars

This strategy detects long and short signals using a fast EMA crossing above or below a slow EMA. Entries only trigger when a recent pivot exists for anchoring. Long entries place a stop loss at the last pivot low and a take profit at 2R distance using the ent

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe trendmaster-probe-03-pivot-tp-sl

Mean Error (ME)

by mihakralj
99 stars

This indicator calculates the mean error between a selected price source and an exponential moving average of that source. It subtracts the EMA from the source, then averages those errors over a user-defined lookback with a circular buffer that behaves like a

Indicator v6 Moving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Mean Error (ME)

This strategy evaluates a triple-confluence entry gate combining trend, momentum, and structure filters on the price chart. It enters long when a fast exponential moving average is above a slow exponential moving average, RSI exceeds a defined threshold, and t

Strategy v6 TrendOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe Trendmaster-Probe-04 Trend Entry Gate

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