Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 49)

Open-source Pine scripts that measure momentum: RSI and MACD variants, stochastics, CCI, multi-timeframe oscillators and momentum strategies.

Pine scripts3,035
Code shown here1,673open licence
Updated in a year1,920
No repaint flag2,652

Oscillators & momentum: Indicators, Strategies and Libraries

USI Flip

by skipp-dev
1 stars

USI Flip is a Pine Script indicator that plots six USI lines with customizable lengths for different timeframes. The fastest red line generates BUY and SHORT flip signals when crossing slower lines, with options for volume filter, bar close only, margin hyster

Indicator v6 Oscillators & momentumVolume
Updated 4 days ago · None stated GitHub repository of USI Flip
1 stars

A strategy with one entry type, a liquidity sweep and reclaim of a stored swing level, allowed only when trend and momentum filters agree. The trend filter uses a fast and slow EMA, a minimum ADX, DI alignment and an optional confirmed higher-timeframe EMA che

Strategy v6 TrendSMC / ICT / price action Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Sweep Trend Continuation Strategy

DEPV2 DEBUG S37

by YuceSezar89
1 stars

DEPV2 DEBUG S37 is a separate-pane indicator that watches up to twenty user-chosen symbols, defaulting to Binance perpetual crypto pairs. It forms directional signals from four method classes: trend, momentum, volatility, and volume. Modes use one class, requi

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S37
1 stars

A Pine Script v5 indicator in a separate pane, the fifth revision of a Hurst cycle trough marker, whose title spells trough as through. It filters the hl2 price with bandpass filters for cycles from 1 day to 18 years and labels cycle lows with lines. Each cycl

Indicator v5 Oscillators & momentumSupport & resistance
Updated 6 months ago · None stated GitHub repository of Hurst Through Marker V5

SMI Hist Divergence

by zhuzp98
1 stars

An oscillator in a separate pane based on the Stochastic Momentum Index. It plots the SMI, an EMA of it, and a histogram of how the gap between the two changes from bar to bar, coloured by direction and strength. Dashed bands sit at plus and minus 40 with grad

Indicator v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of SMI Hist Divergence

SlimTrades 2h

by tseitz
1 stars

SlimTrades 2h is an intraday strategy overlaying short-term high and low price channels alongside momentum measurements from MACD and RSI. It tracks local highs and lows over a user-defined lookback period, plotting them directly on the price chart. The script

Strategy v4 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of SlimTrades 2h

Schaff Trend Cycle

by everget
947 stars

This indicator plots the Schaff Trend Cycle in a separate pane. It subtracts a slow exponential moving average from a fast one, applies a stochastic cycle twice, and smooths each result to form a 0–100 oscillator. Line color follows the slope, or the upper and

Indicator v4 Oscillators & momentumTrend
Updated 12 days ago · GPL-3.0 GitHub repository of Schaff Trend Cycle

This indicator plots trade entry and exit signals on the price chart by combining Bollinger Bands with optional filter conditions. It calculates standard Bollinger Bands along with RSI, Aroon, and moving average filters. Reversal signals trigger when price bre

Indicator v4 Volatility & bandsOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Bollinger Bands Winner IND [Alorse]

KDJ

by mihakralj
47 stars

This indicator plots KDJ, described as an enhanced stochastic oscillator, in a separate pane. It finds the highest high and lowest low over the length with deque buffers, converts close into a raw stochastic value, and smooths K and D with Wilder-style RMA con

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of KDJ

Fisher Transform

by TWODS-CAPITAL
37 stars

Calculates the Fisher Transform oscillator based on the median price over a user-defined lookback length. By transforming prices into a Gaussian probability distribution, it highlights extreme price movements and potential trend reversals. The script plots the

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Fisher Transform

This strategy plots on the price chart and combines Trend Indicator A-V2, Supertrend, and QQE Mod to choose long or short entries. Optional start and stop times limit when it trades. Percentage take profit and stop loss are enabled by default, while trailing t

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard AndresAristizibal Joya E002

This indicator scores multi-timeframe Stochastic RSI confluence in a separate pane. It calculates a StochRSI reading on six configurable timeframes, dampens exhaustion, then combines adjacent timeframe pairs with a sync bonus or conflict penalty and user pair

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 3 days ago · MIT GitHub repository of MTF StochRSI Pair Score [WavesUnchained]

USI Flip + Lines

by skipp-dev
1 stars

This indicator calculates and plots a multi-line Ultimate Strength Indicator (USI) ribbon based on six relative strength lines ranging from slow to fast in a separate pane. It identifies momentum flip signals when fast lines cross slower lines with an adjustab

Indicator v6 Oscillators & momentumVolume Repaints
Updated 4 days ago · None stated GitHub repository of USI Flip + Lines

Percent Rank Reversion

by pineforge-4pass
1 stars

This strategy measures the percentile rank of bar-to-bar close changes and plots that rank in a separate pane with a five-bar simple moving average and fixed overbought, oversold, and midline levels. It enters long when the rank is below the oversold threshold

Strategy v6 Oscillators & momentumMean reversion
Updated 7 days ago · Apache-2.0 GitHub repository of Percent Rank Reversion

DEPV2 DEBUG S39

by YuceSezar89
1 stars

DEPV2 DEBUG S39 is a multi-asset signal evaluation indicator designed to monitor up to twenty cryptocurrency pairs simultaneously. It processes four analytical categories—trend, momentum, volatility, and volume—to evaluate market direction. Users can configure

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S39

This strategy combines a simplified Lorentzian distance-based machine learning prediction with a three-factor filter matrix to generate trade signals. It normalizes RSI, CCI, ADX, and momentum over rolling windows to evaluate feature distance, while scoring tr

Strategy v6 AI / machine learningTrend
Updated 2 months ago · None stated GitHub repository of TN ML Matrix Ensemble Sovereign v6

SlimTrades 2m

by tseitz
1 stars

A strategy on the price chart tuned in its defaults for a 2 minute chart. It uses RSI zones together with two rolling highest and lowest ranges to open longs and, if allowed, shorts. Exits come from RSI close zones, a minimum percentage move and separate trail

Strategy v4 Oscillators & momentumScalping
Updated 4 years ago · None stated GitHub repository of SlimTrades 2m
114 stars

This overlay indicator combines a Delta-RSI oscillator with three exponential moving averages on the price chart. It fits RSI with a polynomial over a rolling window, then marks buy and sell labels when the chosen condition occurs: zero crossing, signal-line c

Indicator v4 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Delta-RSI & 3-EMA Strategy
13 stars

The Ruckard Cuneyt OBVRSI A002 strategy combines On-Balance Volume (OBV) and Relative Strength Index (RSI) thresholds to generate trade entries, DCA rebuys, and exits. Built primarily for crypto automation via Zignaly webhooks, it opens positions when OBV RSI

Strategy v5 Oscillators & momentumVolume
Updated 1 year ago · None stated GitHub repository of Ruckard Cuneyt OBVRSI A002

GT EMA

by eddiebelaval
7 stars

This strategy uses two EMAs with a trend filter to generate crossover signals on the price chart. It applies game theory validation through Nash equilibrium detection and expected utility calculations based on RSI and volume. Trades enter on confirmed crossove

Strategy v6 TrendOscillators & momentum Repaints
Updated 3 months ago · None stated GitHub repository of GT EMA

Piercing Line & Dark Cloud

by Web3Degenerate
2 stars

This indicator identifies bullish Piercing Line and bearish Dark Cloud candlestick patterns directly on the price chart. It calculates the midpoint of the preceding candle and checks for directional candle closes along with opening gap conditions. To filter fa

Indicator v5 Candlestick patternsOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Piercing Line & Dark Cloud

USI Flip + REV-BUY

by skipp-dev
1 stars

This overlay indicator combines a six-line zero-lag RSI stack with EMA trend filters and smart-money structure checks. It marks USI flip long and short signals when the RSI lines stack, optional volume and bar-close filters pass, and optional stack or slow-tre

Indicator v6 Oscillators & momentumMoving averages Repaints
Updated 4 days ago · None stated GitHub repository of USI Flip + REV-BUY

DEPV2 DEBUG S42

by YuceSezar89
1 stars

This multi-asset indicator evaluates market conditions across four analytical dimensions: trend, momentum, volatility, and volume. Configured for up to twenty cryptocurrency pairs, it generates trade signals through isolated methods, simultaneous multi-method

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S42
1 stars

This strategy calculates rate of change momentum across multiple user-defined symbols and ranks them using arrays. It rotates capital into the highest-performing asset symbol at scheduled bar intervals by closing all existing positions and entering a long trad

Strategy v6 Oscillators & momentumScreeners & dashboards
Updated 2 months ago · None stated GitHub repository of TN Momentum Swarm Sovereign v6

SlimTrades 4h

by tseitz
1 stars

A Pine v4 strategy using a 12/26 MACD, a 14-period RSI, a five-bar SMA and fast and slow rolling high and low lookbacks of five and forty-eight bars. Inputs set trailing-stop percentages for both sides, RSI bottom and top levels, a highest MACD close level, ad

Strategy v4 Oscillators & momentum
Updated 4 years ago · None stated GitHub repository of SlimTrades 4h

Ruckard Curie B004

by ruckard
13 stars

Ruckard Curie B004 is a trend-following strategy designed for cryptocurrency trading. It generates signals by combining fast and slow moving averages calculated from high and low source prices with directional strength filtering using ADX and DI indicators. Th

Strategy v5 Moving averagesOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard Curie B004

Percentage Volume Oscillator (PVO)

by mushroom-men-Trading
2 stars

This indicator calculates the Percentage Volume Oscillator (PVO), measuring the percentage difference between a fast exponential moving average (EMA) and a slow EMA of trading volume. It plots the main PVO line, a signal line smoothed by a third EMA, and a his

Indicator v6 VolumeOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Percentage Volume Oscillator (PVO)

USI Flip Strategy

by skipp-dev
1 stars

USI Flip Strategy calculates a multi-length Ultimate Speed Index (USI) consisting of six RSI lines (L0 to L5) to identify market momentum shifts on the price chart. It enters long or short positions when fast lines cross slow lines, filtered by volume ratio th

Strategy v6 Oscillators & momentumTrend
Updated 4 days ago · None stated GitHub repository of USI Flip Strategy

Trend Following Engine v3

by rosijay17-cmd
1 stars

An overlay indicator that scores trend continuation setups from 0 to 100 and fires a signal when the score passes a threshold. The score blends normalised ADX, trend efficiency, relative volume, DI separation, slope and momentum, each with adjustable low and h

Indicator v6 TrendOscillators & momentum
Updated 8 days ago · GPL-3.0 GitHub repository of Trend Following Engine v3

DEPV2 DEBUG S43

by YuceSezar89
1 stars

Monitors up to twenty cryptocurrency perpetual contracts across four analytical dimensions: trend, momentum, volatility, and volume. The indicator evaluates signals using single-method triggers, simultaneous confluence thresholds, sequential execution chains w

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S43

SlimTrades 5m

by tseitz
1 stars

A strategy on the price chart with defaults aimed at a 5 minute chart. It reads RSI levels and rolling highest and lowest ranges, with MACD and RSI history helpers, to open long positions and optionally shorts. Positions close on RSI close zones, a minimum per

Strategy v4 Oscillators & momentumScalping
Updated 4 years ago · None stated GitHub repository of SlimTrades 5m
99 stars

This indicator calculates the Bressert double stochastic in a separate pane. It applies the stochastic formula to close, high, and low, smooths that result with an exponential moving average, then applies a second stochastic to the smoothed series and smooths

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Double Stochastic (DSS Bressert)

Ruckard Eve A011

by ruckard
13 stars

This strategy evaluates trend reversals using fast-paced high and low closing moving averages combined with Directional Movement Index (ADX, DI+, and DI-) strength filters. It executes long, short, or reverse entries when signal criteria and strength threshold

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Eve A011

MTF WaveTrend Opportunity Hunter calculates multi-timeframe momentum and confluence scores using WaveTrend across custom Regime, Setup, Trigger, and Context timeframes. It plots a net confluence score histogram, multi-layer heat ribbons, an RRG-style Rotation

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of MTF WaveTrend Opportunity Hunter [WavesUnchained]

Faith JL

by g-moe
3 stars

This indicator evaluates market sentiment and momentum using Aroon crossovers, intra-bar buy and sell volume estimation, and an ATR-based calculation. It generates modular buy and sell conditions filtered by volume thresholds, percentage bands, and Aroon signa

Indicator v5 VolumeTrend
Updated 5 months ago · None stated GitHub repository of Faith JL

USI-CHoCH

by skipp-dev
1 stars

Calculates a multi-speed RSI system across six lengths to identify Change of Character (CHoCH) market structure shifts. The indicator overlays signals on the main chart, combining volume filter thresholds, OBV divergence analysis, anticipation proximity marker

Indicator v6 SMC / ICT / price actionOscillators & momentum
Updated 4 days ago · None stated GitHub repository of USI-CHoCH

DEPV2 DEBUG S44

by YuceSezar89
1 stars

DEPV2 DEBUG S44 is a multi-asset signal and confluence indicator designed for cryptocurrency pairs. It monitors up to twenty Binance perpetual contracts across four distinct analytical dimensions: trend, momentum, volatility, and volume. The script supports mu

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S44

Fauna Dual Mode 2.0

by nishpa800
1 stars

Overlay indicator that classifies candles into seven families: momentum blast, range expansion, gap and go, trend accelerant, trapdoor reversal, exhaustion spike and gap and recover. Each family uses ATR multiples, body-to-range ratios and volume against its a

Indicator v5 Candlestick patternsOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Fauna Dual Mode 2.0
1 stars

A long-focused strategy on the price chart for 5 minute data. It draws rolling highest and lowest levels over two lookbacks and uses RSI zones, with MACD and RSI history, to decide when to buy and when to close. Inputs set the RSI open and close zones, a minim

Strategy v4 Oscillators & momentumSupport & resistance
Updated 4 years ago · None stated GitHub repository of SlimTrades 5m Longs Only

Stochastic

by everget
947 stars

This indicator calculates an enhanced Stochastic Oscillator in a separate pane using smoothed %K and %D lines based on customizable periods and source data. It visualizes momentum and trend shifts through optional ribbon filling between lines, a difference his

Indicator v4 Oscillators & momentum
Updated 12 days ago · GPL-3.0 GitHub repository of Stochastic

Forecast Oscillator

by capissimo
114 stars

This indicator calculates Tushar Chande's Forecast Oscillator by determining the percentage difference between the input price and its linear regression estimate over a set lookback period. The script normalizes the resulting oscillator using a min-max scaling

Indicator v4 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of Forecast Oscillator
99 stars

This indicator plots a Dynamic Momentum Index in a separate pane. It computes a volatility ratio from short and long population standard deviations, then clamps a rounded base period divided by that ratio between minimum and maximum lengths. A Wilder RMA RSI u

Indicator v6 Oscillators & momentumVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Dynamic Momentum Index (DYMI)

CCI DC

by be-thomas
65 stars

This indicator plots the Commodity Channel Index of close in a separate pane and surrounds it with a Donchian channel whose lookback length changes with volatility. Short-term ATR relative to a longer ATR is ranked from 0 to 100; high volatility shortens the l

Indicator v4 Oscillators & momentumVolatility & bands
Updated 6 days ago · GPL-3.0 GitHub repository of CCI DC
13 stars

This strategy uses a 100-period RSI to generate long and short signals with 5% pre-entry buffers. Long entries trigger at RSI 45 and shorts at RSI 55. Exits occur at RSI 55 for longs and 47 for shorts, with emergency stops at RSI 10. Higher-timeframe EMA confi

Strategy v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Fiery RSI A008

This indicator tracks completed cycles of a selected bounded oscillator from one extreme zone to the opposite extreme. It stores historical attempts and reports how often the opposite zone was reached, conditioned on progress already made, cycle age, and a tre

Indicator v6 Oscillators & momentumMean reversion
Updated 3 days ago · MIT GitHub repository of Oscillator Cycle Statistics [WavesUnchained]
3 stars

Farid Makram Custom Levels is a multi-signal indicator for TradingView that combines RSI momentum analysis with MOBO oscillator signals based on the DPO. It generates buy and sell signals when RSI crosses its moving average or when DPO crosses zero, with confi

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Farid Makram Custom Levels

Price Volume Divergence (PVD)

by mushroom-men-Trading
2 stars

The Price Volume Divergence (PVD) indicator calculates the rate of change for price and volume over user-defined lookback periods. It evaluates divergence by comparing price momentum against volume momentum, scaling the output by their combined magnitude. The

Indicator v6 VolumeOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Price Volume Divergence (PVD)

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