Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 56)

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

1 stars

TN Sovereign Optimized Trend v6 is a Pine Script v6 strategy that plots fast, slow, and macro EMAs on the price chart. It generates buy signals on fast EMA crossover above the slow EMA when price exceeds the 200 EMA macro filter, RSI exceeds 50, and volume sur

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of TN Sovereign Optimized Trend v6
1 stars

A Pine v4 pane indicator that draws moving average based momentum as a heat map of up to 28 rows and adds pivot-based swing detection on the oscillator. Separate pivot lookbacks and range limits are provided for short, medium and long term swings, and colored

Indicator v4 Oscillators & momentumDivergence
Updated 6 months ago · None stated GitHub repository of Angular Momentum Swing Heat Map
106 stars

This Pine Script strategy uses the Commodity Channel Index (CCI) with a 20-period SMA to generate long-only signals. It plots the CCI line and dashed bands at 150 and -150 on the chart, filling the area between bands. Entries occur when CCI crosses above the l

Strategy v5 Oscillators & momentumSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of CCI High Performance Long Only

Relative Strength Index

by TWODS-CAPITAL
37 stars

This indicator calculates the Relative Strength Index from a chosen price source using a smoothed average of gains and losses, then plots it in a separate pane. It overlays a moving average of the RSI that can be SMA, EMA, SMMA, WMA, VWMA, or a Bollinger Band

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Relative Strength Index

Sergdi B003

by ruckard
13 stars

Sergdi B003 is a trend-following strategy designed to capture directional momentum using higher-timeframe Directional Movement Index signals. It opens long positions when the 4-hour DI+ crosses over the 4-hour DI-, and short positions when DI+ crosses under DI

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Sergdi B003

WaveTrend Advanced Smoothing is a separate-pane momentum oscillator built on the classic WaveTrend algorithm with eight selectable smoothing techniques, including SuperSmoother, T3, KAMA, and JMA. It provides three normalization scale modes: Classic, Clamp, an

Indicator v6 Oscillators & momentumMoving averages
Updated 2 days ago · MIT GitHub repository of WaveTrend Advanced Smoothing [WavesUnchained]
1 stars

A simple trend and momentum strategy on the price chart. It goes long when RSI is above an upper threshold while price sits above a 200-period EMA, and short when RSI is below a lower threshold with price under the EMA. Each entry places an ATR-based stop loss

Strategy v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of Tn Sovereign RSI ATR

This indicator calculates a smoothed momentum oscillator from price and plots many offset momentum lines in a separate pane as a colour-graded heat map. Moving average type, smoothing periods, the number of plotted lines and the colour theme are adjustable. It

Indicator v4 Oscillators & momentumDivergence
Updated 6 months ago · None stated GitHub repository of Angular Momentum Swing Heat Map Plot

CCI Level Zone

by hasnocool
106 stars

This strategy plots the Commodity Channel Index of the OHLC4 price in a separate pane and uses fixed CCI zones to allow long or short trades. Longs open when the CCI is above its long level, optionally above an SMA of the CCI, and the long RSI crosses a buy le

Strategy v5 Oscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of CCI Level Zone

Relative Vigor Index

by TWODS-CAPITAL
37 stars

This indicator plots the Relative Vigor Index in a separate pane. It divides the length-period sum of symmetrically weighted close-minus-open values by the matching sum of high-minus-low ranges, then plots that line and a symmetrically weighted moving average

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Relative Vigor Index
9 stars

WaveTrend v2 [WavesUnchained] is a momentum oscillator displayed in a separate pane. It derives channel index values using configurable price sources and smooths them with selectable algorithms including EMA, HMA, WMA, or JMA approximation. Traders can toggle

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 days ago · MIT GitHub repository of WaveTrend v2 [WavesUnchained]
1 stars

This indicator builds a Detrended Rhythm Oscillator in a separate pane. It uses a detrended price oscillator with fast and slow lengths to find zig-zag swings, then draws dashed or dotted lines and labels showing the bar distance between successive highs. The

Indicator v4 Oscillators & momentum
Updated 6 months ago · None stated GitHub repository of Detrended Rhythm Oscillator Peak

Filtered Stoch

by hasnocool
106 stars

Filtered Stoch is a long-only strategy that combines a Stochastic RSI oscillator with a trend filter based on the highest EMA of price highs. A bullish trend state is identified when close prices trade above the EMA filter level. The strategy enters a long pos

Strategy v5 Oscillators & momentumTrend
Updated 2 years ago · GPL-3.0 GitHub repository of Filtered Stoch

Relative Volatility Index

by TWODS-CAPITAL
37 stars

This indicator plots the Relative Volatility Index in a separate pane. It measures the standard deviation of the close and splits that volatility into upward and downward price changes, then smooths each side with a fixed 14-period exponential moving average a

Indicator v5 Volatility & bandsOscillators & momentum
Updated 3 years ago · MIT GitHub repository of Relative Volatility Index

Sergdi D002

by ruckard
13 stars

This strategy detects trend reversals on the 4H timeframe using ADX crossover signals. Long entries occur when +DI crosses above -DI, and short entries when +DI crosses below -DI. Built-in risk management includes ATR-based stop loss, optional take profit, tra

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Sergdi D002

Combines an upgraded WaveTrend oscillator engine with market structure swing pivots, volume profile point of control (POC), and multi-timeframe trend alignment scoring. Trades are triggered by WaveTrend reversal or pullback continuation signals that pass conte

Strategy v6 Oscillators & momentumTrend
Updated 2 days ago · MIT GitHub repository of WaveTrend v3 [WavesUnchained] — Strategy

Cyberpunk MACD Pulse Engine

by eddiebelaval
7 stars

The Cyberpunk MACD Pulse Engine is a momentum indicator displayed in a separate pane. It calculates MACD line, signal line, and histogram values using configurable parameters or preset modes tailored for scalping, swing trading, and custom setups. The indicato

Indicator v5 Oscillators & momentumDivergence
Updated 3 months ago · None stated GitHub repository of Cyberpunk MACD Pulse Engine
3 stars

This indicator calculates a TTM-style squeeze by comparing Bollinger Bands with Keltner Channels alongside a linear regression momentum oscillator. It measures volatility compression when Bollinger Bands contract within the Keltner Channels and tracks the dura

Indicator v5 Oscillators & momentumVolatility & bands
Updated 5 months ago · None stated GitHub repository of Linear Regression
1 stars

This indicator builds a Detrended Rhythm Oscillator in a separate pane. It uses a detrended price oscillator with fast and slow lengths to find zig-zag swings, then draws dashed or dotted lines and labels showing the bar distance between successive lows. The a

Indicator v4 Oscillators & momentum
Updated 6 months ago · None stated GitHub repository of Detrended Rhythm Oscillator Trough

John Day Stop Loss

by hasnocool
106 stars

This long-only Pine v5 strategy plots RSI, Money Flow Index, Stochastic RSI, and a MACD calculation in a separate pane. Visible buy logic requires Money Flow below a maximum and a Stochastic RSI K-line cross above D while below the oversold band; the matching

Strategy v5 Oscillators & momentumVolume
Updated 2 years ago · GPL-3.0 GitHub repository of John Day Stop Loss

Sergdi E002

by ruckard
13 stars

Sergdi E002 is a directional trading strategy based on higher-timeframe Directional Movement Index crossovers. It enters long when the 4-hour DI+ crosses above DI- and short when DI+ crosses below DI-. The strategy features extensive risk management options in

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Sergdi E002

The WaveTrend v4 Strategy generates trading signals when the WaveTrend oscillator crosses at oversold or overbought levels. Long positions enter on bullish crosses in oversold territory, while short positions enter on bearish crosses in overbought territory. I

Strategy v6 Oscillators & momentumTrend Repaints
Updated 2 days ago · MIT GitHub repository of WaveTrend v4 [WavesUnchained] Strategy

Tn Sovereign STC v6

by raybird
1 stars

Tn Sovereign STC v6 is an overlay strategy that combines the Schaff Trend Cycle oscillator with a 200-period Exponential Moving Average trend filter. It triggers long entries when the Schaff Trend Cycle crosses above the oversold boundary during a general uptr

Strategy v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of Tn Sovereign STC v6

Mov Avg Speed Strategy

by hasnocool
106 stars

This strategy evaluates market trend and momentum by combining moving average rate of change, Stochastic Oscillator levels, and MACD signal line directions on the main chart overlay. It calculates a directional signal from each of the three indicators and requ

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Mov Avg Speed Strategy

Sergio Squeeze C002

by ruckard
13 stars

Sergio Squeeze C002 is a Pine Script v5 strategy template designed to interact with Zignaly for automated trading. It relies on the SqueezeMomentum indicator to generate signals: it opens long positions when the indicator shows positive shine and short positio

Strategy v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Sergio Squeeze C002

This strategy calculates the WaveTrend oscillator alongside Stochastic RSI to identify reversal setups at overbought and oversold extremes. It enters long positions when the WaveTrend oscillator crosses upward below configured oversold levels, and enters short

Strategy v6 Oscillators & momentumMean reversion Repaints
Updated 2 days ago · MIT GitHub repository of WaveTrend v4 [WavesUnchained] Strategy
3 stars

Linear Regression Slope is a momentum and trend strength indicator that calculates the mathematical slope of a linear regression line using weighted and simple moving averages. It plots the resulting slope oscillator alongside a reference zero line in a separa

Indicator v5 Oscillators & momentumTrend
Updated 5 months ago · None stated GitHub repository of Linear Regression Slope

This strategy calculates the Stochastic oscillator (%K and %D) alongside overbought and oversold reference levels to detect divergences against price pivots. Using left and right pivot lookbacks on price and the Stochastic line, it identifies bullish and beari

Strategy v6 Oscillators & momentumDivergence
Updated 2 months ago · None stated GitHub repository of Tn Sovereign Stoch Divergence v6

My Strategy

by hasnocool
106 stars

This overlay strategy combines a Schaff Trend Cycle, an ATR trailing stop, and a fixed 200-period simple moving average. It enters long when the cycle turns upward, the ATR bias is bullish, and price is at or above the average, and short on the opposite alignm

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of My Strategy
99 stars

This indicator calculates the dominant cycle period of the input source using a Radix-2 Fast Fourier Transform. It builds a windowed array from the source data, performs an in-place iterative FFT, and identifies the peak magnitude within the specified frequenc

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of FFT Dominant Cycle (Radix-2 FFT)

RSI Strategy

by TWODS-CAPITAL
37 stars

This script implements a classic Relative Strength Index mean-reversion strategy overlaid directly on the price chart. It calculates an RSI value based on close prices over a user-defined length. A long position enters when the RSI crosses above the oversold l

Strategy v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of RSI Strategy

Sergiosqueeze

by ruckard
13 stars

This strategy executes trades based on the Squeeze Momentum indicator and overlays directly on the price chart. It opens long positions when momentum is positive and active, and enters short positions when momentum is negative and active. Trades exit when the

Strategy v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Sergiosqueeze

This indicator plots a Williams %R oscillator normalized from the native negative range onto a 0–100 scale in a separate pane. It smooths the core with a selectable average, draws a signal line, and marks midline and overbought or oversold crosses. Optional st

Indicator v6 Oscillators & momentumDivergence
Updated 2 days ago · MIT GitHub repository of Williams %R Advanced [WavesUnchained]

DX with Price-Aligned Color

by eddiebelaval
7 stars

This indicator calculates the Directional Index from plus and minus directional movement and true range, then plots the DX line in a separate pane. Line color is lime when DX is rising and price is up, red when DX is rising while price is down or when DX is fa

Indicator v5 Oscillators & momentumTrend
Updated 3 months ago · None stated GitHub repository of DX with Price-Aligned Color
1 stars

This strategy computes a Stochastic Oscillator K and D lines with customizable length, smooth periods, and overbought/oversold thresholds. It generates long signals on K/D crossover below the oversold level in a bullish regime defined by price above a 200 EMA,

Strategy v6 Oscillators & momentumMean reversion
Updated 2 months ago · None stated GitHub repository of Tn Sovereign Stoch v6
99 stars

This indicator calculates the first finite difference, or velocity, of a chosen source series. It subtracts the previous bar's value from the current value and returns zero when the previous value is not available. A single source input selects the series, def

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of First Derivative / Velocity (SLOPE)

Sergiosqueeze B002

by ruckard
13 stars

Sergiosqueeze B002 is an automated trading strategy based on Squeeze Momentum and moving average closing lines designed to work with Zignaly copy trading webhooks. It executes long or short positions based on momentum direction and exits when momentum weakens.

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Sergiosqueeze B002

This indicator calculates synthetic fear and complacency gauges based on the Williams VIX Fix formula for both bullish and bearish directions. It overlays standard deviation bands, percentile lookbacks, and context moving averages to identify volatility spikes

Indicator v6 Volatility & bandsOscillators & momentum
Updated 2 days ago · MIT GitHub repository of Williams VIX Fix Advanced [WavesUnchained]

Fisher Transformator Index

by eddiebelaval
7 stars

This indicator plots a modified Fisher Transform oscillator alongside an adjustable trigger line in a separate pane. It calculates normalized median price values, applies smoothing and clipping, and transforms the result into Gaussian probability distribution

Indicator v5 Oscillators & momentumTrend
Updated 3 months ago · None stated GitHub repository of Fisher Transformator Index

Force Index (FI)

by mihakralj
99 stars

This indicator calculates the Force Index as the exponential moving average of the change in close multiplied by volume. It plots the smoothed value in a separate pane and draws a dotted zero line. The period input sets the EMA smoothing length, defaulting to

Indicator v6 Oscillators & momentumVolume
Updated 4 weeks ago · Apache-2.0 GitHub repository of Force Index (FI)

SMI Ergodic Indicator

by TWODS-CAPITAL
37 stars

The SMI Ergodic Indicator calculates and displays the True Strength Index oscillator alongside an exponential moving average signal line in a separate pane. It evaluates price momentum through double smoothing across configurable short and long periods. Users

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of SMI Ergodic Indicator

Sergiosqueeze D004

by ruckard
13 stars

Sergiosqueeze D004 is a trading strategy designed for automated execution via Zignaly alerts. It utilizes squeeze momentum logic to open long positions when momentum expands positively and short positions when momentum expands negatively, exiting when the sign

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Sergiosqueeze D004
106 stars

This strategy combines the Price Moving Average Ratio Percentile (PMARP) with Madrid Moving Average Ribbon concepts to identify overextended price conditions and trend shifts. It calculates PMAR or PMARP across selectable moving average types and a lookback wi

Strategy v5 Moving averagesOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of PMAR and Madrid MA Strategy

SMI Ergodic Oscillator

by TWODS-CAPITAL
37 stars

This indicator plots the SMI Ergodic Oscillator in a separate pane. It calculates the True Strength Index of close prices using the short and long lengths, smooths that result with an exponential moving average signal, and plots the difference as a histogram.

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of SMI Ergodic Oscillator
13 stars

This indicator plots a squeeze-momentum histogram in a separate pane. It compares Bollinger Bands with Keltner Channels to mark squeeze on, squeeze off, or no squeeze, and colors the zero line by that state. The histogram is a linear regression of close agains

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of TradingLatino Abajo A001

Mirror Oscilator

by morindok
1 stars

The Mirror Oscilator calculates a specialized oscillator in a separate pane by analyzing fractal periods and dynamic symmetry levels. It computes fractal turning points based on high and low prices over a specified period, derives symmetrical price relationshi

Indicator v5 Oscillators & momentumSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Mirror Oscilator

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