Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 80)

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

Tn Sovereign FlowZone v6 is a strategy script that plots signals on the price chart using EMA crossovers combined with confluence scoring. The script calculates confluenceScore from trend EMA, volume SMA comparison, and RSI momentum to confirm EMA20/50 crossov

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Tn Sovereign FlowZone v6
99 stars

This indicator calculates market cycle phase using John Ehlers' Phasor Analysis methodology. It correlates the price series against cosine and negative-sine reference waves via dual Pearson correlation to extract real and imaginary phasor components. From thes

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Phasor Analysis (HT_PHANA)
47 stars

This indicator plots a trimmed mean moving average of the close on the price chart. It sorts each lookback window, drops a user-set percentage of the lowest and highest values from each tail, and averages the remaining middle portion. Period sets the window le

Indicator v6 Moving averages
Updated 8 months ago · MIT GitHub repository of TRIM: Trimmed Mean Moving Average

This overlay indicator detects a trading range from clustered pivots, falling back to the highest and lowest prices over a lookback, and scores it with eight weighted factors. The score moves the range through Inactive, Building, Confirmed, Mature, and Breakin

Indicator v6 Support & resistanceVolatility & bands
Updated 3 days ago · MIT GitHub repository of Trading Range State Machine [WavesUnchained]

Wilder's Moving Average (RMA)

by mushroom-men-Trading
2 stars

This script calculates and plots Wilder's Relative Moving Average (RMA) of a chosen source over a user-defined period. It applies an optimized exponential warmup compensator to ensure accurate early bar values while maintaining O(1) computational complexity. T

Indicator v6 Moving averages
Updated 9 months ago · None stated GitHub repository of Wilder's Moving Average (RMA)
1 stars

The strategy applies the Parabolic SAR indicator to detect trend reversal flips. It monitors when the SAR crosses from above to below the close (bullish flip) to enter long positions or from below to above (bearish flip) to enter short positions. Opposite posi

Strategy v6 TrendMoving averages
Updated 7 days ago · Apache-2.0 GitHub repository of PF probe 101 - parabolic sar flip

NO.1 Major Daily Signal v2

by vedkanani123
1 stars

A price-chart indicator that prints buy and sell labels aimed at one larger intraday price move per UTC day, with the target size set in price units. A first signal can come from a trend breakout or a completed Asia range break, optionally preferring the day-o

Indicator v6 TrendBreakout Repaints
Updated 2 months ago · None stated GitHub repository of NO.1 Major Daily Signal v2
1 stars

The TN Sovereign Footprint POC v6 strategy calculates a simulated Point of Control by identifying the highest volume node in a lookback period using the average of high, low, and close prices. It plots on the price chart as an overlay and signals buy or sell e

Strategy v6 VolumeBreakout
Updated 2 months ago · None stated GitHub repository of TN Sovereign Footprint POC v6

Calculates John Ehlers' Recursive Median Filter, a nonlinear filter combining a 5-bar running median with exponential smoothing to reduce impulsive noise while maintaining responsiveness. The smoothing factor is calculated from the cycle period setting using E

Indicator v6 Moving averagesTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Recursive Median Filter (RMED)

TRIX

by mihakralj
47 stars

The TRIX indicator calculates the percentage rate of change of a triple-smoothed exponential moving average (EMA) applied to a selected price source. It incorporates explicit warm-up logic to ensure stable runtime initialization without relying on uncompensate

Indicator v6 Oscillators & momentumMoving averages
Updated 8 months ago · MIT GitHub repository of TRIX

Trend Persistence Score calculates a composite trend-efficiency oscillator plotted in a separate pane, grading trend strength and durability on a 0 to 100 scale. It integrates four distinct metrics: linear regression R-squared, Kaufman Efficiency Ratio, ADX wi

Indicator v6 TrendVolatility & bands
Updated 3 days ago · MIT GitHub repository of Trend Persistence Score [WavesUnchained]

PF Probe 104 - Supertrend Flip

by pineforge-4pass
1 stars

This strategy calculates the Supertrend indicator using a configurable ATR length and factor to identify trend reversals. It plots directly on the main price chart. When the Supertrend direction flips from bearish to bullish, the strategy closes any open short

Strategy v6 TrendVolatility & bands
Updated 7 days ago · Apache-2.0 GitHub repository of PF Probe 104 - Supertrend Flip

NO.1 Perfect Buy/Sell

by vedkanani123
1 stars

A price-chart indicator that stays always in one direction after the first confirmed mark: a buy exits shorts and holds long until the next sell, and the reverse. It uses a causal trail, trend, range and shock regime detection, a score threshold and an optiona

Indicator v6 TrendVolatility & bands Repaints
Updated 2 months ago · None stated GitHub repository of NO.1 Perfect Buy/Sell
1 stars

A long-only strategy built on fair value gaps. A bullish gap is detected when a bar's low is above the high two bars back. Depending on the confirmation setting, it enters on the gap alone, on the gap plus a high-volume breakout candle used as a simple order b

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of TN Sovereign FVG and OB
99 stars

Calculates John Ehlers' Reflex indicator to measure price cycle reversal tendencies and trend direction with low lag. The script pre-filters price data using a two-pole Super Smoother Filter, measures linear extrapolation slope deviations over a lookback windo

Indicator v6 Oscillators & momentumTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Reflex Indicator

TTM Trend

by mihakralj
47 stars

This indicator calculates a short-term trend filter based on an exponential moving average and its slope. It identifies upward, downward, or neutral states by evaluating bar-to-bar changes in the average, coloring the plotted line accordingly. It also calculat

Indicator v6 TrendMoving averages
Updated 8 months ago · MIT GitHub repository of TTM Trend

This indicator scans price action for symmetric, ascending, and descending triangle chart patterns using a sliding window of confirmed swing pivots. It fits upper and lower boundary trend lines across swing highs and lows, rating each pattern with a composite

Indicator v6 BreakoutSupport & resistance
Updated 3 days ago · MIT GitHub repository of Triangle Compression Scanner Pro [WavesUnchained]
1 stars

This strategy draws Bollinger-style bands on the price chart using ta.sma and ta.stdev of close. It plots upper and lower bands based on the baseline SMA and a multiplier applied to standard deviation. Entries trigger when close breaks above the upper band for

Strategy v6 Volatility & bandsMoving averages
Updated 7 days ago · Apache-2.0 GitHub repository of PF probe 105 - volty expansion close

NO.1 Perfect Buy/Sell v2

by vedkanani123
1 stars

A price-chart indicator for lower timeframes that draws EMA 9, 21, 50 and SMA 200 clouds and prints always-in buy and sell flips. Signals combine EMA stack or cross, RSI, ADX and DI, relative volume and a lock that blocks tiny sideways ranges. The higher-timef

Indicator v6 TrendMoving averages Repaints
Updated 2 months ago · None stated GitHub repository of NO.1 Perfect Buy/Sell v2

TN Sovereign HMA

by raybird
1 stars

A strategy based on 21 and 55 period Hull moving averages. A long needs the fast line rising and above the slow line, price above a 200 EMA and volume above its 20-bar average times a multiplier; a short needs the opposite. Each entry has an ATR-based stop at

Strategy v6 Moving averagesTrend
Updated 2 months ago · None stated GitHub repository of TN Sovereign HMA

Ehlers Reverse EMA

by mihakralj
99 stars

Calculates John F. Ehlers' Reverse Exponential Moving Average (EMA) designed to eliminate lag from traditional exponential smoothing. The indicator computes a warmup-compensated base EMA and subjects it to an 8-stage cascaded Z-transform inversion. The resulti

Indicator v6 Moving averagesTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Reverse EMA
47 stars

This indicator calculates the two-argument arctangent function to compute the angle in radians between the positive x-axis and a point defined by two inputs. It handles all four quadrants correctly, bounding results between negative pi and positive pi. The use

Indicator v6
Updated 8 months ago · MIT GitHub repository of Two-Argument Arctangent (ATAN2)
9 stars

This indicator calculates an advanced True Strength Index momentum oscillator plotted in a separate pane. It evaluates price momentum using double-smoothed price changes, offering multiple signal line smoothing algorithms such as EMA, SuperSmoother, and JMA ap

Indicator v6 Oscillators & momentumTrend
Updated 3 days ago · MIT GitHub repository of TSI Advanced [WavesUnchained]
7 stars

This indicator calculates a Volume Weighted Average Price (VWAP) reset across selectable anchor periods, including daily sessions, weekly, monthly, yearly, YTD, half-year, or a custom manual date. It plots the main VWAP line on the price chart alongside option

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of VWAP Enhanced (Visual Feedback)

Zero-Lag Double EMA (ZLDEMA)

by mushroom-men-Trading
2 stars

The Zero-Lag Double EMA indicator calculates a double exponential moving average with zero-lag smoothing using lag compensation and exponential warmup compensator. It plots the resulting ZLDEMA line on the price chart. The main input is the period, defaulting

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Zero-Lag Double EMA (ZLDEMA)
1 stars

This strategy plots four exponential moving averages on the price chart and compares their order. It treats a fully rising stack, shortest above the next three lengths, as bullish and the reverse order as bearish. It opens one long contract on the first bar th

Strategy v6 TrendMoving averages
Updated 7 days ago · Apache-2.0 GitHub repository of PF probe 4ema-rsi-probe-01-quad-ema-stack

NO.1 RR Mark

by vedkanani123
1 stars

A price-chart indicator for one- to five-minute charts that marks each accepted entry as a buy or sell label with boxes for the stop and for 1R, 2R and 3R levels. Entries need a Supertrend flip, agreement from a completed higher-timeframe Supertrend, the EMA s

Indicator v6 TrendScalping Repaints
Updated 2 months ago · None stated GitHub repository of NO.1 RR Mark
1 stars

This strategy implements a modified Ichimoku Cloud system with causal HTF trend filtering on the price chart. It computes Tenkan-sen, Kijun-sen, Senkou A and B lines using user-set lengths for displacement. Long signals trigger on cloud breakout above with Ten

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of TN Sovereign Ichimoku Causal
99 stars

Calculates John Ehlers' Rocket RSI indicator by combining a two-pole SuperSmoother filter with a summation-based RSI and a Fisher Transform. It measures price momentum, applies smoothing to reduce lag and noise, computes relative directional change, and applie

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Rocket RSI (RRSI)

Typical Price (HLC3)

by mihakralj
47 stars

This indicator calculates the typical price by averaging the high, low, and close prices for each bar. It plots the HLC3 series on the price chart with a yellow line of width two. The calculation uses multiplication by 0.333333 for optimization instead of divi

Indicator v6 Support & resistance
Updated 8 months ago · MIT GitHub repository of Typical Price (HLC3)

This overlay indicator detects tweezer tops and bottoms and kangaroo-tail pin bars, then draws supply and demand zones from those patterns. It scores each zone, decays freshness, merges overlapping zones, and can invalidate a zone after a close-through or afte

Indicator v6 Candlestick patternsSupport & resistance
Updated 3 days ago · MIT GitHub repository of Tweezer & Kangaroo Zones [WavesUnchained]

Zero-Lag EMA (ZLEMA)

by mushroom-men-Trading
2 stars

Calculates and plots a Zero-Lag Exponential Moving Average directly on the price chart. It reduces traditional moving average lag by computing a signal from the current price and a lagged price offset by half the smoothing period, followed by exponential smoot

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Zero-Lag EMA (ZLEMA)
1 stars

PF Probe 4EMA-RSI Probe 02 RSI Pullback is a stateful momentum strategy that triggers trades based on Relative Strength Index dip-and-recovery patterns. It arms a persistent long variable when RSI drops below a pullback threshold and opens a long trade when RS

Strategy v6 Oscillators & momentumMean reversion
Updated 7 days ago · Apache-2.0 GitHub repository of PF Probe 4EMA-RSI-Probe-02-RSI-Pullback
1 stars

An indicator for the price chart that classifies conditions as trend, range, transition or shock and lets only the matching module signal: a Supertrend flip or continuation in trends, a fade of a completed range edge in ranges, and a break of the completed Asi

Indicator v6 TrendSessions & time
Updated 2 months ago · None stated GitHub repository of NO.1 ULTIMATE BUY/SELL SIGNAL
1 stars

This strategy draws on the price chart and trades ICT-style market structure. It uses swing pivots to set a bullish or bearish bias, then requires a fair value gap larger than a fraction of ATR and a simplified engulfing order block. Long and short entries fir

Strategy v6 SMC / ICT / price actionSessions & time
Updated 2 months ago · None stated GitHub repository of TN Sovereign ICT SMC v6
99 stars

The Ehlers Roofing Filter isolates cyclical market components by eliminating low-frequency macro trends and high-frequency market noise. It combines a two-pole Butterworth high-pass filter with a Super Smoother filter. The high-pass stage removes cycle compone

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Roofing Filter (ROOFING)
47 stars

The Ultimate Channel calculates an ultra-smoothed centerline alongside upper and lower volatility bands directly on the main price chart. It processes true range values through an advanced infinite impulse response smoothing filter to establish dynamic channel

Indicator v6 Volatility & bandsTrend
Updated 8 months ago · MIT GitHub repository of Ultimate Channel (UCHANNEL)

This indicator computes and plots multiple technical analysis features on a separate pane. It calculates EMA-based trend indicators including fast and slow EMAs along with their slope, momentum oscillators such as RSI, Stochastic RSI, and MACD histogram, WaveT

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Vein Feature Exporter Core 4H [WavesUnchained]
7 stars

This strategy plots RSI on the price chart and enters a long when RSI falls below the oversold level or a short when it rises above the overbought level, only while flat. It exits with a take profit and stop loss measured in pips from the current close. Inputs

Strategy v6 Oscillators & momentumScalping
Updated 3 months ago · None stated GitHub repository of XAUUSD 1-Minute Scalping Strategy

Zero-Lag Triple EMA (ZLTEMA)

by mushroom-men-Trading
2 stars

The Zero-Lag Triple EMA (ZLTEMA) indicator calculates a smoothed trend line using triple exponential smoothing with lag compensation for reduced delay. It plots the resulting line on the price chart in yellow. The period input adjusts smoothing sensitivity by

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Zero-Lag Triple EMA (ZLTEMA)

This strategy executes trades based on fast and slow exponential moving average crossovers constrained by a configurable intraday session window. Long positions open on bullish EMA crosses and short positions open on bearish EMA crosses when no existing positi

Strategy v6 Moving averagesSessions & time
Updated 7 days ago · Apache-2.0 GitHub repository of PF probe 4ema-rsi-probe-03-binary-bar-window

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