Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 53)

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

99 stars

Calculates John Ehlers' Fisher Transform oscillator and a delayed signal line. The indicator normalizes price data within a lookback period to a bounded scale, applies exponential smoothing, and uses logarithmic transformation to convert price distributions in

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Fisher Transform (FISHER)
47 stars

This indicator calculates price relative strength as the ratio of a base price series to the close of a comparison symbol. It plots the raw ratio and an exponentially smoothed ratio in a separate pane. Smoothing length controls the EMA and hides the smoothed p

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Price Relative Strength (PRS)

Devis'So Ratio Label

by YuceSezar89
1 stars

Devis'So Ratio Label draws a small numeric label on the price chart. It accumulates percentage moves between consecutive closes, runs an RSI on that series, and divides the RSI change by the change in the cumulative series. Each label shows the ratio and a sho

Indicator v5 Oscillators & momentum
Updated 13 days ago · None stated GitHub repository of Devis'So Ratio Label
99 stars

This indicator plots John Ehlers’s 2004 Fisher Transform in a separate pane. It normalizes the midpoint of high and low over a rolling highest-lowest range, applies recursive smoothing, and clamps the result before taking a scaled inverse hyperbolic tangent wi

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Fisher Transform 2004

Rate of Change (ROC)

by mihakralj
47 stars

This indicator plots the absolute price change between the current source value and the value a set number of bars earlier. It draws a single ROC line in a separate pane. The source series and lookback length are the main settings. During warm-up the lookback

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Rate of Change (ROC)

MTF Trend Signals

by vedkanani123
1 stars

A separate-pane indicator adapted from the AK MACD Bollinger Bands idea. It draws MACD-based Bollinger bands whose fill colour follows RSI against its moving average and the 55 and 45 levels. Buy and sell markers come from multi-timeframe alignment, using an a

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of MTF Trend Signals
99 stars

This indicator plots John Ehlers' Hann-windowed RSI in a separate pane. It weights successive price differences with Hann window coefficients, then normalizes the weighted up and down sums into a bounded oscillator between minus one and plus one. A period inpu

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Hann-Windowed RSI (RSIH)
47 stars

This indicator calculates the Rate of Change Percentage (ROCP), measuring the relative percentage difference between the current price source and its value a specified number of bars ago. It includes explicit warm-up tracking to ensure deterministic evaluation

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Rate of Change Percentage (ROCP)
1 stars

A separate-pane momentum indicator that combines fast and slow RSI, smoothed momentum, an ATR trend band and a memory of past similar setups to score each bar. A weighted confidence and rank are built from similarity, momentum agreement, trend alignment, volat

Indicator v6 Oscillators & momentumAI / machine learning
Updated 2 months ago · None stated GitHub repository of Neural Momentum Matrix AI Pro

Logistic Difference

by capissimo
114 stars

This indicator plots a logistic difference oscillator in a separate pane. It measures the price change over a lookback window as markup and discount, passes both through a sigmoid, and smooths the results with linear regression. The main line is lime or red ar

Indicator v4 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of Logistic Difference
47 stars

This indicator calculates the Schaff Trend Cycle oscillator using custom exponential moving averages with deterministic warm-up logic. It computes a MACD line from user-defined fast and slow lengths, passes it through a double stochastic calculation over a spe

Indicator v6 Oscillators & momentumTrend
Updated 8 months ago · MIT GitHub repository of Schaff Trend Cycle (STC)

PF MTF probe 05 — 60m RSI(14)

by pineforge-4pass
1 stars

The script is a Pine Script strategy that fetches the RSI(14) value from the 60-minute timeframe via request.security and signals long entries on crossovers above 50 while closing longs on crossunders below 50. It maintains a single fixed position of 1 unit wi

Strategy v6 Oscillators & momentum
Updated 7 days ago · Apache-2.0 GitHub repository of PF MTF probe 05 — 60m RSI(14)

Tn Sovereign CCI v6

by raybird
1 stars

This strategy draws on the price chart and trades a fast and slow Commodity Channel Index against an exponential moving average regime. It enters long when the fast CCI crosses above the lower extreme, the slow CCI is already above that level, and price is abo

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

ta

by ivansoft
1 stars

Provides a collection of technical analysis calculation functions for use across Pine scripts. It exports implementations for various indicators and mathematical formulas, including oscillators like the Awesome Oscillator, Aroon, and Schaff Trend Cycle, moving

Library v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of ta
114 stars

This indicator calculates normalized percentage bounds around price highs and lows to anticipate local trend reversals. It oscillates within a fixed -1 to 1 channel and plots two boundary tracking curves alongside a background Karobein oscillator histogram for

Indicator v4 Mean reversionOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Mean Reversion Indicator

Momentum

by TWODS-CAPITAL
37 stars

This indicator calculates momentum as the difference between the selected source and its value a chosen number of bars earlier. It plots that difference as a single line in a separate pane. The Length input sets the lookback, and the Source input selects which

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Momentum
7 stars

This multi-timeframe indicator calculates Stochastic oscillator directional bias across three user-defined timeframes. It compares %K and %D to determine whether momentum is bullish or bearish on each timeframe. When all three timeframes align in the same dire

Indicator v6 Oscillators & momentumTrend Repaints
Updated 3 months ago · None stated GitHub repository of Stoch MTF 3 TF Direction Only
114 stars

Calculates normalized reversal metrics across up to ten Forex currency pairs using user-selected moving average methods, including HarmonicMA, EMA, SMA, or WMA. The indicator identifies overbought, oversold, and mean-crossing conditions using a configurable th

Indicator v4 Screeners & dashboardsMean reversion
Updated 1 year ago · None stated GitHub repository of Multi-Pair Trend Reversal Widget
106 stars

This strategy executes short trades based on Bollinger Bands and the Relative Strength Index (RSI). It plots the Bollinger Bands on the price chart and enters a short position when the closing price crosses above the upper band while RSI remains below 70. An e

Strategy v5 Volatility & bandsOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Bollinger Bands and RSI Short Selling

This indicator computes the InPhase and Quadrature components of the Hilbert Transform Phasor using Ehlers' FIR filter algorithm. It processes the input source (default HLC3) through smoothing, detrender, and phase shift steps to generate the components. Plots

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Hilbert Transform Phasor Components

Momentum Strategy

by TWODS-CAPITAL
37 stars

This strategy measures price momentum as the difference between the close and the close a set number of bars earlier, then measures the one-bar change of that momentum. It places a long stop order just above the bar high when both values are positive, and a sh

Strategy v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Momentum Strategy
7 stars

This Pine Script strategy implements the Supertrend Elite Trend System for crypto markets. It combines signals from ten indicators including Supertrend, ALMA smoothing, CTI correlation, STC trend catcher, Gunxo sniper, DEMA with DMI, MM percentile, and DMI loo

Strategy v6 TrendMoving averages
Updated 3 months ago · None stated GitHub repository of Supertrend Elite Trend System
99 stars

This indicator calculates John Ehlers' Hilbert Transform sine wave from a chosen price source, defaulting to hlc3. It smooths price, estimates the dominant cycle with a homodyne discriminator, clamps that period between 6 and 50 bars, and extracts phase with a

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Hilbert Transform SineWave

Money Flow Index

by TWODS-CAPITAL
37 stars

Calculates and plots the standard Money Flow Index oscillator using typical price and volume data over a user-defined lookback period. It renders in a separate indicator pane with reference lines at 80 for overbought, 50 for the center line, and 20 for oversol

Indicator v5 Oscillators & momentumVolume
Updated 3 years ago · MIT GitHub repository of Money Flow Index
13 stars

This strategy plots a Noro trend ribbon on the price chart and uses ribbon side changes to choose long or short direction. It opens a long when price is below a high-low corridor during a long bias, and a short when price is above that corridor during a short

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Noro TrendRibbon Q012

This indicator plots a Stochastic RSI in a separate pane on a 0–100 scale. It computes RSI of the source, then a stochastic of that RSI, and smooths the K and D lines with a selectable average including SMA, EMA, and JMA-style options. It marks midline and K/D

Indicator v6 Oscillators & momentum
Updated 3 days ago · MIT GitHub repository of Stoch RSI Advanced [WavesUnchained]

Swing Trade Strategy

by eddiebelaval
7 stars

Swing Trade Strategy evaluates market conditions by aggregating directional signals across ten trend and momentum indicators, including an Arnaud Legoux Moving Average, Relative Momentum Index, Double Exponential Moving Average, Directional Movement Index, and

Strategy v6 TrendOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Swing Trade Strategy

Volume Force (VF)

by mushroom-men-Trading
2 stars

Volume Force (VF) is an indicator that calculates the force of volume behind price movements. It measures price change multiplied by volume and smooths the result using an EMA-style formula with adjustable smoothing period. The script plots the VF line on a se

Indicator v6 VolumeOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Volume Force (VF)
1 stars

A test strategy from a reference corpus that calls a user-defined MACD histogram function on 60-minute, 4-hour and daily data with lookahead off. It goes long when all three histograms are positive and short when all three are negative, closing the opposite po

Strategy v6 Oscillators & momentumTrend
Updated 7 days ago · Apache-2.0 GitHub repository of PF MTF Probe 08 Triple TF MACD Histogram

MultiIndicator

by capissimo
114 stars

MultiIndicator combines multiple technical indicators into a single separate pane to save chart space. It calculates and displays market regime detection based on ordinary least squares regression, a Holt exponential smoothing crossover, normalized RSI, ADX, a

Indicator v4 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of MultiIndicator
13 stars

This strategy plots an On-Balance Volume oscillator in a separate pane and applies a fast and a slow exponential moving average to it. It enters long or short when those averages cross, with a strategy type that can reverse, stay long only, or stay short only,

Strategy v5 VolumeMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard QN OBVOsc A002

Structural Wave Field is a market structure indicator that evaluates structural flow, internal wave energy, and structural integrity across multiple time horizons. It combines momentum, velocity, and acceleration with wave segmentation and Elliott-context sequ

Indicator v6 SMC / ICT / price actionTrend
Updated 3 days ago · MIT GitHub repository of Structural Wave Field [WavesUnchained]
114 stars

This strategy plots a scaled one-bar price change from a chosen timeframe in a separate pane. It enters long when the change crosses above a threshold divided by a divisor and short when it crosses below the negative threshold. Volume can replace price with an

Strategy v4 Oscillators & momentumVolume Repaints
Updated 1 year ago · None stated GitHub repository of Normalized Vector Strategy
47 stars

Calculates the detrended synthetic price using dual Super Smoother Filters (SSF) derived from a user-defined dominant cycle period. The indicator computes a fast SSF based on a quarter-cycle period and a slow SSF based on a half-cycle period, then plots the di

Indicator v6 Oscillators & momentumMoving averages
Updated 8 months ago · MIT GitHub repository of SSF-Based Detrended Synthetic Price
9 stars

This indicator quantifies the risk of a prevailing market structure break by combining trend context, structure, and momentum into a composite 0–100 risk score. It plots an RSI oscillator with momentum divergence lines in a separate pane while projecting key b

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 days ago · MIT GitHub repository of Structure Break Risk

Volume Rate of Change (VROC)

by mushroom-men-Trading
2 stars

This indicator measures the speed at which volume changes over a specified number of periods. It calculates either the simple point difference or the percentage change between current volume and historical volume from a set lookback period. The resulting line

Indicator v6 VolumeOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Volume Rate of Change (VROC)
1 stars

This strategy computes a session-gated RSI value using a deep history reference of 500 bars on a source that is NA outside the session window. It signals long entries on RSI crossover above 30 with valid session and closes positions on crossover below 70. The

Strategy v6 Oscillators & momentumSessions & time
Updated 7 days ago · Apache-2.0 GitHub repository of PF na-chain probe 01 - deep history int na
1 stars

This indicator computes a confluence score from Gann angles and Fibonacci retracements anchored to a user base price, step size, swing low and high. It layers in RSI for oversold conditions and Bollinger Bands distance for additional context. The score increme

Indicator v5 Support & resistanceOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Gann Time Machine Signal Engine

[RS]Standardized Trend Map

by ricardosantos79
261 stars

Standardized Trend Map calculates series momentum relative to active price range across 40 distinct lookback periods ranging from 2 to 80 bars on an exponential moving average source. Each standardized calculation rounds to an integer values of -1, 0, or 1 to

Indicator v4 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of [RS]Standardized Trend Map
114 stars

This indicator evaluates Relative Strength Index (RSI) and Stochastic RSI conditions across eight customizable higher timeframes simultaneously. For each timeframe, ranging from 5 minutes to 12 hours, it checks whether RSI and Stochastic %K or %D cross specifi

Indicator v4 Oscillators & momentumScreeners & dashboards Repaints
Updated 1 year ago · None stated GitHub repository of Overbought RSI and Stoch MTF Mod
106 stars

This strategy initiates momentum breakout positions when the Relative Strength Index reaches extreme levels and Bollinger Band standard deviation is expanding. Long trades open when RSI is above the overbought threshold and bands are not contracting, while sho

Strategy v5 Volatility & bandsOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Bollinger Bands, RSI, and MA Strategy
47 stars

Calculates the rolling Z-score of an input price series over a specified lookback window. It uses a sliding window array to maintain rolling sums and calculate the sample mean and sample standard deviation incrementally, accounting for missing values. The resu

Indicator v6 Mean reversionOscillators & momentum
Updated 8 months ago · MIT GitHub repository of Standardization (Z-score)
13 stars

This strategy evaluates moving average squeezes and Squeeze Momentum section height changes to identify potential entry signals. It opens trades based on momentum comparisons across moving average thresholds. The script features customizable risk management co

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

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