Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 10)

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

Scalping 3EMA

by rodrigo-brito
9 stars

This long-only strategy calculates three exponential moving averages with lengths of 50, 100, and 150 periods, plotting them directly on the price chart. It also calculates a 14-period RSI and MACD. The strategy opens long positions when the moving averages al

Strategy v4 TrendOscillators & momentum
Updated 5 years ago · MIT GitHub repository of Scalping 3EMA
9 stars

This indicator plots currency strength values for EUR, USD, JPY, GBP, CHF, AUD, CAD, NZD and optionally XAU or XAG on a separate pane. It computes strength by comparing current pair closes to daily closes using broker-specific data from OANDA, FX or FOREXCOM.

Indicator v4 Oscillators & momentumSupport & resistance Repaints
Updated 5 years ago · None stated GitHub repository of 4th Dimension Currency Strength

Repanocha V4 Edited

by wocclyl
9 stars

This strategy plots a Tillson T3 average on the price chart and colors it by slope. It combines the T3 direction with a range filter, ADX, RSI, MACD and parabolic SAR to mark long and short entries, including optional unconfirmed signals. Positions can be rest

Strategy v4 TrendOscillators & momentum Repaints
Updated 7 years ago · MIT GitHub repository of Repanocha V4 Edited
8 stars

This strategy calculates a StockCharts Technical Rank metric alongside an O'Neil-style relative strength rating, plotting both curves in a separate pane. It evaluates long-term, medium-term, and short-term exponential moving average deviations, rate-of-change

Strategy v5 Oscillators & momentumMoving averages
Updated 4 years ago · None stated GitHub repository of SCTR & ONeil + RSI strategy
7 stars

The Average Sentiment Oscillator (ASO) measures bullish and bearish market sentiment by evaluating intrabar and group price ranges over a specified period. It plots bull and bear sentiment lines in a separate pane along with optional shifted lead or lag lines

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 months ago · None stated GitHub repository of Average Sentiment Oscillator

A trend-following strategy that combines Bollinger Bands, RSI momentum, triple exponential moving average alignment, and volume filters directly on the price chart. It calculates standard Bollinger Bands, RSI, three EMAs (50, 100, 200), and customized ranging

Strategy v6 TrendOscillators & momentum
Updated 4 months ago · None stated GitHub repository of Bollinger + RSI + SMA Trend Filter

Temp RSI

by benniebendiksen
7 stars

This strategy calculates the relative strength index of the closing price using a user-set length and prints that value in labels on the price chart. It also requests the close from a selectable higher timeframe, though the shown logic does not use that series

Strategy v5 Oscillators & momentum
Updated 1 year ago · MIT GitHub repository of Temp RSI
7 stars

This strategy combines Ichimoku Kinko Hyo components, a Stochastic oscillator, and specific candlestick patterns to generate trade signals. It identifies Kumo twists and range breakouts while evaluating candle body shapes using Fibonacci threshold filters. Tra

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · MIT GitHub repository of Soulevement / Ressaut Strategy
7 stars

This Pine Script strategy combines Triple Exponential Moving Average, Bollinger Bands, and RSI to generate trading signals on the price chart. It plots the TEMA line along with the Bollinger Bands basis and outer bands. Long entries trigger when RSI crosses be

Strategy v5 Moving averagesVolatility & bands
Updated 4 years ago · GPL-3.0 GitHub repository of TEMA + Bollinger Bands Strategy
6 stars

Basic Long Entry System 2 is a long-only price-chart strategy that reads one-hour ADX and an exponential moving average, then looks for a 15-minute RSI pullback under the hourly RSI. It sets the hourly bias when ADX is above a threshold, declining, and price i

Strategy v6 Oscillators & momentumTrend Repaints
Updated 1 year ago · MIT GitHub repository of Basic Long Entry System 2
6 stars

This strategy tracks momentum using an 8-period and 21-period Exponential Moving Average (EMA) crossover system. It enters long positions when the 8 EMA crosses above the 21 EMA and closes open long positions when the 8 EMA crosses below the 21 EMA. Each trade

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of TradersPost Example MOMO Strategy

Edge 59

by subos2008
6 stars

Edge 59 is a price-chart strategy that combines an ADX directional filter, a weighted moving average, and a trend-follower channel. The channel uses an exponential moving average of close, optionally smoothed by linear regression, and a percentage of a fixed 2

Strategy v5 TrendOscillators & momentum Repaints
Updated 2 years ago · Custom licence GitHub repository of Edge 59

Breakout AVAAI (TV mirror)

by tarasprystavskyj
5 stars

Breakout AVAAI is a crypto breakout strategy mirrored from a Python trading platform. It filters potential trades by evaluating ATR relative to close price and measuring momentum over 6-hour and 12-hour lookbacks. Positions are taken when volatility meets user

Strategy v5 BreakoutOscillators & momentum Repaints
Updated 3 months ago · None stated GitHub repository of Breakout AVAAI (TV mirror)

SA-TEST 03

by durdenbtc
5 stars

This strategy calculates a 14-period RSI of close and plots it in a separate pane with horizontal lines at 30 and 70. It opens a long when RSI crosses above the oversold level and closes that long when RSI crosses below the overbought level. There are no short

Strategy v6 Oscillators & momentumMean reversion Repaints
Updated 5 months ago · MIT GitHub repository of SA-TEST 03

Double Smoothed Stochastic

by SiegerTerpstra
5 stars

This indicator calculates the Double Smoothed Stochastic oscillator and plots it in a separate pane below the price chart. It applies dual exponential smoothing to stochastic values to filter market noise while tracking momentum changes. Rising and falling val

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

MACD+RSI

by Ahmed-GoCode
5 stars

This indicator plots a MACD line, signal line, and histogram together with a scaled RSI in a separate pane. MACD is the difference of fast and slow moving averages of the source, with an optional simple moving average instead of an exponential moving average f

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

RSI + Stoch RSI

by mjkid221
5 stars

This indicator combines the standard Relative Strength Index (RSI) and the Stochastic RSI oscillator into a single pane. It calculates and plots the baseline RSI line along with its 70 and 30 overbought and oversold thresholds. Simultaneously, it computes the

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of RSI + Stoch RSI

ADW - Momentum

by ADWilkinson
5 stars

This indicator calculates the Relative Momentum Index (RMI) and plots it in a separate pane alongside a smoothed exponential moving average line. It displays horizontal thresholds for overbought and oversold boundaries, plus a dashed centerline at 50. A colore

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · Custom licence GitHub repository of ADW - Momentum

This strategy draws on the price chart and defines a long setup when the 50-period EMA is above the 200-period EMA, price is above the faster EMA, RSI is below 50, and stochastic %K crosses above %D. Entries use a percentage of equity. Take profit and stop los

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

RSI+EMA+ST

by sawantuday
5 stars

This strategy overlays a fast EMA, a slow EMA, and a Supertrend line on the price chart. It opens a long when RSI is above 50, the fast EMA is above the slow EMA, and Supertrend direction is bullish, and only after 2010. It closes all positions when the fast E

Strategy v4 TrendOscillators & momentum
Updated 5 years ago · CC0-1.0 GitHub repository of RSI+EMA+ST

Antigravity Elite

by eltonaguiar
4 stars

Antigravity Elite is an overlay strategy that switches among seven named engines or auto-detects one, including Connors RSI, EMA stack, Supertrend, volatility-spike reversal, multi-sigma Bollinger reversal, and a weighted consensus. It enters long by default,

Strategy v6 TrendOscillators & momentum
Updated yesterday · None stated GitHub repository of Antigravity Elite
4 stars

This indicator calculates a short RSI and treats a cross above or below a center level as a raw buy or sell. On the live bar it sends alerts that mark the signal active, cancel it, or confirm it when the bar closes, and it increments a revision each time the s

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

Donchian Breakout

by latentwill
4 stars

This strategy enters long when the close is above an exponential moving average and RSI is above a threshold, and enters short when the close is below that average and RSI is below the threshold. A bearish signal also closes an open long. Exits use the stop an

Strategy v5 BreakoutOscillators & momentum Repaints
Updated 7 days ago · None stated GitHub repository of Donchian Breakout

Alert Examples

by trugurpala
4 stars

This indicator calculates fast and slow exponential moving averages along with RSI for detecting crossovers and overbought/oversold conditions. It plots the two EMAs on the price chart with dynamic coloring and displays triangle shapes on crossovers. Bullish c

Indicator v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Alert Examples

This indicator calculates a smoothed, volume-weighted MACD oscillator displayed in a separate pane. It offers several moving average algorithms, including Ehlers SuperSmoother, DEMA, TEMA, RMA, and standard EMA, alongside an optional volume scaling factor to d

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of MACD Integration for GemHunter (Smoothed)
4 stars

This strategy draws on the price chart and is set up for daily ETF trading. It can enter through a classic surge-and-consolidation breakout, a pullback toward stacked EMAs, a relative-volume spike with price momentum, or a pause inside a strong trend. EMA leng

Strategy v6 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of Qullamaggie Breakout Strategy

KDJ Indicator

by YooooungLee
4 stars

This indicator calculates the standard KDJ oscillator lines using the raw stochastic value (RSV) smoothed with exponential moving averages. It plots the K, D, and J lines alongside horizontal overbought (80) and oversold (20) levels in a separate pane. The scr

Indicator v6 Oscillators & momentumDivergence
Updated 10 months ago · Apache-2.0 GitHub repository of KDJ Indicator
4 stars

This indicator calculates a standard Relative Strength Index (RSI) and applies dynamic color schemes and gradient functions to demonstrate custom visual formatting in Pine Script. Users can select preset color palettes like Red-Green, Blue-Orange, or Heat Map,

Indicator v5 Oscillators & momentum
Updated 11 months ago · Custom licence GitHub repository of Color Themes & Gradients [Lab]

This indicator plots a Volatility-Adjusted Momentum Oscillator in a separate pane. It divides the rate of change of close by the average true range, scales the result by 100, and overlays an exponential moving average as a signal line. Horizontal lines and bac

Indicator v6 Oscillators & momentumVolatility & bands
Updated 12 months ago · MIT GitHub repository of Volatility-Adjusted Momentum Oscillator (VAMO)

This strategy plots Ichimoku conversion and base lines on the price chart using Donchian midpoints. It detects conversion-base crossovers and classifies the cross, the close, and a 26-bar price lag relative to the displaced cloud. Inputs enable or disable long

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Davids Ichimoku Conversion Base Break

This strategy combines two Supertrend indicators with a MACD histogram filter to identify trend-following entries on the price chart. Long entries trigger when both Supertrend lines are bullish and the MACD histogram is positive. Short entries execute when bot

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Dual-Supertrend with MACD - Strategy [presentTrading]
4 stars

Calculates the Center of Gravity oscillator to identify momentum and potential turning points. It plots the oscillator alongside an Arnaud Legoux Moving Average trigger line, a Least Squares Moving Average, historical high and low bounds, and optional Fibonacc

Indicator v4 Oscillators & momentumSupport & resistance
Updated 3 years ago · None stated GitHub repository of Center Of Gravity Oscillator
4 stars

This indicator plots a Heikin Ashi style oscillator built from RSI values in a separate pane. It calculates candles from a chosen source and RSI length, with optional smoothing of the candle open. Users can also show a separate RSI line, an RSI histogram, a st

Indicator v4 Oscillators & momentumCandlestick patterns
Updated 4 years ago · None stated GitHub repository of Heikin Ashi RSI Oscillator

AO

by Joshua-Chang
4 stars

This strategy plots an Awesome Oscillator-style histogram in a separate pane. It subtracts a longer simple moving average of the bar midpoint from a shorter one and colors bars by whether the value is rising or falling. It opens a fixed-size long position when

Strategy v4 Oscillators & momentum
Updated 5 years ago · None stated GitHub repository of AO

This indicator combines Stochastic RSI, Relative Strength Index (RSI), and Average Directional Index (ADX) into a single separate oscillator pane. It calculates momentum indicators alongside trend strength values to assess overall market conditions. The Stocha

Indicator v4 Oscillators & momentumTrend
Updated 5 years ago · GPL-3.0 GitHub repository of Stochastic RSI/RSI/Strength of Trend

This strategy combines Ichimoku Cloud calculations with an RSI filter to generate trading signals directly on the price chart. It offers options for displaying either standard offset lines or non-offset non-repainting cloud components. Users can configure para

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

RSI Mean Reversion

by GifariKemal
3 stars

This strategy plots entry signals, stop loss, take profit levels, and an information panel directly on the price chart. It combines a relative strength index mean reversion model with ATR percentile thresholds to filter trades based on volatility conditions. T

Strategy v5 Oscillators & momentumVolatility & bands
Updated 4 days ago · MIT GitHub repository of RSI Mean Reversion

PCA Risk Indicator

by jash-git
3 stars

The PCA Risk Indicator aggregates multiple technical momentum and trend indicators—including WaveTrend, Heikin Ashi Count, and Aroon—into a consolidated Principal Component Analysis (PCA) metric. It evaluates underlying market risk by standardizing individual

Indicator v5 Oscillators & momentumTrend Repaints
Updated 4 weeks ago · None stated GitHub repository of PCA Risk Indicator
3 stars

This indicator calculates Williams' Variable Accumulation/Distribution (WVAD) pressure alongside a signal line in a separate pane. It incorporates optional filters such as higher-timeframe confirmation, an ADX strength filter, and various adaptive smoothing ch

Indicator v6 VolumeOscillators & momentum
Updated 5 weeks ago · MIT GitHub repository of Williams Variable A/D Pressure

MTF Confluence Dashboard

by WiseManAlgo
3 stars

This indicator calculates a multi-timeframe trend and momentum score across five customizable timeframes for up to three symbols using an EMA and RSI dual-vote system. It displays an on-chart dashboard table summarizing individual timeframe states, weighted ag

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

Stella's MACD Crossover

by stella-entry
3 stars

This strategy calculates the standard Moving Average Convergence Divergence oscillator and generates trade entries based on signal line crossovers. It opens long positions on bullish crossovers and short positions on bearish crossunders. An optional exponentia

Strategy v6 Oscillators & momentumTrend
Updated 8 months ago · MIT GitHub repository of Stella's MACD Crossover

Hedge Short Setup Finder

by shitcoding
3 stars

Hedge Short Setup Finder identifies potential short entry opportunities by combining multiple technical confluence conditions. It scans for momentum exhaustion using price surge percentage over a lookback period, overbought RSI with rollover confirmation, Boll

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

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