Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 21)

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

RS指標

by TaichiS
219 stars

This indicator calculates and displays the relative strength of an asset compared to a benchmark index. It plots the 21-bar percentage return of the current chart symbol alongside the daily return of the TWSE TAIEX index in a separate pane. A zero baseline mar

Indicator v4 Oscillators & momentum
Updated 5 years ago · None stated GitHub repository of RS指標
114 stars

This indicator applies a k-Nearest Neighbors machine learning algorithm to predict market direction based on historical indicator patterns. It calculates normalized values from selected technical indicators, such as RSI, ROC, CCI, and volume, across short and

Indicator v5 AI / machine learningOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Machine Learning: kNN-based Strategy

RSI Div at dVWAP StDev

by cryptorife
75 stars

This indicator marks RSI divergences only when price trades beyond daily VWAP standard-deviation bands. It compares recent RSI extremes with price highs and lows over a lookback window, and it treats a divergence as valid only while RSI stays beyond overbought

Indicator v4 DivergenceOscillators & momentum Repaints
Updated 3 years ago · GPL-3.0 GitHub repository of RSI Div at dVWAP StDev

BTC True Scalp

by iamrichardD
57 stars

This strategy runs an ultra-fast MACD in a separate pane to capture short-term momentum scalps. It filters trade entries using micro-trend direction, volume spikes, and candle body strength within specified session hours. Positions default to two percent of eq

Strategy v6 Oscillators & momentumScalping Repaints
Updated 1 year ago · Apache-2.0 GitHub repository of BTC True Scalp

This strategy overlays the ETHUSDT perpetual price chart and is labeled for the five-minute timeframe. It calculates a smoothed stochastic oscillator from the open, high, and low, with adjustable K, D, and smoothing lengths plus overbought and oversold levels.

Strategy v5 Oscillators & momentumTrend Repaints
Updated 2 years ago · None stated GitHub repository of ETHUSDTPERP-5M - No repaint 2023

Turtle MACD Time-Zone Filter

by skywalker0803r
42 stars

This strategy enters long when price closes above the prior Donchian high and short when it closes below the prior Donchian low, only while flat and inside a Taipei-hour window. It exits on a MACD histogram reversal or through an ATR stop and a percentage take

Strategy v5 BreakoutOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Turtle MACD Time-Zone Filter

Advance Decline Ratio

by TWODS-CAPITAL
37 stars

This indicator calculates and plots the ratio of advancing stocks to declining stocks on the New York Stock Exchange. It requests close prices from the USI:ADVN.NY and USI:DECL.NY ticker symbols using the security function and divides advances by declines. The

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Advance Decline Ratio

MACD

by thanhnguyennguyen
33 stars

This indicator calculates and plots the Moving Average Convergence Divergence (MACD) line, signal line, and a four-color histogram in a separate chart pane. It computes the difference between fast and slow moving averages to determine momentum shifts. Users ca

Indicator v4 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of MACD

WaveTrend 3D

by nersent
29 stars

WaveTrend 3D is a redesigned oscillator that implements the classic WaveTrend algorithm with kernel-based regression for trend reversal confirmation and multi-timeframe support. It calculates a smoothed oscillator line and displays a symmetrical three-dimensio

Indicator v5 Oscillators & momentumDivergence
Updated 11 months ago · Custom licence GitHub repository of WaveTrend 3D

Benso RSI

by benso87
24 stars

This indicator calculates a Relative Strength Index using Wilder or Cutler calculation methods, accompanied by an optional smoothing moving average and a signal line. Plotted in a separate pane, it features defined bull and bear control and critical threshold

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

This indicator computes a modified version of John F. Ehlers' Even Better Sinewave oscillator in a separate pane. It filters price data using a high-pass filter, smooths the output with a weighted FIR filter, and normalizes the amplitude using a three-bar powe

Indicator v5 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of John F. Ehlers - Even Better Sinewave Modified

Greeffer BB Strategy

by SammyEnigma
18 stars

Greeffer BB Strategy is a volatility-based mean reversion system that calculates Bollinger Bands using price and standard deviation. It generates long and short signals when price crosses the upper and lower bands respectively. Entries are filtered with RSI(14

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

Bte Strat

by f-cksociety
11 stars

Bte Strat provides a backtesting and trading engine framework implemented as an indicator on the price chart. It evaluates trade signals using selectable entry rules, technical filters like volume and moving averages, and dynamic exit strategies. The script pl

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

This indicator calculates custom Traders Dynamic Index (TDI) conditions on the price chart using a 30-period Relative Strength Index (RSI), volatility bands, and fast/slow RSI moving averages. It plots green buy labels below bars and red sell labels above bars

Indicator v4 Oscillators & momentumVolatility & bands
Updated 5 years ago · None stated GitHub repository of My TDI B/S BTC 1D

Nexural JMA

by JasonTeixeira
9 stars

Nexural JMA plots a Jurik moving average on the price chart. Length, phase, power, and source change the average. It scores momentum from rate of change, volume from a volume percentile, volatility from ATR, and trend strength from price distance to the averag

Indicator v6 Moving averagesOscillators & momentum
Updated 2 weeks ago · Custom licence GitHub repository of Nexural JMA

Laguerre RSI

by lunarticktrading
7 stars

This indicator plots a Laguerre RSI oscillator in a separate pane. It offers a classic four-stage Laguerre filter on close, controlled by alpha, and an alternate mode that builds alpha from fractal-energy style filters on open, high, low, and close. Shaded fil

Indicator v6 Oscillators & momentum
Updated 2 weeks ago · None stated GitHub repository of Laguerre RSI
7 stars

This indicator plots a double relative strength index in a separate pane. It computes RSI from the selected source and length, then calculates RSI of that RSI and combines them as twice the first RSI minus the second. A persistent state turns long above the lo

Indicator v6 Oscillators & momentum
Updated 3 months ago · None stated GitHub repository of Double Relative Strength Index - DRSI

Confluence

by trsdn
6 stars

The Confluence indicator combines Bollinger Bands, RSI and MACD to generate signals on the price chart. It plots the upper Bollinger Band in green, lower Bollinger Band in red, the middle basis in blue, the RSI value and the MACD line with signal. A confluence

Indicator v5 TrendOscillators & momentum
Updated 7 days ago · MIT GitHub repository of Confluence
6 stars

Capital41 Confluence Core plots an EMA or SMA on the price chart and combines its direction with RSI, Williams %R, and a liquidity-sweep check into long and short confluence signals. Signal strictness is Strict, Standard, or Loose, which changes how far the os

Indicator v6 Oscillators & momentumMoving averages
Updated 2 months ago · MIT GitHub repository of Capital41 Confluence Core

MACD

by SiegerTerpstra
5 stars

This indicator calculates and plots the Moving Average Convergence Divergence (MACD) line, signal line, and histogram in a separate pane. It tracks trend direction and momentum shifts by calculating the difference between fast and slow exponential moving avera

Indicator v6 Oscillators & momentumTrend
Updated 9 months ago · None stated GitHub repository of MACD

Cerebr Centauri Strategy

by jerryinyang
5 stars

Cerebr Centauri Strategy is a multi-indicator trading system for Pine Script v4 that combines Moving Averages (SMA, EMA, LSMA, WMA), Stochastic Oscillator, RSI, and MACD across both current and higher timeframes. It evaluates trend conditions and oscillator st

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

This strategy is a multi-strategy backtesting engine that draws entries and exits on the price chart. The user picks one approach, including Connors RSI-2, z-score mean reversion, EMA and MACD momentum, Bollinger squeeze, VWAP reversion, Supertrend, Ichimoku,

Strategy v6 Oscillators & momentumMean reversion Repaints
Updated 2 days ago · None stated GitHub repository of Simpleton v0.01 CURSOR [Elton Engine]
4 stars

This intraday strategy executes trades using dual EMA crossovers and RSI mean-reversion near VWAP. Designed primarily for 5-minute index futures charts like ES and MES, it offers momentum entries on fast and slow EMA crosses confirmed by VWAP, as well as count

Strategy v6 Moving averagesOscillators & momentum
Updated 3 days ago · None stated GitHub repository of Ultimate Combo v2 (Relaxed)

RSI EMA Breakout

by latentwill
4 stars

This strategy trades momentum breakouts by combining an Exponential Moving Average with the Relative Strength Index. It enters a long position when the closing price is above the EMA and the RSI crosses above the breakout threshold. It enters a short position

Strategy v5 TrendOscillators & momentum
Updated 8 days ago · None stated GitHub repository of RSI EMA Breakout

TF Bias Detector (SMC)

by Sidoine1991
4 stars

This indicator tracks multi-timeframe momentum and trend direction across M1, M15, H1, and H4 horizons. It plots four 14-period RSI curves in a separate pane alongside 30, 50, and 70 reference levels. Directional bias values are calculated by comparing price t

Indicator v6 Oscillators & momentumMoving averages
Updated 2 weeks ago · MIT GitHub repository of TF Bias Detector (SMC)
4 stars

This long-only strategy identifies mean-reversion dip opportunities within established uptrends on daily charts. It opens a position when price is trading above a simple moving average and the Relative Strength Index (RSI) crosses back above a specified overso

Strategy v6 Mean reversionOscillators & momentum
Updated 5 months ago · None stated GitHub repository of RSI Mean Reversion (Long Only)

RSI-7 Breakout

by aofwittawat
4 stars

This strategy identifies breakout trades using a 7-period RSI combined with price extreme lookbacks. A long entry triggers when the RSI rises above 70 and price reaches a new lookback high, provided price remains above an optional EMA trend filter and passes a

Strategy v5 Oscillators & momentumBreakout
Updated 4 years ago · None stated GitHub repository of RSI-7 Breakout
3 stars

This indicator calculates the Commodity Channel Index from a user-selected source and length and plots it in a separate pane. Dashed lines mark plus 100 and minus 100, a middle line sits at zero, and the area between the outer bands is filled. A smoothing line

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 2 days ago · None stated GitHub repository of Commodity Channel Index
3 stars

The Divergence Screener by Trendoscope identifies regular and hidden bullish and bearish divergences between price action and technical oscillators in a separate pane. It supports multiple oscillators including RSI, CCI, CMO, and COG, as well as custom externa

Indicator v6 DivergenceOscillators & momentum Repaints
Updated 12 months ago · None stated GitHub repository of Divergence Screener [Trendoscope]

Ultimate Trading System

by EngineeredSuccess
3 stars

The Ultimate Trading System is an integrated indicator that combines multiple analysis methodologies—including Pi Cycle Top, SPX/Gold ratio, Elliott Wave, and multi-source market signals—into a composite oscillator scored from 0 to 100. Plotted in a separate p

Indicator v6 Screeners & dashboardsOscillators & momentum
Updated 1 year ago · Custom licence GitHub repository of Ultimate Trading System
3 stars

This price-chart strategy is built around RSI divergence using a configurable RSI length and source plus left and right pivot lookbacks. Separate toggles control regular and hidden bullish and bearish divergence plots, and an RSI level is available as a take-p

Strategy v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of Sapphire RSI Divergence Strategy

DFO 3

by jawauntb
3 stars

DFO 3 plots a directional flow oscillator in a separate pane. It averages five normalized components: a composite RSI momentum index, a cumulative volume delta built from one-minute volume, a price position over a 100-bar range, an EMA-versus-SMA trend spread,

Indicator v5 Oscillators & momentumVolume
Updated 2 years ago · GPL-3.0 GitHub repository of DFO 3

Currency Strength Chart

by itmakesyousick
3 stars

Calculates and plots the relative strength lines for major currencies including EUR, USD, JPY, GBP, CHF, AUD, CAD, and NZD in a separate pane. It evaluates cross-rate movement using data from major Forex brokers like OANDA or FOREXCOM. Users can smooth the str

Indicator v5 Oscillators & momentumMoving averages
Updated 4 years ago · None stated GitHub repository of Currency Strength Chart
2 stars

MasterTrader V1 is an indicator that plots two exponential moving averages (fast length 9, slow length 21) and RSI (length 14) on the close price chart. It generates long entry signals when the fast EMA crosses above the slow EMA, RSI stays between 30 and 70,

Indicator v6 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of MasterTrader V1 Master Trader
2 stars

This script calculates short and medium-period Rank Correlation Index (RCI) values to identify potential reversal entry signals directly on the price chart. It checks whether the short-term RCI crosses oversold or overbought threshold levels and hooks back, co

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of GBPJPY Ver7 Phase2 - Entry Signal

Money Flow Index

by TamTH-Dev
2 stars

This indicator calculates and plots multi-timeframe Money Flow Index (MFI) values in a separate pane. It features two distinct MFI lines: a fast MFI based on the current or custom timeframe, and a slow MFI using a higher timeframe or automatic step-up timefram

Indicator v6 Oscillators & momentumVolume
Updated 6 weeks ago · None stated GitHub repository of Money Flow Index

Strategy Examples

by danielbodnar
2 stars

Strategy Examples is a Pine Script strategy template demonstrating multiple classic technical trading approaches directly on the price chart. It incorporates a moving average crossover system using SMA or EMA, an RSI mean reversion model operating on overbough

Strategy v6 Moving averagesOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Strategy Examples
2 stars

Lakshmi v1 Institutional Flow Engine indicator calculates a Magic Line using ATR(14) multiplied by golden ratio 1.618 anchored to daily midpoint close. It plots demand and supply zones derived from volume profile bins and fair value gaps on 4H and daily charts

Indicator v6 SMC / ICT / price actionVolume
Updated 6 months ago · None stated GitHub repository of Lakshmi Institutional Flow Engine

Alpy Vix

by avatar-lavventura
2 stars

Alpy Vix is a strategy that computes the Wave Trend oscillator from HLC3 using EMA and SMA, the Williams VIX Fix formula, VWAP levels, and Bollinger Bands on WVF. It generates signals on WT crosses and WVF conditions like long_VWMA or close strength versus pri

Strategy v5 Oscillators & momentumVolatility & bands Repaints
Updated 7 months ago · None stated GitHub repository of Alpy Vix

This indicator serves as a grid range plugin for the Grid Bot framework by calculating an RSI-based channel. Plotted in a separate pane, it computes smoothed RSI levels, overbought and oversold thresholds, and channel width constraints using custom multi-timef

Indicator v6 Oscillators & momentumVolatility & bands Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot Grid Range Plugin RSI Channel [psyll]

Reverse Stochastic

by mushroom-men-Trading
2 stars

This indicator converts a smoothed stochastic oscillator back into price levels. It calculates a reverse stochastic from close, high, and low using configurable K length, D length, and smoothing, then maps fixed scale points, including bull and bear control zo

Indicator v6 Oscillators & momentumSupport & resistance
Updated 9 months ago · None stated GitHub repository of Reverse Stochastic

Box Scalper v4

by wynnforthework
2 stars

Box Scalper v4 is a strategy that plots buy and sell signals on the price chart using ADX trend filters, QQE momentum oscillator, and BOX channels. It signals entries based on crossovers and zone conditions, with trailing stop loss and take profit targets. Par

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Box Scalper v4

Elder Force Index

by ryangaraygay
2 stars

The Elder Force Index indicator calculates efi as the EMA of price change times volume with a configurable length. It then plots the difference between efi and its 9-period SMA as colored column bars in a separate pane, with positive values colored up and nega

Indicator v5 Oscillators & momentumVolume
Updated 1 year ago · MIT GitHub repository of Elder Force Index

Sell Signal

by tuanmcwar
2 stars

This indicator plots sell signals directly on the price chart using shape plots and text labels. It triggers a sell alert when four conditions coincide: a bullish candle with at least a five percent price increase, volume at least five times greater than the p

Indicator v4 Volatility & bandsOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Sell Signal

CBB MTF Penta RSI

by codybbrown
2 stars

This indicator calculates five RSI series from the chart close: a short RSI smoothed by a simple moving average, plus RSI lengths of 14, 30, 70, and 120. It stores those readings in arrays and offers toggles for price-bar colors that mark trend, crossovers, cr

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of CBB MTF Penta RSI

STC+TrendTrader

by theupslidedown
2 stars

This indicator combines the Schaff Trend Cycle (STC) oscillator with Andrew Abraham's Trend Trader indicator in a separate pane. It calculates the STC oscillator using fast and slow moving averages combined with double stochastic smoothing, plotting a colored

Indicator v5 Oscillators & momentumTrend
Updated 3 years ago · None stated GitHub repository of STC+TrendTrader

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