Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 64)

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

Williams %R (WILLR)

by mihakralj
99 stars

This indicator calculates Williams %R and plots the result in a separate pane. It stores highs and lows over a lookback period, finds the highest high and lowest low, and expresses the close as a percentage of that range on a scale from -100 to 0. When the ran

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Williams %R (WILLR)
1 stars

The strategy detects smoothed RSI divergences on the price chart. It calculates smoothed RSI as the EMA of 3 applied to the 14-period RSI of close. Bullish divergence signals when smoothed RSI is below 40, with smoothed RSI rising over five bars while close ex

Strategy v6 Oscillators & momentumDivergence
Updated 6 days ago · Apache-2.0 GitHub repository of VCP probe 03 - rsi smooth divergence
1 stars

This strategy calculates synthetic buy and sell volume from candlestick price action and computes a ten-bar rolling cumulative volume delta. It signals long entries with a fixed position size of one unit when the cumulative delta crosses above zero, and closes

Strategy v6 VolumeOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of VCP probe 05 - cumulative vol delta
99 stars

This indicator plots the Williams Gator Oscillator in a separate pane. It builds three smoothed moving averages (jaw, teeth, and lips) from a chosen source, shifts each by its offset, and plots two histograms: the absolute gap between jaw and teeth above zero,

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Williams Gator Oscillator (GATOR)

VCP probe 06 - adx regime

by pineforge-4pass
1 stars

This strategy isolates and tests manual directional movement and ADX calculations plotted directly on the main price chart. It constructs plusDI, minusDI, and ADX without using built-in indicators, entering a long position when ADX exceeds 25 in an uptrend and

Strategy v6 TrendOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of VCP probe 06 - adx regime
3 stars

The Directional Movement Index plots the Average Directional Index (ADX) along with the Positive Directional Indicator (+DI) and Negative Directional Indicator (-DI) in a separate pane. It calculates trend strength and direction from price changes using true r

Indicator v4 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Directional Movement Index

Elder Impulse System

by mihakralj
99 stars

Elder Impulse System plots a column series in a separate pane. It compares a 13-period exponential moving average with its previous value and a MACD histogram with its previous value. A rising EMA and rising histogram print 1, a falling EMA and falling histogr

Indicator v5 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Elder Impulse System

Zenith RCI WPR

by pineforge-4pass
1 stars

This strategy combines the Rank Correlation Index (RCI) and Williams %R to identify momentum confirmation for long positions. It enters a trade when RCI crosses above a specified entry threshold while Williams %R remains above its configured level. Exits occur

Strategy v6 Oscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of Zenith RCI WPR
3 stars

The OBV MACD Indicator calculates a volume-based momentum oscillator by combining On-Balance Volume with price standard deviation spread. It creates a synthetic price-volume shadow series, smooths it using an Exponential Moving Average, and applies a Moving Av

Indicator v4 VolumeOscillators & momentum
Updated 5 months ago · None stated GitHub repository of OBV MACD Indicator

Volume-Weighted MACD

by mihakralj
99 stars

This indicator plots a volume-weighted MACD in a separate pane. It subtracts a slow volume-weighted moving average of close from a faster one, then smooths that line with an exponential moving average to form the signal. A column histogram shows the gap betwee

Indicator v5 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Volume-Weighted MACD

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