Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 52)

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

PSMC - Splitting Alerts

by Web3Degenerate
2 stars

This indicator demonstrates how to configure and separate multiple alert triggers using input toggles. It calculates a 7-period RSI to identify overbought and oversold conditions, alongside candlestick confirmations when price closes against the extreme. Signa

Indicator v4 Oscillators & momentumCandlestick patterns
Updated 2 years ago · None stated GitHub repository of PSMC - Splitting Alerts
1 stars

A trend indicator drawn on the price chart that plots EMA 9, 21, 50 and SMA 200 with shaded clouds between them. Buy and sell conditions are filtered by RSI thresholds, a minimum and rising ADX, relative volume, and a smart range filter that skips small or cho

Indicator v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of JL2 EMA RSI ADX Volume Smart Range

This strategy builds upon the Big Snapper system by combining trend-following moving averages, Chaikin Volatility, and volume filtering to generate trade signals directly on the main chart. Long and short entries trigger when Snapper signals align with medium

Strategy v5 TrendVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Big Snapper Chaiking Volatility + TP RSI
99 stars

This indicator calculates the Ehlers Decycler Oscillator as the difference between two 2-pole Butterworth high-pass filters applied to a chosen price source. The long-period filter result is subtracted from the short-period filter result, and the oscillator is

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Decycler Oscillator (DECO)

Klinger Oscillator

by TWODS-CAPITAL
37 stars

The Klinger Oscillator evaluates long-term volume flow trends while staying responsive to short-term price movements. It calculates signed volume by determining whether the typical price (HLC3) increased or decreased relative to the previous bar. The main osci

Indicator v5 VolumeOscillators & momentum
Updated 3 years ago · MIT GitHub repository of Klinger Oscillator
13 stars

This strategy uses Noro TrendRibbon direction changes to decide long or short bias. It builds a corridor from recent high and low prices, opening a long below that corridor while longing and a short above it while shorting, with the entry tied to a percentage

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

This strategy identifies reversal opportunities based on liquidity sweeps and multi-gate confluence scoring. It evaluates setups using mandatory conditions such as swing sweeps, body and ATR filters, and dual EMA higher-timeframe trend alignment, alongside opt

Strategy v6 SMC / ICT / price actionTrend
Updated 3 days ago · MIT GitHub repository of Reversal Engine Score [WavesUnchained] Strategy
7 stars

Range Oscillator (Zeiierman) plots a range-based oscillator in a separate pane. It qualifies a range box from a minimum number of bars and sizes that box vertically with an ATR width multiplier. A heatmap splits the recent high-low span into horizontal levels

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 months ago · None stated GitHub repository of Range Oscillator (Zeiierman)

PSMC - Stochastic & RSI

by Web3Degenerate
2 stars

This indicator calculates a Stochastic oscillator based on Relative Strength Index (RSI) values rather than standard price data, functioning like a custom Stoch RSI. It plots the raw RSI line alongside the derived %K and %D lines in a separate pane. The RSI pl

Indicator v4 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of PSMC - Stochastic & RSI

The strategy uses RSI(14) on closing prices to detect upward crossovers above 50 for long entries and downward crossovers below 50 for exits. A protective stop loss is placed at the midpoint between open and high on the entry bar to handle mid-bar fills via ma

Strategy v6 Oscillators & momentumMean reversion
Updated 7 days ago · Apache-2.0 GitHub repository of PF Magnifier Dist Probe 08a - Endpoints RSI Cross
1 stars

This strategy detects liquidity sweeps and break of structure events using SMC concepts. It plots BOS labels, sweep markers, and matrix floor ceiling lines on the price chart. The SMC structure sensitivity setting adjusts lookback for scalping, standard, or sw

Strategy v6 SMC / ICT / price actionBreakout
Updated 2 months ago · None stated GitHub repository of TN SMC Matrix Sovereign v6

This strategy combines Larry Williams' Vix Fix synthetic volatility indicator with Bollinger Bands. It calculates standard and inverted Williams Vix Fix metrics, displaying them as histogram columns with standard deviation bands in a separate pane. Long entrie

Strategy v4 Volatility & bandsOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Williams Vix Fix Strategy [Alorse]

Calculates John Ehlers' Detrended Synthetic Price by taking the difference between a quarter-cycle and a half-cycle exponential moving average of the input source. It includes initial warm-up coefficient adjustments to stabilize early values and plots the resu

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Detrended Synthetic Price (DSP)

Know Sure Thing

by TWODS-CAPITAL
37 stars

This indicator calculates the Know Sure Thing oscillator in a separate pane. It builds four rate-of-change series from the close, smooths each with a simple moving average, and adds them with weights of one, two, three, and four. It plots that composite as the

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Know Sure Thing
13 stars

This strategy plots a Noro trend ribbon on the price chart and uses ribbon side changes to choose long or short bias. It builds a corridor from recent high and low prices. A long opens when price is below that corridor during a long bias, and a short opens whe

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

This overlay indicator scores liquidity-sweep reversals on the price chart. It looks for a swing high or low violation followed by a recovery close, then grades optional conditions such as RSI and structure into a 0–2 quality score with separate long and short

Indicator v6 SMC / ICT / price actionOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Reversal Engine Score v1 [WavesUnchained]

This indicator plots buy and sell labels on the price chart. A buy appears when a short stochastic crosses up from below 20 while a slow MACD histogram is positive and a faster MACD histogram is negative. A sell uses the opposite stochastic and MACD alignment.

Indicator v5 Oscillators & momentumCandlestick patterns
Updated 5 months ago · None stated GitHub repository of Heikin Ashi with MACD Signals
2 stars

This strategy enters long positions when the Relative Strength Index drops into oversold territory on a confirmed bar. It exits when RSI rises back to a target sell level, provided an optional minimum profit percentage threshold is satisfied. At trade entry, a

Strategy v4 Oscillators & momentumMean reversion
Updated 2 years ago · None stated GitHub repository of RSI Mean Reversion Strategy 2021
1 stars

Tick-chart-safe overlay indicator of single-bar detections on the price chart, titled as a non-repainting version. It covers relative volume tiers named SAAB, Kratos, Grand Slam and MOAB, regular-at-time volume tiers, momentum LONG and SHORT tiers, high-volume

Indicator v5 VolumeOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Heavy Weapons Singles Uncapped

Bitfinex Shorts Strat

by hasnocool
106 stars

This strategy calculates a 7-period Relative Strength Index (RSI) on external Bitfinex Bitcoin short position data to execute trades on the price chart. It enters a long position when the short-position RSI drops below a low threshold, and enters a short posit

Strategy v5 Oscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Bitfinex Shorts Strat

This indicator calculates John Ehlers' Deviation-Scaled Oscillator (DSO) and plots it in a separate pane. It whitens the source price series by taking its two-bar difference, applies a two-pole Super Smoother filter, and normalizes the output using a rolling R

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Deviation-Scaled Oscillator (DSO)
47 stars

This indicator calculates the percentage change of a chosen source over a user-set lookback length and plots that value in a separate pane with a percent format. It compares the current source with the value that many bars earlier, returning no value when the

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

This ex-post diagnostic indicator identifies confirmed pivot highs and lows, classifying subsequent price action into four outcome types: Snapback, Grind, Fake/Pullback, or Chop. It evaluates forward performance across an ATR-based risk window, factoring in Wa

Indicator v6 Support & resistanceOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Reversal Type Classifier [WavesUnchained]
1 stars

Overlay indicator of single-bar detections drawn on the price chart. Groups include relative volume tiers named SAAB, Kratos, Grand Slam and MOAB, regular-at-time volume tiers, an all-time high volume marker, momentum LONG and SHORT tiers, high-volume ranks fr

Indicator v5 VolumeOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Heavy Weapons Singles v2
106 stars

This overlay strategy enters a long position when the relative strength index rises by more than five points, stays below 70, and a 9-period exponential moving average crosses above a 50-period average, provided the bar is on or after 1 January 2020. It closes

Strategy v5 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Bitpanda Coinrule Template

This indicator calculates Ehlers directional movement with a Hann window and plots it in a separate pane. It extracts classic plus and minus directional movement from bar highs and lows, smooths their difference with an exponential moving average, then applies

Indicator v6 Oscillators & momentumTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Directional Movement with Hann (DMH)

Pretty Good Oscillator

by mihakralj
47 stars

The Pretty Good Oscillator calculates the distance between the selected price source and its simple moving average, normalized by the Average True Range over a specified period. It renders as an oscillator line in a separate pane alongside a zero line and thre

Indicator v6 Oscillators & momentumMean reversion
Updated 8 months ago · MIT GitHub repository of Pretty Good Oscillator

Rhokeo-VW-RSI Histogram

by eddiebelaval
7 stars

This indicator plots a volume-weighted RSI as a histogram in a separate pane. It weights positive and negative price changes by volume, smooths those values, and scales the result between -1 and +1. Histogram bars change color by zone: strong or weak bull abov

Indicator v6 Oscillators & momentumVolume
Updated 3 months ago · None stated GitHub repository of Rhokeo-VW-RSI Histogram
99 stars

The Ehlers Elegant Oscillator is a momentum indicator that computes a bounded oscillator value between approximately -1 and +1. It processes the input series through a 2-bar momentum calculation, normalizes the derivative by rolling RMS over 50 bars, applies t

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Elegant Oscillator (EEO)

MACD Strategy

by TWODS-CAPITAL
37 stars

This strategy plots on the price chart and builds a MACD line as the difference between a fast and a slow exponential moving average of close, then smooths that line into a signal. The histogram is their difference. It opens a long when the histogram crosses a

Strategy v5 Oscillators & momentumMoving averages
Updated 3 years ago · MIT GitHub repository of MACD Strategy
13 stars

This strategy combines Noro Trend Ribbon directional shifts with High and Low moving average price corridors and ADX momentum filtering. It evaluates market strength using configurable ADX key levels to filter trades during choppy or weak trend conditions. Use

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

This indicator plots a percentage rate of change in a separate pane. It smooths the ROC with a selectable average, draws a signal line and histogram, and colors long and short momentum around a configurable midline and stretch zones. Optional stall detection m

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

RSI + Stoch RSI Overlay

by eddiebelaval
7 stars

This indicator combines the standard Relative Strength Index (RSI) and Stochastic RSI into a single oscillator plot within a separate pane. It calculates RSI from price data and applies stochastic smoothing to derive %K and %D lines. Users can toggle individua

Indicator v6 Oscillators & momentum
Updated 3 months ago · None stated GitHub repository of RSI + Stoch RSI Overlay

This strategy calculates double-smoothed Heikin Ashi candles and plots them directly on the price chart alongside a smoothed Relative Strength Index. It evaluates market conditions against external volatility data from an inverse symbol, generating long and sh

Strategy v5 Candlestick patternsOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Heikin Ashi with Session Wicks Strategy
2 stars

Risk-Adjusted Momentum Oscillator plots a normalized momentum oscillator in a separate pane, dynamically scaling momentum by ongoing drawdown risk. It calculates momentum via Rate of Change, Price Momentum, or Log Returns, applying Z-score normalization and ad

Indicator v6 Oscillators & momentumVolatility & bands
Updated 8 months ago · None stated GitHub repository of Risk-Adjusted Momentum Oscillator

RSI Reversal

by GammaExpansion
1 stars

This long-only strategy calculates an RSI and a long exponential moving average. It enters when RSI crosses above the oversold level while price is above the trend average and no position is open. It closes when RSI crosses the midline or a mirrored overbought

Strategy v6 Oscillators & momentumMoving averages
Updated 7 days ago · MIT GitHub repository of RSI Reversal
1 stars

Plots a double-smoothed Bressert stochastic in a separate pane, built from %K and %D lines whose smoothing type can be chosen from a long list of moving averages such as DEMA, EMA, zero-lag variants and Hull-style averages. A second line pair with its own leng

Indicator v5 Oscillators & momentumMoving averages
Updated 6 months ago · None stated GitHub repository of DSS Bressert Stochastic MTF
261 stars

This indicator calculates standardized z-scores of price data across four different lookback periods (6, 14, 26, and 100). Standardizing data subtracts the moving average from the price and divides by the standard deviation. It applies a Double Exponential Mov

Indicator v5 Mean reversionVolatility & bands

Boftei's Strategy

by hasnocool
106 stars

Boftei's Strategy plots the difference between the log of the current close and the close a chosen number of bars earlier in a separate pane. It draws positive and negative histogram bars, a thin line of the same value, and dotted threshold lines. Crosses of t

Strategy v5 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Boftei's Strategy
99 stars

Calculates John Ehlers' Even Better Sinewave indicator to isolate cyclical components in price action. It applies a high-pass filter to remove low-frequency trend components, followed by a Super Smoother filter to reduce high-frequency noise, and normalizes th

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Even Better Sinewave (EBSW)
47 stars

Price Momentum Oscillator (PMO) calculates a double-smoothed Rate of Change (ROC) to track directional price momentum. It derives the percentage price change over a selected lookback period, applies an initial exponential smoothing pass, and refines it with a

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Price Momentum Oscillator (PMO)
9 stars

This indicator plots a smoothed RSI in a separate pane with a signal line, a 50 midline, and configurable overbought and oversold bands. It colors momentum long or short, fills the oscillator against the signal and the zones, and draws a histogram. Optional ma

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

This strategy plots smoothed Heikin Ashi candlesticks directly on the price chart. It filters entries using CCI and Stochastic crossovers calculated on a separate higher timeframe. Long signals trigger on CCI crossing above 60 and Stochastic crossing above its

Strategy v5 Candlestick patternsSessions & time Repaints
Updated 5 months ago · None stated GitHub repository of Heikin Ashi with Session Wicks Strategy
2 stars

Rolling Z-Score Trend [QuantAlgo] calculates a rolling Z-score using mean and standard deviation over a user-defined lookback window to evaluate statistical price deviations and momentum. Plotted in a separate indicator pane, it displays the rolling Z-score li

Indicator v6 TrendOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Rolling Z-Score Trend [QuantAlgo]

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