Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 34)

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

ROC = Rate of Change

by piecioshka
2 stars

This indicator calculates the rate of change of a chosen source over a set number of bars and plots it as columns in a separate pane, colored green above zero and red below. A horizontal zero line marks the sign change. Optional markers appear on the price cha

Indicator v6 Oscillators & momentum
Updated 12 days ago · MIT GitHub repository of ROC = Rate of Change

TTM Squeeze Pro

by TamTH-Dev
2 stars

This indicator identifies volatility compression and momentum direction in a separate pane. It calculates Bollinger Bands against three tiers of Keltner Channels to detect low, medium, and high squeeze states, displaying them as color-coded dots along the zero

Indicator v6 Volatility & bandsOscillators & momentum
Updated 6 weeks ago · None stated GitHub repository of TTM Squeeze Pro

Alper

by avatar-lavventura
2 stars

This Pine Script v4 strategy draws in a separate pane. It calculates a WaveTrend oscillator from typical price, plots the fast and slow lines, their difference, and crossover markers against two overbought and two overold levels. It also builds Bollinger and K

Strategy v4 Oscillators & momentumVolatility & bands
Updated 7 months ago · None stated GitHub repository of Alper

Chaikin A/D Oscillator (ADOSC)

by mushroom-men-Trading
2 stars

This indicator calculates the Chaikin Accumulation/Distribution Oscillator in a separate pane. It builds a cumulative accumulation/distribution line from the money-flow multiplier of high, low, close and volume, then subtracts a long exponential moving average

Indicator v6 Oscillators & momentumVolume
Updated 9 months ago · None stated GitHub repository of Chaikin A/D Oscillator (ADOSC)

DEPV2 C2 · SIRALAMA

by YuceSezar89
1 stars

This indicator ranks five user-selected symbols in a separate pane. On a chosen signal timeframe it computes a 12-bar log return, an ATR percentage, a directional state, and a score equal to direction times return divided by ATR. An RSI reading above 40 gates

Indicator v6 Oscillators & momentumVolatility & bands
Updated 13 days ago · None stated GitHub repository of DEPV2 C2 · SIRALAMA

Nexus Fusion Engine ML

by vedkanani123
1 stars

An oscillator in a separate pane, adapted from an earlier oscillator under an open license. It smooths price with a selectable method such as DEMA, adds a signal line and marks crosses with dots. Overbought and oversold zones default to 80 and 20. Optional lay

Indicator v6 Oscillators & momentumDivergence
Updated 2 months ago · None stated GitHub repository of Nexus Fusion Engine ML

RS vs KLCI 63d

by kevinesk
1 stars

RS vs KLCI 63d measures the relative strength of a stock compared to a benchmark index over a customizable lookback period, defaulting to 63 trading days against the FTSE Malaysia KLCI. It calculates the difference between the stock's percentage return and the

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 4 months ago · None stated GitHub repository of RS vs KLCI 63d

Quad Rotation 9 3

by rubbermetal
1 stars

Quad Rotation 9 3 is the fast pane of a four-stochastic setup with periods 9, 14, 40 and 60. It plots the 9/3 stochastic K and D lines in a separate pane with oversold and overbought zones, K/D cross triangles inside extreme zones, and a convergence band weigh

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of Quad Rotation 9 3
1 stars

A strategy that reads an external oscillator, called the thermometer, through a source input and trades a chosen signal symbol, SPX by default, according to high and low temperature thresholds of 75 and 25. Buy and sell modes include buying high and selling lo

Strategy v6 Oscillators & momentumMean reversion Repaints
Updated 7 months ago · None stated GitHub repository of Thermometer Strategy

MA+SQZ+STO V1

by gabriel-klettur
1 stars

This strategy combines exponential moving averages, a Stochastic oscillator, and Squeeze Momentum calculations to identify long trade entries on the price chart. It enters long positions when the Stochastic K line crosses above D in oversold territory while pr

Strategy v5 TrendOscillators & momentum
Updated 7 months ago · None stated GitHub repository of MA+SQZ+STO V1
1 stars

This indicator calculates the MACD histogram from the fast and slow exponential moving averages. It plots the MACD line, signal line, and a histogram divergence column on a separate pane. The histogram divergence uses green columns for positive changes and red

Indicator v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of [Z] MACD Hist Divergence

Fisher Standardize Index

by JohnsonHsiao
1 stars

The Fisher Standardize Index indicator calculates a standardized price between the lowest and highest values over a user-specified period, then applies the Fisher transformation formula to produce an oscillator value. It plots the resulting fisher_trans in a s

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of Fisher Standardize Index
947 stars

The Adaptive RSI Moving Average (ARSIMA) is an overlay indicator that dynamically adjusts its smoothing factor based on the Relative Strength Index (RSI). When the RSI moves toward extreme overbought or oversold conditions, the smoothing factor increases to ma

Indicator v4 Moving averagesOscillators & momentum
Updated 12 days ago · GPL-3.0 GitHub repository of Adaptive RSI Moving Average
330 stars

Supertrend + RSI Strategy [Alose] combines the classic Supertrend indicator with the Relative Strength Index (RSI) to enter and exit positions on the price chart. Long trades open when the Supertrend is bullish and RSI crosses above 50, while short trades requ

Strategy v5 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Supertrend + RSI Strategy [Alose]

Commitment Gauge

by harryguiacorn
220 stars

This indicator measures directional momentum by evaluating candlestick body proportions and volume over a user-defined lookback window. It computes the ratio of candle body to total range, weights the cumulative value by volume and absolute body size, and dete

Indicator v4 VolumeCandlestick patterns
Updated 1 year ago · None stated GitHub repository of Commitment Gauge
106 stars

This strategy calculates momentum signals using MACD crossovers filtered by EMA trend filters and an optional RSI indicator. It enters long and short positions directly on the price chart using customizable percentage-based stop loss and take profit targets. T

Strategy v5 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 5min MACD Scalp by Joel (3commas)

This indicator plots Average Directional Movement Index Rating in a separate pane. It smooths true range and directional movement to produce plus DI, minus DI, the directional index, and ADX. ADXR averages the current ADX with the ADX from the rating period ba

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Average Directional Movement Index Rating (ADXR)

Morning Scalp

by benso87
24 stars

This strategy tracks an opening session time range to establish directional bias and triggers pullback trades using Stochastic RSI. Once price breaks out of the initial range, it establishes a directional bias and enters when the Stochastic RSI crosses over in

Strategy v5 Sessions & timeBreakout
Updated 4 years ago · MPL-2.0 GitHub repository of Morning Scalp

Divergenced G003

by ruckard
13 stars

Divergenced G003 is a strategy that identifies momentum divergences based on Squeeze Momentum Indicator color transitions to trigger long and short entries. Trades are exited using Curie closing moving average lines or configurable percentage-based stop loss,

Strategy v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of Divergenced G003
10 stars

Calculates long and short entry signals tailored for Bitcoin on the 15-minute timeframe using a combination of the Relative Strength Index (RSI), Traders Dynamic Index (TDI) bands, and TD Sequential counts. It triggers long signals when RSI falls below 21 and

Indicator v4 Oscillators & momentumSupport & resistance
Updated 5 years ago · None stated GitHub repository of WE:TDI-TD L/S BTC 15min

Commodity FlowTrend plots a money-flow oscillator in a separate pane. It calculates a manually smoothed Money Flow Index from price and real trade volume, overlays a CCI reading scaled to the same range, and colors a histogram plus an optional background by ex

Indicator v6 Oscillators & momentumVolume
Updated 3 days ago · MIT GitHub repository of Commodity FlowTrend [WavesUnchained]

Ultimate Oscillator - Eterna MCP

by EternaHybridExchange
9 stars

This strategy calculates the Ultimate Oscillator in a separate pane from buying pressure and true range over fast, medium, and slow lengths, combined with a four-two-one weighting. It enters long when the oscillator crosses above the oversold level while remai

Strategy v5 Oscillators & momentumDivergence
Updated 7 months ago · MIT GitHub repository of Ultimate Oscillator - Eterna MCP
8 stars

MA ATR ADX PP Strategy combines customizable moving averages with Average True Range (ATR) and Average Directional Index (ADX) filters to generate trade entries and exits on the main chart. The script supports eight moving average types, including SMA, EMA, Hu

Strategy v4 Moving averagesTrend
Updated 4 years ago · None stated GitHub repository of MA+ATR+ADX+PP Strategy
7 stars

This indicator plots a standard Relative Strength Index calculated from closing prices alongside a dynamic volatility band derived from the high and low price RSIs. The upper and lower bands envelope the main RSI line to highlight intrabar price extremes relat

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 months ago · None stated GitHub repository of RSI Divergence (Close inside Band)

Candlestick RSI

by suyons
7 stars

Calculates individual Relative Strength Index (RSI) values for price open, high, low, and close to render RSI as candlesticks in a separate pane. Users can toggle between candlestick and line displays. It includes customizable overbought and oversold threshold

Indicator v5 Oscillators & momentumVolatility & bands
Updated 4 months ago · None stated GitHub repository of Candlestick RSI

Cerebr Bot

by jerryinyang
5 stars

Cerebr Bot is an overlay indicator that maps order blocks and fair value gaps on the price chart. It validates order blocks using a candle-count range, a no-body buffer, and an optional reversal-magnitude filter based on candle body or the selected method. RSI

Indicator v4 SMC / ICT / price actionOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Cerebr Bot

TRCD + Scaled RLI

by InNoobWeTrust
4 stars

This indicator draws in a separate pane and combines a true-range component with a scaled relative liquidity index. The liquidity reading applies RSI to ATR and can tint a gradient background between low and high liquidity colors. Optional tables show an ATR-b

Indicator v6 Volatility & bandsOscillators & momentum
Updated 2 days ago · None stated GitHub repository of TRCD + Scaled RLI
4 stars

Calculates the Relative Strength Index (RSI) and automatically detects regular and hidden bullish and bearish divergences against price movements. It identifies pivot highs and lows in both price and RSI across a configurable lookback window, drawing lines and

Indicator v5 Oscillators & momentumDivergence
Updated 11 months ago · Custom licence GitHub repository of RSI Divergence Detector [Lab]
4 stars

This strategy plots Bollinger Bands on the price chart using a simple moving average basis and a standard-deviation multiplier. Optional RSI, long-period Aroon, and EMA or SMA filters are present but stay disabled unless a password enables the PRO path. Long e

Strategy v4 Volatility & bandsOscillators & momentum
3 stars

This indicator plots a Traders Dynamic Index in a separate pane and scans it for regular and hidden divergences. It builds the index from a smoothed RSI, a signal line, and a longer baseline, then compares price and oscillator pivots over a lookback. Users can

Indicator v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of BTMM TDI Divergence Scanner

This indicator computes standard deviation as a proxy for entropy and plots three smoothed, normalized oscillator lines in a separate pane. It calculates fast, medium, and slow simple moving averages of price dispersion, then normalizes each using a Z-score sc

Indicator v5 Volatility & bandsOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Pseudo-Entropy Oscillator with Standard Deviation
2 stars

Calculates the Relative Strength Index oscillator in a separate pane with configurable overbought and oversold thresholds. Includes options for smoothing the RSI line using various moving averages or Bollinger Bands, gradient fill zones, and regular divergence

Indicator v6 Oscillators & momentumVolatility & bands
Updated 12 days ago · MIT GitHub repository of RSI = Relative Strength Index

Chaikin Money Flow (CMF)

by mushroom-men-Trading
2 stars

This indicator calculates the Chaikin Money Flow (CMF) to measure accumulation and distribution over a user-defined lookback period. It determines the money flow multiplier based on where the close falls within the bar's high-low range, multiplies it by volume

Indicator v6 VolumeOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Chaikin Money Flow (CMF)

P Synthetic Conditional Calls

by GammaExpansion
1 stars

This indicator in Pine Script v6 calculates and plots three lines on a separate pane. It uses an input to choose between EMA or SMA of close over 10 periods for the main line. The second line applies RSI of close over 14 periods only when close exceeds open. T

Indicator v6 Moving averagesOscillators & momentum
Updated 7 days ago · MIT GitHub repository of P Synthetic Conditional Calls
1 stars

This strategy compares Bollinger Bands and Keltner Channel to detect volatility regimes. It plots the bands and their difference along with the RSI of the difference on the price chart. Entries and exits occur on transitions in the volatility state, controlled

Strategy v5 Volatility & bandsOscillators & momentum
Updated 8 days ago · None stated GitHub repository of Penguin Volatility State Strategy

Pulse RSI

by vedkanani123
1 stars

A separate-pane oscillator built on a long-period RSI-style calculation with a default length of 55. Four selectable signal types are available: two trend variants, an oversold and overbought mode, and a custom long and short threshold mode. Threshold inputs s

Indicator v6 Oscillators & momentum
Updated 2 months ago · None stated GitHub repository of Pulse RSI
1 stars

Reversal RSI Stochastic ATR is an indicator that prints a reversal label when RSI is beyond its oversold or overbought level and the stochastic K line crosses D inside its own extreme zone. On each signal it draws stop loss and take profit lines at an ATR mult

Indicator v6 Mean reversionOscillators & momentum
Updated 4 months ago · MPL-2.0 GitHub repository of Reversal RSI Stochastic ATR

RSI and Z-Score Speedometer

by Focal-QuantAI
1 stars

An indicator in a separate pane that shows two gauge-style speedometers drawn with lines. The left gauge maps a 14 period RSI to a needle from 0 to 100. The right gauge converts a 20 period price z-score, clamped to a chosen limit, to the same scale. Layout in

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 6 months ago · None stated GitHub repository of RSI and Z-Score Speedometer

MA+STO+MA_V1

by gabriel-klettur
1 stars

This strategy combines Exponential Moving Averages (10, 55, and 200 EMAs) with a Stochastic Oscillator to execute trades. It enters long positions when the Stochastic K line crosses above D in oversold territory while price is above the 200 EMA. Short entries

Strategy v5 TrendOscillators & momentum
Updated 7 months ago · None stated GitHub repository of MA+STO+MA_V1
1 stars

This indicator plots the 14-period simple moving average on the price chart. It defines functions that detect crossovers in the SMA line with price, RSI crossing 70 and 30 levels, and momentum line crossing zero. When these conditions occur, the script sends a

Indicator v4 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Alert with Multiple Indicators
1 stars

A separate-pane version of the Directional Movement Index. It plots the ADX line together with the plus and minus directional indicator lines, using the same Wilder style smoothing as the standard tool. The area between the plus and minus lines is filled with

Indicator v5 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Directional Movement Index
330 stars

Trend EMA + RSI is a trend-following strategy that generates trading signals using three exponential moving averages and RSI filter conditions. Long trades execute when a fast EMA crosses above a slow EMA while remaining above a long-term baseline EMA on a bul

Strategy v5 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Trend EMA + RSI [Alorse]
257 stars

The ESH2023 5M strategy is a Pine Script v5 indicator for E-mini S&P 500 futures trading on the 5-minute chart. It calculates a Stochastic oscillator from Ichimoku cloud high/low averages using inputs for K period, D period, and smoothing. The script signals l

Strategy v5 Oscillators & momentumBreakout Repaints
Updated 7 weeks ago · None stated GitHub repository of ESH2023 5M - No repaint V1.1

Quantity Quality Commitment

by harryguiacorn
220 stars

The Quantity Quality Commitment indicator evaluates market momentum across three dimensions in a separate chart pane. It measures quantity by counting bullish and bearish candles over a lookback window, assesses quality by analyzing the ratio of candle bodies

Indicator v4 Oscillators & momentumCandlestick patterns
Updated 1 year ago · None stated GitHub repository of Quantity Quality Commitment

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