Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 3)

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

This strategy executes trades on gold based on a confluence of Supertrend, RSI, MACD, Bollinger Bands, and volume spikes. It enters long or short positions when trend direction aligns with momentum and price positioning relative to volatility bands, filtered b

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of XAUUSD High Probability Strategy
4 stars

This strategy plots three exponential moving averages on the price chart and uses RSI for exits. It opens a long when the fastest EMA crosses above the middle EMA while remaining above the slowest EMA and the bar closes above its open. Shorts use the opposite

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Tendency EMA + RSI [Alorse]

Trix Strategy V2

by CryptoRobotFr
4 stars

This strategy trades trend continuations using a triple moving average oscillator (TRIX) and a long-term moving average baseline. It opens long positions when price is above the long moving average and the TRIX histogram crosses above zero, and opens short pos

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Trix Strategy V2
4 stars

Davids Ichimoku Cloud Break is an overlay strategy that generates trade signals based on Ichimoku Cloud breakout conditions combined with an optional MACD entry filter. It calculates and plots the Conversion Line, Base Line, Lagging Span, and Leading Spans dir

Strategy v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Davids Ichimoku Cloud Break
4 stars

This indicator plots a separate-pane oscillator from a user-selected source. Named presets and a custom mode set the low-pass period, lookback, and Tr values used by the oscillator. The period is then scaled by hour, day, week, or month multipliers selected fr

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of Boom Hunter - Oscillator
4 stars

Leonidas Trend Following System is a trend following indicator that plots key, long-term, and short-term exponential moving averages directly on the price chart. It calculates trend signals through EMA crossovers and price changes relative to the center line,

Indicator v5 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Leonidas Trend Following System
4 stars

The VIX Fix Double Pleasure indicator calculates standard synthetic Williams VIX Fix to spot market bottoms and combines it with a reversed VIX Fix calculation to detect market tops. It renders both metrics as histograms and lines in a separate pane. By evalua

Indicator v4 Volatility & bandsOscillators & momentum
Updated 4 years ago · MIT GitHub repository of VIX Fix: Double Pleasure

EMA and ADX v1

by aofwittawat
4 stars

This indicator calculates an Exponential Moving Average (EMA) and an Average Directional Index (ADX) to signal trend entries and exits directly on the price chart. It triggers a long signal when the close is above the EMA and a short signal when below, optiona

Indicator v5 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of EMA and ADX v1

ESR-Bot (beta)

by Main-Michael-Sparks
4 stars

ESR-Bot is a Pine v4 strategy that plots in a separate pane. It combines a smoothed RSI, with adjustable overbought and oversold ranges, and two exponential moving averages. A long or short signal fires when RSI sits inside the matching range while a recent EM

Strategy v4 Oscillators & momentumMoving averages
Updated 4 years ago · MPL-2.0 GitHub repository of ESR-Bot (beta)

Bigbaldy RSI for DCA

by bigbaldy1128
4 stars

This strategy simulates Dollar Cost Averaging (DCA) trading bot behavior on the chart. It triggers an initial entry when the RSI drops below a specified oversold limit and price is under a maximum price cap. As price falls, it calculates simulated safety order

Strategy v4 Oscillators & momentumMean reversion
Updated 5 years ago · None stated GitHub repository of Bigbaldy RSI for DCA

KuChart DayLight Basic Currencies

by Vertexstack-Code
4 stars

This indicator calculates and plots the relative performance of eight major currencies (USD, EUR, GBP, CHF, JPY, AUD, CAD, and NZD) in a separate pane. It fetches price data from major Forex currency pairs and calculates logarithmic percentage changes relative

Indicator v4 Oscillators & momentumScreeners & dashboards
Updated 6 years ago · None stated GitHub repository of KuChart DayLight Basic Currencies

Adam's RSI

by adamhelton
4 stars

Adam's RSI calculates a standard Relative Strength Index alongside a fast RSI and an EMA of the standard RSI. It plots the main RSI line colored according to whether it is above or below the 50 baseline, along with overbought and oversold levels. The indicator

Indicator v4 Oscillators & momentumMoving averages
Updated 6 years ago · None stated GitHub repository of Adam's RSI

CMYK RMI SMA

by myn
4 stars

CMYK RMI SMA is a multi-period strategy combining three distinct Relative Momentum Index (RMI) oscillators—Alpha, Beta, and Gamma—with Simple Moving Average (SMA) trend filters. It evaluates short, medium, and long-term momentum alongside SMA trend phasing to

Strategy v4 Oscillators & momentumTrend
Updated 6 years ago · Apache-2.0 GitHub repository of CMYK RMI SMA
3 stars

The strategy plots SuperTrend and ADX indicators directly on the price chart. It generates long signals on SuperTrend bullish flips combined with ADX above the set threshold and closes positions on SuperTrend bearish flips or when stop-loss or take-profit leve

Strategy v5 TrendOscillators & momentum
Updated 12 days ago · None stated GitHub repository of OctaStack SuperTrend + ADX

This indicator calculates a multi-timeframe MACD line alongside signal lines and volatility bands in a separate chart pane. It offers nine customizable moving average types, including SMA, EMA, DEMA, TEMA, Hull MA, Volume Weighted MA, and Least Squares MA. Use

Indicator v5 Oscillators & momentumMoving averages
Updated 4 weeks ago · None stated GitHub repository of MACD Bands - Multi Timeframe [TradeMaster Lite]

This strategy combines fractal-based supply and demand order blocks with Awesome Oscillator divergence detection. It generates long signals when price interacts with a demand zone alongside a confirmed bullish divergence, and short signals at supply zones with

Strategy v5 SMC / ICT / price actionOscillators & momentum
Updated 5 weeks ago · None stated GitHub repository of Combined Strategy - Supply/Demand + AO Divergence
3 stars

This strategy implements a daily Bitcoin trend-following system combining exponential moving averages (EMA 25, 52, and 144) with daily and 4-hour MACD indicators. It triggers long and short positions based on EMA alignments, zero-line momentum segments, and hi

Strategy v5 TrendOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of BTC 1D MACD 回测对比

TradingFlow: Stoch X

by realanthonyc
3 stars

TradingFlow: Stoch X is a Stochastic oscillator indicator plotted in a separate pane. It calculates standard percent K and percent D lines along with secondary crossover lines to generate trade signals outside overbought and oversold bands. The indicator autom

Indicator v6 Oscillators & momentumDivergence
Updated 2 months ago · MPL-2.0 GitHub repository of TradingFlow: Stoch X

AI Bot - Manual Alerts

by thanhcong1211
3 stars

AI Bot - Manual Alerts is an overlay indicator that scores buy and sell conditions from optional MACD, EMA, RSI, and break-of-structure checks. It treats the share of enabled conditions that fire as a confidence value and sends a JSON buy or sell alert once pe

Indicator v5 Oscillators & momentumMoving averages Repaints
Updated 3 months ago · None stated GitHub repository of AI Bot - Manual Alerts

Cyber HUD XAU

by panzmoravylab
3 stars

Cyber HUD XAU is an overlay indicator designed for XAUUSD that combines trend, momentum, and volatility filters. It calculates fast and slow ATR ratios alongside local price ranges to detect consolidation and chop filter states. The script evaluates candle bod

Indicator v6 Volatility & bandsOscillators & momentum
Updated 4 months ago · None stated GitHub repository of Cyber HUD XAU
3 stars

The Buy/Sell Position Strategy combines a long-term Exponential Moving Average (EMA) with a short-term Relative Strength Index (RSI) to capture pullbacks in an uptrend. It enters a long position on the price chart when the price is above the EMA filter and the

Strategy v5 TrendOscillators & momentum
Updated 4 months ago · None stated GitHub repository of Buy/Sell Position Strategy

MTF Confluence Dashboard

by WiseManAlgo
3 stars

This indicator calculates a multi-timeframe trend and momentum score across five configurable timeframes for up to three symbols. It evaluates price relative to a fast EMA along with RSI momentum, weighting each timeframe to generate a normalized confluence sc

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

This indicator measures the percentage change of the close over a configurable lookback and compares it with a breakout threshold. It marks upward and downward momentum regimes with a faint background tint on the price chart, plots a translucent close line, an

Indicator v5 Oscillators & momentumBreakout
Updated 6 months ago · None stated GitHub repository of Polymarket Overlay (trader-ai)

DIY Entry Signals

by benso87
3 stars

This indicator plots optional moving averages on the price chart and generates entry signals based on custom conditions from multiple technical indicators. Users select which indicators contribute to long or short signals, choose confirmation of candles, and c

Indicator v5 Oscillators & momentumMoving averages
Updated 6 months ago · MPL-2.0 GitHub repository of DIY Entry Signals

CryptoSwarmStrategy

by aegntic
3 stars

CryptoSwarmStrategy is a chart overlay strategy that enters long when a fast EMA crosses above a slow EMA, RSI is below the oversold level, and volume exceeds its 20-bar average. It enters short on the opposite EMA cross with RSI above overbought and the same

Strategy v5 Moving averagesOscillators & momentum
Updated 6 months ago · MIT GitHub repository of CryptoSwarmStrategy

GainzAlgo EA

by saadkhan371
3 stars

GainzAlgo EA is a trend-following strategy designed for scalping and intraday trading, optimized for gold and liquid assets. It establishes trend direction using a three-EMA alignment alongside RSI momentum filters and an optional higher-timeframe trend confir

Strategy v5 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of GainzAlgo EA

RitstaR-Algo

by ritstar
3 stars

This overlay indicator scores each confirmed bar from zero to six using fast, slow, and trend EMAs, higher-timeframe bias, RSI, MACD, ATR, and volume. It plots buy and sell labels when the score meets the minimum entry threshold and exit labels when the opposi

Indicator v5 TrendOscillators & momentum
Updated 8 months ago · None stated GitHub repository of RitstaR-Algo

JINADA Down

by cathxrsys
3 stars

JINADA Down is a multi-oscillator visualizer rendered in a separate chart pane. It constructs an oscillator map using Momentum, Commodity Channel Index, Stochastic, and RSI metrics. The indicator calculates and identifies standard and hidden bullish and bearis

Indicator v6 Oscillators & momentumDivergence
Updated 9 months ago · GPL-3.0 GitHub repository of JINADA Down
3 stars

%R Trend Exhaustion is a momentum and trend exhaustion indicator based on dual-period Williams %R calculations. It combines a standard fast %R with a slow-period %R to identify extended trends and subsequent exhaustion breaks around overbought and oversold thr

Indicator v6 Oscillators & momentumTrend Repaints
Updated 12 months ago · None stated GitHub repository of %R Trend Exhaustion [upslidedown]
3 stars

This indicator plots a fast and a slow exponential moving average on the price chart and marks buy and sell signals for Bitcoin scalping. A buy appears when the fast EMA crosses above the slow EMA, RSI is above its buy threshold, the MACD line is above its sig

Indicator v5 TrendOscillators & momentum
Updated 1 year ago · MIT GitHub repository of BTC 1–5 min Scalping Signals
3 stars

This strategy plots RSI and Bollinger Bands on the price chart. It calculates the 14-period RSI and 4-period RSI to detect overbought and oversold conditions. The strategy enters short positions when the RSI crosses above 70 and long positions when it falls be

Strategy v4 Oscillators & momentumSupport & resistance
Updated 1 year ago · MIT GitHub repository of RSI Overbought Oversold

Golden Strategy

by AliAhmadi-Software
3 stars

The Golden Strategy is a Pine Script v6 strategy that overlays EMA and SMA on the price chart to detect crossovers for trend direction. It adds MACD for momentum confirmation and RSI to identify overbought and oversold conditions. Volume average filters out lo

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Golden Strategy

This indicator plots a MACD-style oscillator in a separate pane. It subtracts a slow moving average from a fast moving average of the chosen source, then smooths that difference into a signal line. SMA or EMA can be selected for both the oscillator and the sig

Indicator v6 Oscillators & momentumMoving averages
Updated 1 year ago · MPL-2.0 GitHub repository of Relative Moving Average Convergence Divergence (RMAC)

SG Market Cipher B

by jeffAquinn
3 stars

SG Market Cipher B is an oscillator indicator plotted in a separate pane that combines WaveTrend and RSI calculations to identify momentum and potential trend reversals. It generates visual signal dots (buy, sell, gold, and divergence dots) based on overbought

Indicator v4 Oscillators & momentumDivergence
Updated 2 years ago · None stated GitHub repository of SG Market Cipher B

This overlay indicator draws MarketSmith-style price bars and several moving averages on the chart. Bar color follows the current close versus the open, or versus the previous close when that option is enabled. Four daily averages and four weekly averages can

Indicator v5 Moving averagesOscillators & momentum
Updated 2 years ago · None stated GitHub repository of MarketSmith Indicator Indian Market

3 RSI DWM

by kartikayakul01
3 stars

3 RSI DWM plots a chart-timeframe RSI and up to three additional RSI series requested from user-selected timeframes, defaulting to weekly, monthly, and 60 minutes. Each series has its own length and source, and boolean inputs show or hide the extra series. It

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

This indicator plots a multi-symbol dashboard on the price chart to monitor up to five custom ticker symbols across three timeframes. It calculates the Relative Strength Index (RSI), Stochastic RSI %K, and %D values alongside the current price. Traders can mod

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Multi Timeframe Stochastic RSI Screener
3 stars

This strategy calculates 50-period and 200-period exponential moving averages alongside a standard Moving Average Convergence Divergence (MACD) oscillator. It plots the moving averages and the MACD histogram directly on the price chart. The strategy opens a lo

Strategy v5 Oscillators & momentumMoving averages
Updated 4 years ago · None stated GitHub repository of 5min Scalping EMA50, EMA200, MACD

Currency Strength Chart

by itmakesyousick
3 stars

This indicator plots relative strength lines for major currencies and optional metals and oil in a separate pane. It builds each series from a chosen source, either raw price or RSI or stochastics, then applies a selected moving-average smoother. Resolution ca

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

MomGulfing

by rasimandiran
3 stars

MomGulfing is a momentum strategy that identifies trade setups using multi-bar engulfing candlestick patterns paired with volume confirmation. It triggers long or short entries when price breaks key candle bounds across one to three bars while volume expands.

Strategy v5 Candlestick patternsOscillators & momentum
Updated 4 years ago · MIT GitHub repository of MomGulfing

Icarus

by niloysaha
3 stars

Icarus is an overlay indicator that projects momentum and level indicators directly onto the price chart. It calculates higher-timeframe equivalents for moving averages, computes Supertrend, and constructs price-equivalent RSI upper and lower bands based on La

Indicator v4 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Icarus

BB RSI Strategy

by infinityhao
3 stars

BB RSI Strategy combines Bollinger Bands, RSI, and multiple simple moving averages directly on the main price chart. It enters long positions when price drops below the lower Bollinger Band while RSI is below a set limit, and enters short positions when price

Strategy v4 Volatility & bandsOscillators & momentum Repaints
Updated 5 years ago · None stated GitHub repository of BB RSI 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