Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 54)

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

Tuoppi Entries

by eddiebelaval
7 stars

This overlay indicator calculates a WaveTrend oscillator from the typical price using two exponential averages and a short simple average. It marks a long when the fast and slow lines cross bullishly below the oversold level, and a short when they cross bearis

Indicator v6 Oscillators & momentum Repaints
Updated 3 months ago · None stated GitHub repository of Tuoppi Entries
1 stars

This strategy detects RSI momentum crossovers to enter long positions with fixed size. When holding a position it places a bracket exit using ATR-based stop and limit levels. The OCA name ensures any filled side cancels the other. The script verifies that stra

Strategy v6 Oscillators & momentumVolatility & bands
Updated 7 days ago · Apache-2.0 GitHub repository of PF OCA probe 01 - exit bracket cancel

Calculates John Ehlers' Linear Predictive Filter based on the Griffiths Least Mean Squares adaptive predictor algorithm. It processes the source price through a roofing filter combining a highpass filter and SuperSmoother lowpass filter, followed by automatic

Indicator v6 Oscillators & momentumTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Linear Predictive Filter (LPF)
37 stars

This indicator plots a MACD oscillator in a separate pane. It subtracts a slow moving average of the source from a fast one, then smooths that difference into a signal line and draws the gap as a histogram. Fast and slow lengths, source, signal length, and SMA

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · MIT GitHub repository of Moving Average Convergence Divergence
13 stars

Ruckard Squeezed B004 is a trading strategy based on Squeeze Momentum indicator transitions. It tracks section height changes across momentum color cycles using high and low closing moving averages. Entries fire when momentum values breach key threshold levels

Strategy v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Squeezed B004

Swing Conviction Radar measures the strength of individual price swings by calculating a composite conviction score from 0 to 100 at confirmed pivots. It evaluates three swing components: ATR-normalized speed, trend cleanliness (fraction of on-trend bars), and

Indicator v6 Oscillators & momentumVolume
Updated 3 days ago · MIT GitHub repository of Swing Conviction Radar [WavesUnchained]

This indicator tracks Bitcoin market sentiment by comparing 28-day price changes against 28-day percentage changes in unique active addresses retrieved via Quandl. It plots the daily active address rate of change alongside price momentum and surrounds it with

Indicator v5 Oscillators & momentumVolatility & bands
Updated 8 months ago · None stated GitHub repository of Blockchain Fundamentals: Active Address Sentiment Oscillator [CR]

This indicator marks volume spikes and growing-volume conditions on the price chart. A spike is flagged when volume reaches a chosen multiple of the median over a selected lookback. Growing volume is flagged when a short recent median exceeds a longer median b

Indicator v5 VolumeOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Volume Spikes & Growing Volume Signals With Alerts

Price Divergence

by capissimo
114 stars

This indicator detects regular and hidden divergences across multiple technical factors plotted directly on the price chart. It evaluates price highs and lows against peaks and troughs identified by a five-bar fractal mechanism on RSI, RSI Stochastic, MACD, re

Indicator v4 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Price Divergence
99 stars

Calculates John F. Ehlers' MESA Stochastic oscillator by processing price data through a roofing filter before applying stochastic logic. The roofing filter combines a high-pass filter to remove low-frequency trend components and a super smoother filter to fil

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers MESA Stochastic (MSTOCH)
13 stars

Ruckard Squeezed C005 is a strategy that identifies divergence patterns based on section height changes in the Squeeze Momentum indicator. It evaluates transitions between histogram color phases to detect momentum peaks for long and short entries. Trades are m

Strategy v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Squeezed C005
1 stars

This strategy pairs the Fisher Transform oscillator with a long-term exponential moving average trend filter to execute trend-aligned reversal entries. It enters long when the Fisher line crosses above its trigger line while price remains above the EMA, and en

Strategy v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of Tn Sovereign Fisher v6
1 stars

This indicator applies an RSI-style oscillator smoothed with a cyclic filter, based on the dominant cycle idea from a published trading book. A Fast Fourier Transform library measures cycle strength, and a table lists the strongest cycle periods. The cycle len

Indicator v5 Oscillators & momentum
Updated 6 months ago · None stated GitHub repository of RSI Cyclic Smoothed Auto
261 stars

This indicator demonstrates an experimental graph-style scatter visualization within a separate pane using Pine Script arrays. It tracks two features across recent bars: the single-bar price change and a scaled 14-period Relative Strength Index. Values are loa

Indicator v4 Oscillators & momentum
Updated 4 years ago · None stated GitHub repository of Example: Graph Style - 4th Dimension RSI

This strategy combines three technical indicators: the Boom Hunter Pro oscillator, the Hull Suite moving average, and a Volatility Oscillator. It calculates trade entries from indicator conditions, using recent swing high and low lookbacks to set stop loss lev

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Boom Hunter + Hull Suite + Volatility Oscillator Strategy

This indicator plots the Ehlers moving average difference with Hann windowing in a separate pane. It runs two Hann FIR filters on the chosen source: a short window and a longer window whose length is the short length plus half the dominant cycle. The oscillato

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Moving Average Difference with Hann (MADH)
13 stars

This strategy monitors section height changes within the Squeeze Momentum Indicator to identify momentum shifts and divergence entry signals. It uses high and low closing moving averages to evaluate price trends and overlay a visual ribbon on the price chart.

Strategy v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Ruckard Squeezed D004

Trade Permission Engine evaluates whether market structure currently permits long or short trades, alongside a decoupled Position Health score for managing existing positions. It analyzes alternating confirmed swing legs, Fibonacci retracement depths, time mat

Indicator v6 SMC / ICT / price actionTrend
Updated 3 days ago · MIT GitHub repository of Trade Permission Engine [WavesUnchained]
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
1 stars

This indicator applies an RSI-style oscillator smoothed with a cyclic filter, based on the dominant cycle idea from a published trading book. A Fast Fourier Transform library measures cycle strength, and a table lists the strongest cycle periods. This second v

Indicator v5 Oscillators & momentum
Updated 6 months ago · None stated GitHub repository of RSI Cyclic Smoothed Auto2
114 stars

This strategy calculates normalized price or on-balance volume differentials across a user-defined timeframe and passes them through an activation function such as Swish, Step, or LeakyReLU. It opens long positions when the activated vector crosses above a pos

Strategy v4 Oscillators & momentumAI / machine learning Repaints
Updated 1 year ago · None stated GitHub repository of Scaled Normalized Vector Strategy
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)
13 stars

Ruckard Squeezed E004 is a price-chart strategy that compares successive Squeeze Momentum colour-section changes. A smaller squeeze value with a higher price opens a short; a higher squeeze value with a lower price opens a long. Direction can be limited to lon

Strategy v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Ruckard Squeezed E004
2 stars

This indicator draws an equity factor dashboard in a separate pane. It can show a correlation table over a chosen length and a performance table based on rate of change or Sharpe ratio. Optional implied correlation plots, including single and double normalizat

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 8 months ago · None stated GitHub repository of CE - 42MACRO Equity Factor Table

RSI Cyclic Smoothed v2

by mikeyhu70
1 stars

This indicator plots a cyclic smoothed RSI in a separate pane, with a dominant cycle length, a maximum cycle and a divider as inputs, plus vibration and leveling values. Two signal lines use selectable moving average types with automatic or manual lengths, and

Indicator v5 Oscillators & momentumMoving averages
Updated 6 months ago · None stated GitHub repository of RSI Cyclic Smoothed v2

Sequential Indicator

by capissimo
114 stars

Sequential Indicator normalizes price data within a configurable lookback window using min-max scaling and applies linear regression smoothing. It tracks the number of bars elapsed since the smoothed values crossed upper, middle, or lower threshold conditions.

Indicator v4 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Sequential Indicator

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
13 stars

Calculates divergence between price movement and the Squeeze Momentum Indicator transitions to identify entry conditions. A short position is opened when the squeeze value decreases while price makes a higher high during bullish momentum decay. A long position

Strategy v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of Ruckard Squeezed F001
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

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
1 stars

Overlay indicator that combines many named combo signals on the price chart. Groups include relative volume extremes, double displacement and stack patterns, Katana session signals, whale high-volume markers with pocket pivot combos, SAAB and KRATOS squared pa

Indicator v5 VolumeSessions & time
Updated 2 months ago · None stated GitHub repository of Jumbo CIA First Bar Only Fauna

This trend-following scalping strategy combines a moving average trend filter with the Absolute Strength Histogram indicator. It opens long positions when price is above a selectable baseline moving average and the histogram signals bullish momentum, and short

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard TradingZone Absolute Strength Histogram ATR
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]

This lower-pane indicator tracks a custom Supertrend built from ATR and a selectable average, then colors trend states such as rising, bear, pretrend, overbought, and oversold. It can paint bars, plot optional arrows, and show a dashboard of EMA lengths and sc

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of J8 30 123 Spy Scalping Lower Pro
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)

Fill example 2

by be-thomas
65 stars

This indicator computes a simple moving average of the close over a fixed length of ten bars and plots a percentage oscillator equal to the gap between that average and the close, scaled by one hundred. It draws the oscillator in a separate pane and fills the

Indicator v4 Oscillators & momentumMoving averages
Updated 6 days ago · GPL-3.0 GitHub repository of Fill example 2
13 stars

This strategy plots on the price chart and enters from a moving-average filter, ADX and Gann colours. Price above a 200-period EMA allows only longs; price below allows only shorts. A Gann aqua colour with ADX above a key level opens a long, and a Gann brown c

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard TradingZone ADX Gann
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
106 stars

This strategy calculates the WaveTrend oscillator from HLC3 averages and its smoothed difference to generate long signals on BTC price charts. It enters positions when WT1 crosses above WT2 and stays below a limit value. Stop loss triggers at the recent bar lo

Strategy v5 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of BTC WaveTrend R:R=1:1.5
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)

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

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