Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 19)

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

Elder Force Index

by thanhnguyennguyen
33 stars

This indicator calculates Elder's Force Index from the bar-to-bar change in close multiplied by volume, then smooths that raw value with two exponential moving averages. It plots the slower average as a thick red line and the faster average as a thin green lin

Indicator v4 Oscillators & momentumVolume
Updated 1 year ago · None stated GitHub repository of Elder Force Index
29 stars

The Supertrended RSI [AlgoAlpha] indicator plots the Relative Strength Index combined with a Supertrend overlay in a separate indicator pane. It first computes standard RSI, with an optional Hull Moving Average smoothing step, and computes a secondary moving a

Indicator v5 Oscillators & momentumTrend
Updated 11 months ago · Custom licence GitHub repository of Supertrended RSI [AlgoAlpha]

CCI Low/High Divergences

by tistaharahap
25 stars

This indicator plots two Commodity Channel Index lines in a separate pane: one from candle lows and one from closes. It marks regular bullish divergences when price makes a lower low while the low-based CCI makes a higher low, and regular bearish divergences f

Indicator v4 Oscillators & momentumDivergence
Updated 6 years ago · None stated GitHub repository of CCI Low/High Divergences

Benso Pendulum

by benso87
24 stars

Benso Pendulum is an indicator that plots a customizable Relative Strength Index (RSI) oscillator in a separate pane on the price chart. It calculates the RSI using the specified source and period, applying dynamic colors that change based on overbought and ov

Indicator v5 Oscillators & momentumSupport & resistance
Updated 4 years ago · MPL-2.0 GitHub repository of Benso Pendulum

Pine v6 Feature Test

by jpantsjoha
23 stars

This indicator is a Pine Script v6 demonstration that overlays the price chart. It calculates moving averages, oscillators, Bollinger Bands, ATR, highest and lowest values, rate of change, and moving-average crossovers from a chosen price source. Inputs set SM

Indicator v6 Moving averagesOscillators & momentum
Updated 4 weeks ago · Custom licence GitHub repository of Pine v6 Feature Test

John F. Ehlers - Convolution

by palitojendthen
20 stars

Implements John F. Ehlers' convolution algorithm to detect cyclic components across multiple periods. The script processes price data using a SuperSmoother filter with an optional high-pass filter to remove low-frequency trends. It computes cross-correlations

Indicator v5 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of John F. Ehlers - Convolution

Greeffer BB Strategy

by SammyEnigma
18 stars

This strategy builds Bollinger bands from a simple moving average and the standard deviation of the close. It opens a short when price crosses above the upper band and the 14-period RSI is above 80, and opens a long when price crosses below the lower band and

Strategy v4 Volatility & bandsOscillators & momentum
Updated 6 years ago · None stated GitHub repository of Greeffer BB Strategy
16 stars

This indicator plots RSI in a separate pane and compares oscillator pivots with price to mark regular bullish and bearish divergences. Left and right pivot lookbacks and a minimum-to-maximum bar range control which swings qualify. Regular divergence labels are

Indicator v5 Oscillators & momentumDivergence
Updated 2 years ago · None stated GitHub repository of Divergence Indicator + MACD

Relative Strength Index

by deepentropy
13 stars

This indicator plots the Relative Strength Index in a separate pane from smoothed up and down price changes. It draws the RSI line with horizontal bands at 70, 50 and 30, plus overbought and oversold gradient fills. Optional settings add a smoothing moving ave

Indicator v6 Oscillators & momentumMoving averages
Updated 6 months ago · MIT GitHub repository of Relative Strength Index
11 stars

The Stochastic Divergence Strategy calculates the Stochastic oscillator (%K and %D) to identify regular bullish and bearish divergence patterns against price pivots. It plots the oscillator and divergence lines in a separate indicator pane. Entries trigger on

Strategy v6 Oscillators & momentumDivergence
Updated 5 months ago · Apache-2.0 GitHub repository of Stochastic Divergence Strategy

Dual Moving Average

by hirawatt
11 stars

Dual Moving Average is a Pine Script v4 strategy that overlays the price chart. The shown code declares a strategy with fixed quantity, cash commission, slippage, and calculation on every tick. Inputs set the price source, a start and end date, a symbol that d

Strategy v4 Oscillators & momentumScreeners & dashboards Repaints
Updated 2 years ago · MIT GitHub repository of Dual Moving Average

BTE AO

by f-cksociety
11 stars

BTE AO is a Pine Script indicator based on the PineCoders Backtesting and Trading Engine framework. It simulates long and short trade entries, filters, stop losses, and take-profit targets directly on the price chart to evaluate trading strategies without nati

Indicator v5 TrendOscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of BTE AO
10 stars

This separate-pane indicator plots a custom relative strength index whose length and overbought and oversold bands change with the chart timeframe, or uses a length the user sets. A configuration mode can hide the RSI and, on BTCUSD daily, weekly, or monthly c

Indicator v4 Oscillators & momentum Repaints
Updated 5 years ago · None stated GitHub repository of My Relative Strength Index
9 stars

ADX Advanced calculates Directional Indicators (DI+ and DI-) alongside the Average Directional Index (ADX) to gauge trend strength and direction. The script features selectable smoothing methods for the ADX curve, including EMA, SMA, RMA, WMA, SuperSmoother, T

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

Nexural Fisher Pro

by JasonTeixeira
9 stars

Nexural Fisher Pro is an advanced Fisher Transform indicator that plots in a separate pane. It calculates the Fisher transform using a configurable source such as high-low average. It incorporates adaptive period based on dominant cycle, volume-weighted calcul

Indicator v6 Oscillators & momentumMoving averages
Updated 2 weeks ago · Custom licence GitHub repository of Nexural Fisher Pro

Stochastic RSI

by andreperez
9 stars

This indicator calculates the standard Stochastic RSI oscillator and displays it in a separate pane. It computes a Relative Strength Index from the selected source price, applies the stochastic formula to the RSI values over a chosen lookback period, and smoot

Indicator v4 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Stochastic RSI

Directional Movement Index

by eddiebelaval
7 stars

This indicator calculates the Directional Movement Index from TradingView's built-in DMI function and plots plus DI and minus DI in a separate pane. An optional ADX line can be shown. It marks plus-DI crossovers above minus DI with a green background and the o

Indicator v6 Oscillators & momentum
Updated 3 months ago · None stated GitHub repository of Directional Movement Index
7 stars

Lorentzian Classification is a machine learning indicator that applies a k-nearest neighbors algorithm using Lorentzian distance to analyze market patterns. It processes configurable technical indicators, including RSI, WaveTrend, CCI, and ADX, as feature vect

Indicator v6 AI / machine learningOscillators & momentum
Updated 1 year ago · MPL-2.0 GitHub repository of Lorentzian Classification

Confluence

by trsdn
6 stars

Confluence is an overlay indicator that calculates metrics across three classic tools: Bollinger Bands, the Relative Strength Index (RSI), and the Moving Average Convergence Divergence (MACD). It plots the upper, lower, and basis lines of the Bollinger Bands d

Indicator v5 Volatility & bandsOscillators & momentum
Updated 7 days ago · MIT GitHub repository of Confluence

Cerebr Centauri Demo

by jerryinyang
5 stars

Cerebr Centauri Demo is a multi-indicator trading strategy overlaying conditions directly on the price chart. It combines lower-timeframe and higher-timeframe inputs across moving averages, Stochastic oscillators, RSI, and MACD to generate trade signals. Trade

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Cerebr Centauri Demo
4 stars

Elton's Predictions Decision Engine synthesizes thirty selectable strategy algorithms or an auto-detect mode into unified buy, sell, or wait verdicts directly on the price chart. It calculates higher-timeframe trend alignment, confidence scores, and ATR-based

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 days ago · None stated GitHub repository of Elton's Predictions Decision Engine

Ultimate Combo v1

by DexWilder
4 stars

This overlay strategy is written for MES and ES five-minute charts. It calculates a fast and slow EMA, a 200-period trend EMA, session VWAP, RSI, ATR, and a volume moving average, and it can restrict trading to an exchange-time session. Inputs set RSI extremes

Strategy v6 TrendOscillators & momentum
Updated 3 days ago · None stated GitHub repository of Ultimate Combo v1

MACD Signal Cross

by latentwill
4 stars

This strategy evaluates EMA momentum crossovers filtered by an RSI oscillator. It enters a long position when a fast EMA crosses above a slow EMA while RSI remains above 40. Conversely, it enters a short position when the fast EMA crosses below the slow EMA wh

Strategy v5 Moving averagesOscillators & momentum
Updated 8 days ago · None stated GitHub repository of MACD Signal Cross
4 stars

Meridian Options Context plots a separate-pane directional context for liquid options underlyings. It normalizes trend from fast and slow EMAs, RTH VWAP and opening-range displacement, RSI and short-return momentum, relative volume participation, persistence,

Indicator v6 Oscillators & momentumMoving averages Repaints
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Options Context
4 stars

This strategy identifies Bitcoin price trends using fast and slow EMA crossovers filtered by RSI and a 200 EMA. It plots the EMAs and entry signals on the price chart. Bullish crossovers open long positions with ATR-based stop loss and take profit. Bearish cro

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Bitcoin BTC Strategy [trugurpala]

RSI

by YooooungLee
4 stars

The RSI indicator calculates the Relative Strength Index using a chosen length and plots the RSI line in a separate pane. It draws horizontal bands at the upper and lower thresholds along with a background fill between them. Labels appear on the chart when the

Indicator v6 Oscillators & momentum
Updated 10 months ago · Apache-2.0 GitHub repository of RSI
4 stars

This indicator combines the Moving Average Convergence Divergence (MACD) and Stochastic RSI into a single separate pane display. It calculates the standard MACD line, signal line, and histogram alongside Stochastic RSI %K and %D oscillator curves. Extreme over

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Momentum Suite (MACD + StochRSI)

Improvisando [Alorse]

by Hugs-4-Bugs
4 stars

Improvisando [Alorse] is a price-chart strategy that plots three exponential moving averages and a TTM Squeeze-style oscillator. It opens a long when price is above all three averages and the oscillator is rising while still below zero. Shorts use the opposite

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Improvisando [Alorse]

EmaRainbowCandleMark

by fox-buddy
4 stars

EmaRainbowCandleMark is a price-chart overlay that calculates a stack of exponential moving averages with Fibonacci-style lengths and tests candles for hammers, shooting stars, and bullish or bearish engulfing patterns. Body-to-wick tolerances set how strict t

Indicator v4 Moving averagesCandlestick patterns
Updated 2 years ago · None stated GitHub repository of EmaRainbowCandleMark

Dip Finder

by Kalumur
4 stars

Dip Finder is a multi-indicator oscillator and screening tool designed to identify market bottoms and potential reversal points. It calculates a WaveTrend oscillator with customizable overbought and oversold levels, combined with Awesome and Acceleration Oscil

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · None stated GitHub repository of Dip Finder
4 stars

This indicator detects regular and hidden divergences across multiple technical oscillators, including MACD, RSI, Stochastic, CCI, Momentum, OBV, CMF, and MFI. Plotted directly on the price chart, it draws divergence connecting lines and visual labels when a m

Indicator v4 DivergenceOscillators & momentum
Updated 4 years ago · None stated GitHub repository of RSI/Stoch/BB/Divs (Brahim)

MACD Histogram

by degenview
3 stars

This indicator calculates the standard MACD from the close using fast and slow lengths and a signal length. It plots the MACD line, the signal line, and a column histogram in a separate pane, plus a zero line. Histogram bars use four colors that distinguish ri

Indicator v6 Oscillators & momentum
Updated 2 days ago · GPL-3.0 GitHub repository of MACD Histogram

Boll-Ort Tarama

by gocaman
3 stars

This overlay indicator plots a 200-period simple moving average labeled EMA-1, a narrow Bollinger band set with a 2.0 multiplier, and a wider band set with a 3.0 multiplier, filling the gaps between the two upper and lower lines on the price chart. It recolors

Indicator v5 Volatility & bandsMoving averages
Updated 2 days ago · None stated GitHub repository of Boll-Ort Tarama

Trend Strength Index

by AkashSasikumar47
3 stars

This indicator measures market trend strength by comparing net price change to cumulative bar-to-bar volatility over a specified lookback period. It plots two lines in a separate pane: a fast smoothed Trend Strength Index line based on the user-defined smoothi

Indicator v6 TrendOscillators & momentum
Updated 2 weeks ago · MIT GitHub repository of Trend Strength Index
3 stars

This Pine Script v5 library exports detectYinYangCrown, which builds a standard MACD from close using caller-supplied fast, slow, and signal lengths. It tracks histogram color and a small state machine: a green histogram that rises to a peak, then declines, th

Library v5 Oscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of YZM YinYang Crown Library
3 stars

This indicator calculates multi-source analysis signals based on The Trading Parrot methodology, combining SOPR proxy calculations, custom volume-weighted RSI, liquidity support and resistance levels, volume spike detection, and pattern recognition. It outputs

Indicator v6 Oscillators & momentumVolume
Updated 1 year ago · Custom licence GitHub repository of Trading Parrot Multi-Source Analysis
3 stars

Calculates a Relative Strength Index oscillator and detects regular and hidden bullish or bearish divergences using pivot points. It displays in a separate pane below the main chart, highlighting divergence occurrences between price movement and the RSI oscill

Indicator v5 Oscillators & momentumDivergence Repaints
Updated 1 year ago · None stated GitHub repository of Sapphire RSI Divergence Indicator
3 stars

This strategy plots long and short markers on the price chart. It builds a composite index from RSI change and a short RSI average, then requires that index, a one-minute cumulative volume delta, and a relative volatility index to agree. EMA, SMA, and VWAP rel

Strategy v5 Oscillators & momentumVolume Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Composite RVI CVD Strategy

Currency Strength Chart

by itmakesyousick
3 stars

The Currency Strength Chart calculates and plots the relative strength of major fiat currencies, including EUR, USD, JPY, GBP, CHF, AUD, CAD, and NZD, in a separate chart pane. It evaluates cross-pair exchange rates using configurable data sources like price,

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Currency Strength Chart
2 stars

Modern Ichimoku Cloud [GBB] is an advanced trend and momentum indicator that enhances classic Ichimoku Kinko Hyo with multi-layered structural analysis. It plots traditional Tenkan-sen, Kijun-sen, Senkou Spans, and Chikou Span on the price chart while offering

Indicator v6 TrendSupport & resistance
Updated 2 weeks ago · MIT GitHub repository of Modern Ichimoku Cloud [GBB]

Market Regime Dashboard

by vantradelabs
2 stars

The Market Regime Dashboard is a multi-timeframe dashboard indicator that evaluates market conditions across three user-defined timeframes. It measures four core dimensions: trend strength using ADX and DI direction, momentum using RSI z-scores, volatility via

Indicator v6 Screeners & dashboardsTrend
Updated 2 months ago · Custom licence GitHub repository of Market Regime Dashboard
2 stars

Calculates entry signals, stop loss levels, and five take-profit targets based on a 7-factor dual scoring engine. The system evaluates short-term market bias using EMA 9 and 21 crossovers, VWAP, RSI, MACD, ADX, relative volume, and multi-timeframe 5-minute RSI

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 months ago · Custom licence GitHub repository of Sniper Entry/Exit with SL&TP

Custom Oscillator

by danielbodnar
2 stars

This reference script provides practical Pine Script v6 code examples for creating custom indicators. It includes a smoothed Relative Strength Index oscillator plotted with overbought and oversold background zones, a multi-timeframe moving average overlay with

Indicator v6 Oscillators & momentumMoving averages
Updated 2 months ago · MIT GitHub repository of Custom Oscillator
2 stars

This mean-reversion trading strategy targets XAUUSD during the Asian trading session. It generates buy signals when price touches the lower Bollinger Band and RSI is oversold, and sell signals when price reaches the upper band and RSI is overbought. Trades are

Strategy v6 Mean reversionSessions & time
Updated 4 months ago · None stated GitHub repository of XAUUSD Mean Reversion Strategy

This strategy plots a fast and a slow simple moving average on the price chart and enters long when the fast average crosses above the slow average, or short on a cross below. Longs also require ADX above a threshold, RSI below 65, ATR above a minimum, and a b

Strategy v5 TrendOscillators & momentum
Updated 8 months ago · MIT GitHub repository of Quantum Entanglement (Filtered MA Crossover)

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