Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 62)

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

3 stars

A momentum scalping strategy designed for 5-minute charts that combines the Relative Strength Index (RSI) with fast and slow Simple Moving Averages (SMA). It triggers long entries when the 14-period RSI exceeds 70 while the 5-period SMA is above the 20-period

Strategy v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of RSI MA Scalp Strategy

Neglected Volume by DGT

by regalouisei
2 stars

This indicator calculates relative volume metrics and combines them with On Balance Volume (OBV) momentum and price-OBV correlation in a separate pane. It evaluates volume strength against simple moving averages and standard deviation thresholds, while offerin

Indicator v5 VolumeOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Neglected Volume by DGT
106 stars

This strategy plots the RSI of Bitfinex Bitcoin long and short interest in a separate pane and colors a zero line from changes in those series versus short exponential moving averages. It opens a long when the long-interest RSI crosses above the short-interest

Strategy v4 Oscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of BTC Sentiment analysis RSI

ScarAlgo v1

by g-moe
3 stars

ScarAlgo v1 is a trend-following and market-structure strategy plotted directly on the main price chart. It triggers entries using an ATR-based trailing envelope filtered by a configurable multi-timeframe moving average, while employing a WaveTrend momentum os

Strategy v5 TrendSMC / ICT / price action
Updated 5 months ago · None stated GitHub repository of ScarAlgo v1
99 stars

This indicator calculates the Relative Strength Index from a chosen price source using Wilder's smoothing of average gains and losses. It plots a single RSI line in a separate pane. The length sets the lookback period and the source selects the series used in

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Relative Strength Index (RSI)
99 stars

This indicator plots Relative Strength Xtra in a separate pane. It splits the source into positive and negative bar-to-bar changes, then smooths each side with an integrated Jurik-style moving average before combining them into an RSX momentum reading. Length

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Relative Strength Xtra (RSX)
99 stars

This indicator plots the Relative Vigor Index and a four-bar symmetrically weighted signal line in a separate pane. It compares the close-open range with the high-low range using fixed four-bar SWMA weights, then divides a simple moving average of the numerato

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Relative Vigor Index (RVGI)
1 stars

This session-based strategy triggers long entries at the start of the New York trading session when trend and momentum conditions align. It calculates a 38-period Exponential Moving Average and a 14-period RSI. A long position is taken at session open if the c

Strategy v6 Sessions & timeTrend
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Borough New York Session
106 stars

This strategy searches for long buy-and-hold entries on the price chart. It calculates a user-length EMA and a fixed 12/26 MACD, then opens a long position when price is within the maximum EMA distance, that distance is not shrinking, MACD is at or below zero,

Strategy v4 Moving averagesOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Buy and Hold entry finder Strategy

Session Wicks

by g-moe
3 stars

This strategy calculates smoothed Heikin-Ashi candles alongside a moving average of the Relative Strength Index to enter trend reversals. It triggers long entries when smoothed Heikin-Ashi turns bullish while RSI trades above its moving average, and short entr

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Session Wicks

Session Wicks

by g-moe
3 stars

Session Wicks is a price-chart strategy that combines a Heikin Ashi weighted moving average, an RSI compared with its moving average, and a smoothed stochastic. Bullish and bearish states come from the Heikin Ashi average falling or rising and from RSI sitting

Strategy v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Session Wicks
99 stars

This indicator implements John Ehlers' Swiss Army Knife as a second-order recursive filter and plots the result in a separate pane. A mode string selects EMA, SMA, Gaussian, Butterworth, smoother, high-pass, two-pole high-pass, band-pass, or band-stop coeffici

Indicator v6 Moving averagesOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of SAK: Swiss Army Knife Indicator

Squeeze Momentum

by g-moe
3 stars

This overlay indicator combines classic Bollinger Band and Keltner Channel squeeze detection with linear regression momentum and pivot-based support and resistance levels. It plots a long-term moving average filter and tracks squeeze compression and release co

Indicator v5 Volatility & bandsOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Squeeze Momentum
1 stars

This strategy uses RSI with bull and bear threshold crossovers to trade opposite market pairs. It enters long when RSI crosses above 58 and short when below 42, automatically closing the opposite position first. Entry size is 8 percent of equity with 0.05 perc

Strategy v6 Oscillators & momentumTrend
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Crosscurrent Market Pair
99 stars

This indicator calculates John Ehlers' Smoothed Adaptive Momentum oscillator in a separate pane. It identifies the dominant cycle period using a Hilbert Transform and Homodyne Discriminator, then measures price momentum across that dynamic cycle length. A two-

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of SAM: Smoothed Adaptive Momentum

Stoch Slow

by g-moe
3 stars

This indicator calculates a Slow Stochastic Oscillator plotted in a separate pane. It calculates a smoothed %K value using a 3-period stochastic raw calculation averaged over a configurable K Period simple moving average. The %D line is calculated by applying

Indicator v5 Oscillators & momentum
Updated 5 months ago · None stated GitHub repository of Stoch Slow
2 stars

The R:R Trading System Framework is a TradingView Pine Script indicator that overlays on the price chart. It lets users select a backtest method such as Stochastic or 2x MA Cross. Multiple risk-reward levels can then be configured with adjustable stop loss per

Indicator v5 Support & resistanceOscillators & momentum
Updated 8 months ago · None stated GitHub repository of R:R Trading System Framework
3 stars

Stochastic Divergences calculates standard Stochastic Oscillator lines (%K and %D) and scans for regular and hidden divergences against price action. It evaluates pivot highs and lows over a user-defined pivot lookback period to compare oscillator peaks and tr

Indicator v5 Oscillators & momentumDivergence
Updated 5 months ago · None stated GitHub repository of Stochastic Divergences
106 stars

Buy The Dips - MA200 Optimised is a mean-reversion strategy that measures short-term percentage price changes alongside a simple moving average trend filter. It opens long positions when price experiences a steep drop exceeding three percent while remaining ab

Strategy v4 Oscillators & momentumTrend
Updated 2 years ago · GPL-3.0 GitHub repository of Buy The Dips - MA200 Optimised
99 stars

This indicator calculates the Schaff Trend Cycle and plots it in a separate pane. It subtracts a slow EMA from a fast EMA, applies a stochastic over the cycle length, smooths that result, and applies a second stochastic. A second-stage smoother then feeds opti

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Schaff Trend Cycle (STC)
3 stars

Supersaiyan Strategy is an overlay indicator that plots three exponential moving averages alongside the volume-weighted average price (VWAP). It computes a standard Moving Average Convergence Divergence (MACD) oscillator and prepares trend metrics based on EMA

Indicator v5 Moving averagesOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Supersaiyan Strategy
1 stars

The Pine Script strategy calculates fast and slow EMAs along with RSI and ATR on the price chart. It enters long positions when the configuration string matches trend confirmation, fast EMA crosses above slow EMA, and RSI exceeds a threshold. It exits on fast-

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Glyph String Regex
106 stars

This trend-following strategy identifies buying opportunities during bullish pullbacks on the price chart. It defines a bull market when the 50-period simple moving average trades above the 200-period moving average. Long entries trigger when the RSI drops bel

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Buy The Dips in Bull Market

This indicator calculates the second finite difference of a chosen source series, treating that value as price acceleration. It subtracts twice the previous bar from the current bar and adds the value two bars earlier, then plots the result as a yellow line in

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Second Derivative / Acceleration (ACCEL)

Supertrend

by g-moe
3 stars

This strategy calculates trend direction using a multi-timeframe Supertrend formula based on ATR and median price, paired with RSI and Bollinger Band indicators. It enters positions when the Supertrend flips direction, plotting uptrend and downtrend bands with

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Supertrend
2 stars

This overlay indicator plots a six-axis RSI radar on the price chart. It requests 14-period RSI for six user-chosen timeframes and places each reading on a polygon centered on the visible price range. Overbought and oversold marks sit at 70 and 30. Settings ch

Indicator v5 Oscillators & momentum
Updated 8 months ago · None stated GitHub repository of RSI Radar Multi Time Frame
1 stars

This strategy enters long when the fast EMA crosses above the slow EMA and RSI exceeds the entry threshold. It closes when the fast EMA crosses under the slow EMA, RSI falls below the exit threshold, or the open position reaches the maximum hold bars. A stop s

Strategy v6 TrendOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Lattice Confirmed Pivot

This strategy demonstrates position sizing with leverage and margin in Pine Script using a Stochastic Oscillator indicator. It plots the %K and %D lines in a separate pane with upper and lower threshold levels. Long entries trigger when %K crosses above %D bel

Strategy v4 Oscillators & momentum
Updated 8 months ago · None stated GitHub repository of How to Use Leverage and Margin in PineScript

Squeeze Momentum

by mihakralj
99 stars

This indicator plots Squeeze Momentum in a separate pane. It compares Bollinger Bands with a Keltner Channel to mark a squeeze when the bands sit inside the channel. Momentum is a linear regression of price relative to a Donchian midline and an SMA, shown as a

Indicator v6 Volatility & bandsOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Squeeze Momentum

Bankai + DTEK

by g-moe
3 stars

Bankai + DTEK is an overlay indicator that combines Qualitative Quantitative Estimation (QQE) logic, trend coloring based on SuperTrend and CCI ATR, up to four customizable EMA clouds, and simplified TD Sequential signals. It plots multiple moving average clou

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Bankai + DTEK
2 stars

This strategy plots in a separate pane and tests a selected oscillator with one of six entry logics: moving average, moving-average crossover, zero cross, extremes, mean reversion, or take profit. Users scale and time-adjust one of three oscillators and can li

Strategy v4 Oscillators & momentumMoving averages
Updated 8 months ago · None stated GitHub repository of Oscillator Evaluator (Analysis tool)
1 stars

The PineForge — Meridian DMI Regime strategy evaluates trend direction and momentum using the Directional Movement Index, Average Directional Index, and an Exponential Moving Average. It enters long trades when +DI crosses above -DI, provided ADX exceeds the d

Strategy v6 TrendOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Meridian DMI Regime
106 stars

This strategy evaluates multiple MACD entry techniques on the price chart. It calculates standard or SMA-based MACD line, signal line, and histogram values, offering selectable trigger models including continuation crosses, reversal crosses, histogram zero cro

Strategy v4 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of BV's MACD SIGNAL TESTER

Bankai DXY

by g-moe
3 stars

Bankai DXY is a multi-component trend and signal overlay script that combines EMA clouds, moving average slope filters, Aroon filters, QQE signals, Supertrend, CCI-ATR trend rules, and simplified TD Sequential counts. It overlays dynamic EMA clouds on the main

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Bankai DXY

The CDC Action Zone V.3 Test strategy calculates fast and slow exponential moving averages to generate trend-following buy and sell signals. It plots EMA lines, custom bar colors, buy and sell labels, and a visual ribbon directly on the main price chart. The s

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of CDC Action Zone V.3 Test ++Position Size Fix+Float

Bankai ES Trend

by g-moe
3 stars

Bankai ES Trend combines multiple trend and momentum tools into an overlay indicator on the price chart. It calculates moving average slope filters, Aroon trend conditions, QQE momentum signals, Supertrend levels, and multi-period EMA clouds. It plots trend ba

Indicator v5 TrendMoving averages Repaints
Updated 5 months ago · None stated GitHub repository of Bankai ES Trend

Crypto Price Scalper

by hasnocool
106 stars

Crypto Price Scalper is a long-only trading strategy designed for cryptocurrency charts. It combines a custom price-range oscillator, calculated from the highest high and lowest low over a user-defined candle period, with the Vortex Indicator. A long trade ope

Strategy v4 Oscillators & momentumTrend
Updated 2 years ago · GPL-3.0 GitHub repository of Crypto Price Scalper

PineForge — Prism Matrix Vote

by pineforge-4pass
1 stars

The PineForge Prism Matrix Vote strategy plots two EMAs on the price chart and calculates a vote score from four factors: EMA crossover, price above fast EMA, RSI above 52, and ATR relative to close. It enters long positions when the vote score crosses above a

Strategy v6 TrendOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Prism Matrix Vote
99 stars

The Stochastic Fast (STOCHF) indicator calculates the fast stochastic oscillator, consisting of the raw fast %K line and the smoothed fast %D signal line. %K measures the relative position of the current close within the high-low range calculated over the spec

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Stochastic Fast (STOCHF)
3 stars

Buy Low Sell High Composite is a pane oscillator that normalizes RSI, a short-versus-long EMA difference, the MACD histogram, and the Money Flow Index onto a shared scale, then sums them into one composite. It plots that composite as a colored area, the MACD s

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Buy Low Sell High Composite
99 stars

This indicator plots a Stochastic MACD in a separate pane. It measures the rolling high and low over a lookback, applies fast and slow exponential moving averages to the close, and normalizes each average against that range. The difference, scaled by 100, is t

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Stochastic MACD Oscillator (STMACD)

ETH_buy_3commas

by hasnocool
106 stars

This strategy overlays a Cipher B style WaveTrend study on the price chart and is titled for Ethereum buy alerts aimed at 3Commas. It calculates a WaveTrend channel and a short moving average, and can mark buy, sell, gold, and divergence dots. Settings change

Strategy v4 Oscillators & momentumDivergence
Updated 2 years ago · GPL-3.0 GitHub repository of ETH_buy_3commas
99 stars

This indicator calculates the Stochastic Momentum Index in a separate pane. It finds the highest high and lowest low over a lookback, measures the source relative to the range midpoint, and double-smooths that result into a %K line and a further-smoothed %D si

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Stochastic Momentum Index (SMI)

The Commodity Channel Index Custom indicator plots a customizable oscillator in a separate pane on the price chart. It calculates the CCI using a selected source such as HLC3 and a moving average method including SMA EMA or others. Main settings allow adjustin

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Commodity Channel Index Custom

PineForge — Sextant CCI HMA

by pineforge-4pass
1 stars

PineForge — Sextant CCI HMA is a trend-following momentum strategy that combines the Commodity Channel Index with a Hull Moving Average filter. The strategy opens long positions when the CCI crosses above a specified entry level, provided the HMA is rising and

Strategy v6 TrendOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PineForge — Sextant CCI HMA

Ezieh Str.v2

by hasnocool
106 stars

Ezieh Str.v2 is a momentum and volatility strategy combining Bollinger Bands with two distinct RSI periods to identify trading opportunities. It opens long positions when a fast RSI crosses above an oversold threshold while price crosses over the lower Bolling

Strategy v4 Oscillators & momentumVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Ezieh Str.v2

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