Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 22)

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

MACD

by Metzenas
2 stars

This indicator calculates the MACD oscillator using fast and slow moving averages by default, plotting the MACD line, signal line, and histogram in a separate pane. The histogram changes color based on growth or decline above or below zero to signal momentum s

Indicator v4 Oscillators & momentumMoving averages
Updated 5 years ago · None stated GitHub repository of MACD

Undercut

by kat3samsin
2 stars

Undercut is a momentum and volatility strategy that evaluates relative strength, choppiness, and stochastic indicators in a separate pane. It enters long trades when RSI remains above the Choppiness Index for a specified lookback period and Stochastic %K cross

Strategy v4 Oscillators & momentumVolatility & bands
Updated 5 years ago · MIT GitHub repository of Undercut

Stochastic and RSI

by teshmi9z-beep
1 stars

A separate-pane indicator that shows a slow stochastic oscillator and an RSI together. The stochastic uses a long K length with smoothing, and its D line changes colour with its direction. Overbought and oversold lines are drawn for both oscillators, with defa

Indicator v5 Oscillators & momentum
Updated 2 days ago · MIT GitHub repository of Stochastic and RSI
1 stars

A separate-pane indicator, short title NATSE 3.0, that estimates trend state from log price with a two-state Kalman filter. It blends velocity, efficiency and displacement scores using adjustable weights, then compares the result with adaptive bands set by a l

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · None stated GitHub repository of Adaptive Trend State Engine 3.0

Divergence Engine

by jayadevrana
1 stars

This indicator plots an RSI oscillator in a separate pane with fixed overbought and oversold lines. It stores confirmed RSI pivot highs and lows, then compares each new pivot with the previous one inside a bar-gap window. A lower price low with a higher RSI lo

Indicator v6 Oscillators & momentumDivergence
Updated 4 days ago · MPL-2.0 GitHub repository of Divergence Engine
1 stars

A Pine v6 research strategy for crypto charts that scores several modules, namely RSI, Fibonacci Bollinger Bands, a trend moving average with higher timeframe filter, Ichimoku, candlestick patterns and chart patterns, then enters when a weighted score passes a

Strategy v6 Oscillators & momentumVolatility & bands
Updated 12 days ago · MIT GitHub repository of Crypto TA Pro v6 Megalithic Research

AlgoBot Strategy

by femibol
1 stars

A strategy that approximates a trading bot's entry and exit rules in three modes: EMA 8 and 21 momentum with ADX and a volume surge, relative-volume momentum, and a daily SuperTrend trend rider using a daily EMA, ADX and consecutive green days. Exits include a

Strategy v5 Oscillators & momentumTrend
Updated 6 weeks ago · None stated GitHub repository of AlgoBot Strategy

Simple Test

by mrme000m
1 stars

This indicator plots a 14-period relative strength index of the close and a 21-period exponential moving average of the close in a separate pane. The RSI series is drawn in purple and the EMA series in blue. There are no user inputs, so both lengths stay fixed

Indicator v5 Oscillators & momentumMoving averages
Updated 7 weeks ago · None stated GitHub repository of Simple Test

A/D Context v20.7

by VVASILEVSS
1 stars

A Pine v5 indicator in a separate pane built on Williams or Chaikin accumulation and distribution flow, a smoothing EMA, Chaikin Money Flow and ATR. It detects divergences between price and flow pivots, with cooldown bars and optional confirmation after the di

Indicator v5 DivergenceVolume
Updated 3 months ago · None stated GitHub repository of A/D Context v20.7
1 stars

A separate-pane indicator that estimates delta from each candle by adding volume on up candles and subtracting it on down candles, accumulates it into a cumulative value, and converts that to a Z-score over a rolling window. A histogram is coloured by whether

Indicator v5 VolumeOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Detrended CVD Z-Score Oscillator

Fusion Cipher Toolkit

by shahzaib-574
1 stars

This indicator combines several oscillators in a separate pane: a wave momentum line with signal, a money flow area with selectable models, a VWAP-based oscillator, RSI and Stochastic RSI. It marks dots where several conditions agree, with a minimum confluence

Indicator v6 Oscillators & momentumDivergence
Updated 3 months ago · None stated GitHub repository of Fusion Cipher Toolkit

GEKO Ultimate - UO Williams Baseline

by grzegorzkowalskigk-jpg
1 stars

This strategy applies Larry Williams' Ultimate Oscillator rules, blending 7, 14 and 28 period buying pressure, and draws in a separate pane. A long entry needs the oscillator below 30, a bullish price divergence and a break above the oscillator peak from that

Strategy v6 Oscillators & momentumDivergence
Updated 3 months ago · Custom licence GitHub repository of GEKO Ultimate - UO Williams Baseline

MTF RSI Signals

by iyoshikawa
1 stars

This indicator plots multi-timeframe RSI signals on the price chart. It calculates a smoothed RSI using short and long periods with EMA smoothing, then applies a Stoch filter for direction changes. Signals trigger on crossovers and levels, combined with ADX tr

Indicator v5 Oscillators & momentumTrend Repaints
Updated 5 months ago · None stated GitHub repository of MTF RSI Signals
1 stars

This indicator provides a comprehensive toolkit for crypto chart analysis. It calculates and plots Volume Profile boxes with value area and acceptance bars, VWAP with standard deviation bands, multiple EMAs for trend filtering including HTF bias, lower timefra

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT Toolkit v4 Safe LTF

High Margin Pro

by Sandesh30-cloud
1 stars

High Margin Pro is a long-only chart strategy. It plots a 50-period EMA, a 200-period EMA, and a 60-minute 200-period EMA. A long entry requires the fast EMA above the slow EMA, price above the higher-timeframe EMA and within one ATR below the fast EMA, an RSI

Strategy v5 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of High Margin Pro

An indicator for the price chart, written with gold on a three-minute chart in mind, that looks for long and short setups. It detects regular or hidden divergences on RSI, MACD, MACD histogram, stochastic and optionally CCI, momentum and MFI, and needs a minim

Indicator v6 DivergenceOscillators & momentum
Updated 6 months ago · None stated GitHub repository of Gold Strategy - Divergence + ATR + RSI
1 stars

MACD Divergence - Reversal Hunter detects regular and hidden divergences between price action and the MACD line using pivot points. It generates buy signals on bullish divergences and sell signals on bearish divergences, with optional RSI filter for overbought

Strategy v5 DivergenceOscillators & momentum
Updated 8 months ago · None stated GitHub repository of MACD Divergence - Reversal Hunter
1 stars

A separate-pane indicator that studies how volume behaves around potential reversals. It measures volume relative to its average and its short-term trend, a delta volume proxy from candle colour, rate-of-change velocity and deceleration, and volume-price diver

Indicator v5 VolumeDivergence
Updated 8 months ago · MIT GitHub repository of Volume-Price Reversal Filter
1 stars

The Multi-Symbol Dashboard indicator overlays a customizable panel on the price chart to monitor up to six cryptocurrency symbols at once. It displays RSI, MACD histogram, EMA values, percentage price change and volume data fetched via request.security for sym

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 9 months ago · MIT GitHub repository of Multi-Symbol Dashboard

RSI Divergence Detector

by knectardev
1 stars

This indicator calculates the Relative Strength Index (RSI) and detects regular and hidden bullish and bearish divergences between price movement and RSI values. It identifies pivot highs and pivot lows across both price action and the RSI oscillator using a c

Indicator v6 Oscillators & momentumDivergence
Updated 9 months ago · None stated GitHub repository of RSI Divergence Detector

Stratégie Vumanchu-SMC

by matlaenousse
1 stars

Stratégie Vumanchu-SMC combines Smart Money Concepts with Vumanchu momentum signals to execute trades directly on the price chart. It detects market structure transitions such as breaks of structure and changes of character, while mapping order blocks and fair

Strategy v5 SMC / ICT / price actionOscillators & momentum
Updated 10 months ago · None stated GitHub repository of Stratégie Vumanchu-SMC

CVD Trend Activation

by turnupdigital
1 stars

An indicator that plots cumulative volume delta in a separate pane, using lower timeframe volume data requested for a chosen anchor period. A trend mode is flagged when delta moves above a positive threshold or below the matching negative one, and values betwe

Indicator v6 VolumeOscillators & momentum
Updated 1 year ago · None stated GitHub repository of CVD Trend Activation

Lab-Doi-04

by theteelek
1 stars

This strategy plots on the price chart and uses daily EMA crossovers to generate signals for opening long positions in crypto trading. It activates between user-defined start and end dates and enters long trades when the fast EMA exceeds the slow EMA with bar

Strategy v6 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Lab-Doi-04
1 stars

A strategy that trades with a short and a long EMA. A long entry needs price above the short EMA, which is above the long EMA, plus RSI below a level or price within a tolerance of a pivot low. Shorts mirror this in a downtrend near pivot highs. Each entry get

Strategy v6 TrendSupport & resistance
Updated 1 year ago · None stated GitHub repository of Profit Factor Optimized Strategy

量价指标

by fuyuanyuan
1 stars

This indicator combines volume-price divergence detection, RSI-filtered volume breakouts, and MACD divergence signals on the price chart. It evaluates price extremes relative to volume levels to detect volume-price divergences with arrow shapes. It also identi

Indicator v6 VolumeOscillators & momentum
Updated 1 year ago · None stated GitHub repository of 量价指标

This indicator compiles multiple technical components starting with the UCS Stochastic Momentum Index into a composite indicator framework. It calculates range baselines and nested exponential moving averages to evaluate momentum across multiple smoothed stage

Indicator v4 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of One Indicator UCS Stochastic Momentum Index

Stochastic RSI

by RobACurtis
1 stars

A course example file that holds two oscillators for a separate pane. The first is a Stochastic RSI with adjustable RSI length, stochastic length and K and D smoothing, drawn with 80, 50 and 20 reference lines. The second is a MACD with selectable SMA or EMA t

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

Stochastic RSI MTF

by kritarth2121
1 stars

This strategy computes a smoothed Stochastic RSI and compares it with a signal line taken from the four-hour timeframe. It goes long when the four-hour reading is above its signal, the chart reading crosses up through 30 and price is above an exit EMA. It goes

Strategy v5 Oscillators & momentumMean reversion
Updated 2 years ago · None stated GitHub repository of Stochastic RSI MTF
1 stars

A price-chart overlay that projects a high, mid and low estimate for the next three bars. It averages the open-to-close midpoints, the open-to-close changes and the high-low ranges over a configurable lookback, then chains each estimate into the next. It impor

Indicator v5 Oscillators & momentumTrend

MACD Divergence+

by krosenfeld7
1 stars

MACD Divergence+ calculates standard MACD and signal lines to identify divergence conditions between price action and momentum oscillator pivots. It detects pivot highs and pivot lows across customizable lookback periods, allowing users to configure divergence

Indicator v4 Oscillators & momentumDivergence
Updated 3 years ago · Apache-2.0 GitHub repository of MACD Divergence+

Hash Ribbons

by DT021
1 stars

This indicator plots daily Bitcoin hash-rate short and long simple moving averages in a separate pane. It marks capitulation when the short average crosses under the long average, miner capitulation while it stays below, recovery while the short average rises,

Indicator v4 Moving averagesOscillators & momentum Repaints
Updated 6 years ago · GPL-3.0 GitHub repository of Hash Ribbons

This indicator scans a pasted list of symbols for RSI directional momentum and shows matching long and short signals in a table in a separate pane. The user chooses continuous break, continuous retracement, flip break, flip retracement, divergence, or hidden d

Indicator v6 Oscillators & momentumDivergence
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup - RSI Directional Momentum Scanner
330 stars

This strategy enters long when the MACD line crosses above its signal after RSI has been oversold within the last ten bars, and enters short on a MACD cross under after a recent overbought RSI. Each side can be switched off. Default stop loss and take profit a

Strategy v5 Oscillators & momentum
Updated 2 months ago · None stated GitHub repository of MACD Long Strategy [Alorse]
104 stars

This overlay strategy combines a machine-learning distance model with a MACD oscillator to open trades on the price chart. It compares recent history using cosine similarity or Euclidean and Lorentzian distance, then filters direction with selectable moving-av

Strategy v5 AI / machine learningOscillators & momentum
Updated 3 years ago · MIT GitHub repository of MLCEL and MACD Strategy

CCI Background

by be-thomas
65 stars

Calculates a 20-period Commodity Channel Index (CCI) and evaluates its percentile rank over the last 100 bars. It plots the CCI oscillator line in a separate pane alongside a zero level reference. The background dynamically changes using color gradients based

Indicator v5 Oscillators & momentum
Updated 6 days ago · GPL-3.0 GitHub repository of CCI Background

SMA RSI Strategy

by PythonForForex
64 stars

This strategy evaluates simple moving averages and the Relative Strength Index to generate trading signals. It calculates a 10-period SMA, a 30-period SMA, and a 14-period RSI. Long positions are entered when the fast SMA crosses above the slow SMA while RSI i

Strategy v5 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of SMA RSI Strategy

EMA Ribbon MACD

by iamrichardD
57 stars

This strategy combines an EMA ribbon with MACD confirmation and plots in a separate pane. It enters when ribbon alignment, optional MACD zero or signal crosses, volume, smart-money, and multi-timeframe filters agree, then exits with percentage stop loss and ta

Strategy v6 TrendMoving averages
Updated 1 year ago · Apache-2.0 GitHub repository of EMA Ribbon MACD
53 stars

This strategy trades EUR/USD on the price chart using a fast and slow exponential moving average crossover filtered by RSI. It enters long when the fast EMA crosses above the slow EMA while RSI is above 50 and below the overbought level, and enters short on th

Strategy v6 TrendMoving averages
Updated 2 months ago · MPL-2.0 GitHub repository of EUR/USD EMA9-21 + RSI Scalping Strategy
43 stars

This indicator plots the percentage difference between a fast exponential moving average and a slow one, scaled by the close, in a separate pane. It treats that gap as a standardized measure of trend strength and draws a zero line. Users set both EMA lengths a

Indicator v5 Moving averagesOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Standardized MA Difference
43 stars

This strategy calculates support and resistance pivot levels based on short-term open price extremes and combines them with multi-timeframe open prices and MACD indicators. It executes trades with user-defined percentage-based stop-loss and take-profit targets

Strategy v5 Support & resistanceOscillators & momentum Repaints
Updated 2 years ago · None stated GitHub repository of Futures - New Script

This indicator displays a customizable dashboard table on the price chart. It combines Market Action Pulse state, McClellan breadth z-score, VIX Mood Ring status, and Risk Assessment Model hazard score. Users select symbols such as NASDAQ:QQQE or VIX, toggle c

Indicator v6 Screeners & dashboardsOscillators & momentum Repaints

On Balance Volume

by thanhnguyennguyen
33 stars

On Balance Volume plots the standard built-in OBV metric in a separate pane below the price chart. The line color changes dynamically based on the current bar's price action, displaying green when the closing price is higher than the open price and red when it

Indicator v4 Oscillators & momentumVolume
Updated 1 year ago · None stated GitHub repository of On Balance Volume

Benso RSI + PMARP

by benso87
24 stars

This indicator plots an RSI and a PMARP line in a separate pane. It calculates RSI from a chosen source and length, then overlays an SMA or EMA signal. Horizontal bull and bear control and critical levels scale the oscillator. Optional arrows mark regular and

Indicator v5 Oscillators & momentumDivergence
Updated 4 years ago · MPL-2.0 GitHub repository of Benso RSI + PMARP

Greeffer BB Strategy

by SammyEnigma
18 stars

Greeffer BB Strategy is a mean-reversion strategy that combines Bollinger Bands with the Relative Strength Index. It enters long positions when price crosses below the lower band with RSI above 30, and enters short positions when price crosses above the upper

Strategy v4 Oscillators & momentumVolatility & bands
Updated 6 years ago · None stated GitHub repository of Greeffer BB Strategy

Pocket Scout - SPY/QQQ

by chris-c-thomas
14 stars

Pocket Scout - SPY/QQQ is a mobile-optimized intraday bias indicator designed for major US equity ETFs and indices. It overlays a 9/21/50 EMA ribbon, session VWAP, prior day high/low/close levels, and intraday high/low lines directly on the main price chart. T

Indicator v6 TrendOscillators & momentum Repaints
Updated 6 months ago · MIT GitHub repository of Pocket Scout - SPY/QQQ

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