Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 14)

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

NostalgiaForInfinityV2

by viktors1982
36 stars

NostalgiaForInfinityV2 is a multi-timeframe mean-reversion strategy derived from the popular Freqtrade algorithmic trading framework. It evaluates price behavior using dual Bollinger Bands, RSI, exponential moving averages, and ATR volatility metrics sampled a

Strategy v4 TrendOscillators & momentum Repaints
Updated 2 years ago · None stated GitHub repository of NostalgiaForInfinityV2

BB + MA + RSI

by thanhnguyennguyen
33 stars

This overlay indicator plots Bollinger Bands around a simple moving average, three exponential moving averages, and RSI-based markers on the price chart. Triangles mark RSI below the oversold level or above the overbought level, and arrows mark RSI crossing th

Indicator v4 Moving averagesVolatility & bands
Updated 1 year ago · None stated GitHub repository of BB + MA + RSI
29 stars

This indicator calculates the Amazing Oscillator using 5-period and 34-period simple moving averages of the median price, then applies an RSI-style relative strength formula over a configurable smoothing period. The resulting oscillator fluctuates between -50

Indicator v5 Oscillators & momentumMoving averages
Updated 11 months ago · Custom licence GitHub repository of Amazing Oscillator [Algoalpha]
25 stars

This Pine Script strategy calculates Bayesian probabilities of price breaking up or down relative to Bollinger Bands and a Simple Moving Average. It plots these breakout and breakdown probability lines as oscillators in a separate pane. Long entries trigger wh

Strategy v4 Oscillators & momentumVolatility & bands
Updated 6 years ago · None stated GitHub repository of Bayesian BBSMA Oscillator Strategy

ADX/DMI Strategy

by benso87
24 stars

This strategy calculates ADX and plus and minus directional movement and adds a Bollinger Band Width Percentile filter. It tracks positive or negative DMI, rising or falling ADX, and an optional recent DMI flip within a set lookback. Settings change ADX length

Strategy v5 TrendOscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of ADX/DMI Strategy
20 stars

This indicator combines RSI, Awesome Oscillator (AO), and Stochastic readings to calculate divergence and momentum signals. It identifies regular and hidden divergences while analyzing price pivots, momentum thresholds, and AO filters. The script draws in a se

Indicator v6 Oscillators & momentumDivergence
Updated 5 days ago · MIT GitHub repository of zaBor RSI+AO+Stoch indicator
20 stars

This indicator implements John F. Ehlers adaptive stochastic and is declared for a separate pane. It high-pass filters the chosen source to keep shorter cycles, smooths that series with a super smoother, and measures Pearson correlation over lags from zero to

Indicator v5 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of Adaptive Stochastic - John F. Ehlers

Greeffer BB Strategy

by SammyEnigma
18 stars

This strategy combines Bollinger Bands, Bollinger Band Width, and the Relative Strength Index (RSI) for mean-reversion trades. It enters long when price crosses below the lower band with oversold RSI, or when band width contracts under low volatility. Short en

Strategy v4 Mean reversionOscillators & momentum
Updated 6 years ago · None stated GitHub repository of Greeffer BB Strategy

Index Intraday Analyst

by chris-c-thomas
14 stars

Index Intraday Analyst overlays CBOE cash indices such as SPX, NDX, RUT, and DJX. It plots a multi-EMA ribbon, a session-anchored TWAP with standard-deviation bands, and session levels such as prior-day high, low, and close, the opening range, and the high and

Indicator v6 TrendOscillators & momentum
Updated 6 months ago · MIT GitHub repository of Index Intraday Analyst

Momentum Index

by CMYKSCRIPTS
13 stars

Momentum Index is a Pine Script strategy that analyzes market momentum in a separate indicator pane. It offers multiple visualization display modes, including Scope, Weighting, and Position. Traders can configure scalar gradation options with linear or logarit

Strategy v4 Oscillators & momentum
Updated 4 years ago · None stated GitHub repository of Momentum Index
12 stars

This strategy enters long when a fast EMA crosses above a slow EMA and RSI, ADX, and volume all clear their thresholds. It sizes the order from a percentage of equity and an ATR stop distance, then sets a partial profit target at a multiple of that risk. After

Strategy v5 TrendMoving averages
Updated 4 months ago · None stated GitHub repository of BTC 4H Institutional Trend

NFI v6

by koradiyakaushal
12 stars

This Pine v4 study ports early NostalgiaForInfinity V6 conditions onto the price chart. It computes two Bollinger setups, several EMAs and SMAs, RSI, MFI, a percent SMA spread labeled EWO, a 14-period choppiness value, and short and longer volume medians. Fixe

Indicator v4 Moving averagesVolatility & bands
Updated 5 years ago · MIT GitHub repository of NFI v6

BTE Acc AO

by f-cksociety
11 stars

This script provides an indicator-based backtesting engine framework built around Accelerator Oscillator and Awesome Oscillator logic. It simulates strategy executions directly on the price chart by plotting entry levels, take profit targets, trade markers, an

Indicator v5 Oscillators & momentumSupport & resistance
Updated 4 years ago · MPL-2.0 GitHub repository of BTE Acc AO

CCI Strategy - Eterna MCP

by EternaHybridExchange
9 stars

This strategy plots the Commodity Channel Index in a separate pane and enters long or short only when flat. A long opens when CCI crosses above the oversold level or rebounds from an extreme oversold zone; a short uses the opposite conditions. It closes the po

Strategy v5 Oscillators & momentum
Updated 7 months ago · MIT GitHub repository of CCI Strategy - Eterna MCP

This indicator plots a Stochastic Momentum Index Ergodic oscillator in a separate pane. It measures close relative to the lookback range, smooths that value twice, and draws an SMI line plus a signal line. Users choose the moving-average type for each line, in

Indicator v4 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Stochastic Momentum Index (SMI) Ergodic [andre_007]
8 stars

This indicator detects contrarian inflection points and potential market reversals by combining sentiment, volume, and price action metrics directly on the price chart. It evaluates overbought and oversold conditions with the RSI and Stochastic oscillators, hi

Indicator v5 Oscillators & momentumVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of GCR Inflection Point Scanner

Commodity Channel Index

by eddiebelaval
7 stars

This indicator calculates and plots the Commodity Channel Index (CCI) alongside a configurable moving average in a separate pane. The CCI line dynamically changes color based on whether its value is above or below a threshold level of 50, accented by gradient

Indicator v6 Oscillators & momentumMoving averages
Updated 3 months ago · None stated GitHub repository of Commodity Channel Index

C41 Oscillator

by damianpitt
6 stars

The C41 Oscillator is a separate pane composite momentum indicator designed to companion the C41 Core Strategy. It combines a moving average trend filter with RSI and Williams %R overbought or oversold reversal conditions into a normalized 0 to 100 score. The

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · MIT GitHub repository of C41 Oscillator

RSI mean reversion

by broomva
5 stars

This strategy plots the relative strength index in a separate pane and trades mean reversion. It enters long when RSI crosses above the oversold level and enters short when RSI crosses below the overbought level. Opposite signals reverse the position. Size def

Strategy v5 Oscillators & momentumMean reversion
Updated 2 days ago · MIT GitHub repository of RSI mean reversion

MACD Divergence

by chaise-cogent
5 stars

This indicator calculates the Moving Average Convergence Divergence (MACD) and signal line in a separate pane to detect regular bullish and bearish divergences. It identifies price pivot highs and lows using a configurable lookback length and compares them aga

Indicator v6 Oscillators & momentumDivergence
Updated 7 months ago · MIT GitHub repository of MACD Divergence

Double Smoothed Stochastic MTF

by SiegerTerpstra
5 stars

This indicator plots a multi-timeframe Double Smoothed Stochastic in a separate pane. It combines an exponential moving average ratio with stochastic normalization and optional moving-average smoothing, producing values from 0 to 100. Rising and falling values

Indicator v6 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Double Smoothed Stochastic MTF

My Cipher v2

by Following-BTC
5 stars

My Cipher v2 plots a combined oscillator in a separate pane. It calculates a WaveTrend-style stochastic from Heikin Ashi prices, a volume-based money flow histogram, smoothed RSI, MACD-style lengths, and a Z-VWAP. Crosses mark WaveTrend turns; colored dots mar

Indicator v4 Oscillators & momentumDivergence
Updated 2 years ago · None stated GitHub repository of My Cipher v2

This short-only strategy identifies trend continuation setups on the price chart by combining 50 and 200 EMAs with Stochastic crossovers and RSI momentum filters. It executes short entries when the 50 EMA is below the 200 EMA, price trades below the 50 EMA, St

Strategy v4 TrendOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of 2 EMAs + RSI + Stochastic Short Strategy

Antigravity Elite

by eltonaguiar
4 stars

Antigravity Elite is an overlay indicator that screens price with seven selectable components: Mercury Fear, Connors RSI-2, volatility-spike reversal, EMA stack, Supertrend, multi-sigma bands, and an optional funding proxy. Auto-Detect chooses one method, whil

Indicator v6 Oscillators & momentumMoving averages
Updated 2 days ago · None stated GitHub repository of Antigravity Elite
4 stars

OptionX Noisy Test Signals calculates a short-period Relative Strength Index (RSI) and plots buy or sell shape markers on the main price chart when the RSI crosses above or below a chosen center level. It generates JSON-formatted alert payloads with symbol, pr

Indicator v6 Oscillators & momentum Repaints
Updated 3 days ago · MIT GitHub repository of OptionX Noisy Test Signals

EMA Cross + RSI Filter

by latentwill
4 stars

This strategy plots on the price chart and trades EMA crossovers filtered by RSI. It enters long when the fast EMA crosses above the slow EMA and RSI is above the minimum threshold. A cross below closes the long and opens a short without an RSI filter. Each en

Strategy v5 TrendMoving averages
Updated 8 days ago · None stated GitHub repository of EMA Cross + RSI Filter

MACD 4H Rhythm

by LePotoRico2105
4 stars

MACD 4H Rhythm is a TradingView strategy that trades the price chart on a four-hour forex rhythm. It goes long when the MACD histogram crosses above zero while a 21-period EMA is above a 50-period EMA, and short on the opposite histogram turn in a bearish EMA

Strategy v5 Oscillators & momentumMoving averages
Updated 7 months ago · MIT GitHub repository of MACD 4H Rhythm

MACD

by YooooungLee
4 stars

This indicator calculates and plots the standard Moving Average Convergence Divergence oscillator in a separate pane. It computes a fast exponential moving average and a slow exponential moving average from the chosen price source, taking the difference as the

Indicator v6 Oscillators & momentumMoving averages
Updated 10 months ago · Apache-2.0 GitHub repository of MACD

Calculates top and bottom reversal signals for oscillator indicators based on dynamic cycle detection, overbought and oversold thresholds, and price confirmation. It tracks indicator cycles using centerline crossovers, verifies overbought or oversold condition

Indicator v6 Oscillators & momentumSupport & resistance
Updated 1 year ago · Custom licence GitHub repository of Universal High-Low Detection Example

COG Multi

by kachook
4 stars

This indicator calculates and plots multiple Center of Gravity lines derived from closing prices using different periods of 9, 50, and 200. The Center of Gravity is smoothed with a factor of 9. Three lines are drawn in a separate pane: one in white with a thic

Indicator v4 Oscillators & momentumMoving averages
Updated 3 years ago · None stated GitHub repository of COG Multi
4 stars

Divergence Strategy scans multiple technical oscillators to detect regular and hidden divergences against price action. It evaluates customizable indicators including MACD, RSI, Stochastic, CCI, Momentum, OBV, and Money Flow Index to trigger strategy entries o

Strategy v4 DivergenceOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Divergence Strategy

This strategy overlays Ichimoku Cloud components alongside SuperTrend and RSI indicators directly on the price chart. It evaluates trend conditions using Tenkan-Sen, Kijun-Sen, and cloud spans, combining them with SuperTrend signals and RSI momentum boundaries

Strategy v4 TrendOscillators & momentum
Updated 6 years ago · Apache-2.0 GitHub repository of Ichimoku Cloud - Kijun-Sen - RSI - SuperTrend

Relative Momentum Index

by AkashSasikumar47
3 stars

The Relative Momentum Index (RMI) is a momentum oscillator calculated in a separate pane. It modifies the standard RSI formula by evaluating price changes relative to a specified momentum lookback period rather than consecutive bars. The script plots the RMI o

Indicator v6 Oscillators & momentum
Updated 2 weeks ago · MIT GitHub repository of Relative Momentum Index

Oscillator Scaffold

by jpantsjoha
3 stars

The Oscillator Scaffold calculates an RSI value using the selected source and bar length. It plots the oscillator in a separate pane along with horizontal lines for overbought and oversold levels. The script fills the region between those levels and draws cond

Indicator v6 Oscillators & momentumSupport & resistance
Updated 4 weeks ago · Custom licence GitHub repository of Oscillator Scaffold

This indicator combines Supertrend for main trend filtering, DeMarker for momentum extremes, and Stochastic RSI for overbought/oversold signals on multiple timeframes. It plots buy/sell arrows and trend labels directly on the price chart. Additional filters in

Indicator v6 TrendOscillators & momentum
Updated 5 weeks ago · MIT GitHub repository of Zerith - Supertrend + DeMarker + Stoch RSI Multi-TF Signal
3 stars

This long-only strategy draws on the price chart. It uses MACD with the 21- and 52-period exponential moving averages. While the signal line is above zero and the faster average is above the slower one, it marks a histogram pullback and enters long on a bullis

Strategy v5 Oscillators & momentumMoving averages
Updated 7 weeks ago · None stated GitHub repository of MACD能量柱跳空策略

AI Trading Bot - 19 Modules

by thanhcong1211
3 stars

This strategy overlays trend, momentum, and simplified Smart Money Concepts (SMC) directly on the price chart. It evaluates market conditions using triple EMAs (20, 50, 200), MACD crossovers, RSI levels, and volume moving averages alongside simplified order bl

Strategy v5 SMC / ICT / price actionTrend
Updated 3 months ago · None stated GitHub repository of AI Trading Bot - 19 Modules

MTF Confluence Dashboard

by WiseManAlgo
3 stars

This indicator displays a multi-timeframe confluence dashboard and signal arrows directly on the main price chart. It evaluates trend and momentum across five configurable timeframes for up to three symbols using an exponential moving average and the relative

Indicator v5 Screeners & dashboardsTrend
Updated 4 months ago · None stated GitHub repository of MTF Confluence Dashboard
3 stars

Stella's RSI + EMA Crossover is a momentum strategy that plots exponential moving averages directly on the price chart. It generates long signals when RSI turns up from oversold levels while price trades above the fast EMA and optional 200-period trend filter

Strategy v6 TrendOscillators & momentum
Updated 8 months ago · MIT GitHub repository of Stella's RSI + EMA Crossover
3 stars

This overlay indicator recreates short-setup conditions and audits their later outcomes on the price chart. It scores optional percent-surge, RSI overbought rollover, Bollinger exhaustion, volume spike, and EMA trend filters, then marks BASE or STRONG signals

Indicator v6 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Hedge Short Setup Outcome Auditor

This indicator plots the Relative Strength Index and Money Flow Index together in a separate pane. It calculates both oscillators using user-defined lookback lengths and price source inputs. Horizontal reference lines mark standard levels at twenty, fifty, and

Indicator v5 Oscillators & momentumVolume
Updated 2 years ago · MIT GitHub repository of Relative Strength Index And Money Flow Index

Currency Strength Chart

by itmakesyousick
3 stars

Calculates and plots the relative strength of eight major forex currencies in a separate pane using logarithmic price differences across currency pairs. It visually displays relative currency performance using customizable lines, histograms, or dynamic table o

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

This overlay indicator plots a 20-period Bollinger Band envelope with a two-standard-deviation width on the price chart. It marks a long bounce when price reclaims the lower band, 14-period RSI is between 30 and 70, 14-period ADX is above 25, and Binance BTCUS

Indicator v6 Volatility & bandsOscillators & momentum

GEO P Momentum Strategy

by newsfriend
2 stars

Implements a rule-based momentum trading strategy that detects Bollinger Band challenges followed by synchronized trendline or range breakouts on the price chart. Entries trigger under configurable strictness modes using multi-timeframe Tide and Wave alignment

Strategy v6 Oscillators & momentumVolatility & bands
Updated 8 weeks ago · None stated GitHub repository of GEO P Momentum Strategy

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