Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 15)

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

2 stars

This strategy calculates MACD, ADX trend strength, ATR, and a rolling VWAP resetting at fixed bar intervals. It plots the VWAP line, stop loss levels, and profit targets directly on the price chart. Long positions enter when MACD crosses above its signal line

Strategy v5 TrendOscillators & momentum Repaints
Updated 8 months ago · MIT GitHub repository of MACD & VWAP Strategy with ATR SL/Targets

QQE + AK Trend + EFI

by realanthonyc
2 stars

This Pine Script indicator combines QQE, AK Trend, and EFI indicators. It calculates the QQE using RSI with smoothing and displays it as a histogram in a separate pane. The AK Trend line is formed by two exponential moving averages whose scale adjusts accordin

Indicator v6 Oscillators & momentumTrend
Updated 11 months ago · MPL-2.0 GitHub repository of QQE + AK Trend + EFI

Mean Reversion

by nxtaiapp
2 stars

This strategy executes mean-reversion trades using Bollinger Bands combined with a fast RSI oscillator and MACD confirmation. It enters long or short positions when price reaches band extremes during oversold or overbought RSI levels, with optional MACD trend

Strategy v5 Mean reversionScalping
Updated 11 months ago · MIT GitHub repository of Mean Reversion
2 stars

This strategy is written for Bitcoin and draws on the price chart. It combines moving averages, an SSL channel, ADX, RSI, stochastic, and a volume oscillator with high-volume thresholds to generate buy and sell signals. Users can limit testing to a date range

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of TLC_STRATEGY_EMARSIADX for BTC
2 stars

This strategy overlays Bollinger Bands and Keltner Channels on the price chart alongside an internal KDJ oscillator. It identifies a volatility squeeze when Bollinger Bands contract inside the Keltner Channels. Long entries trigger after price closes below the

Strategy v5 Volatility & bandsOscillators & momentum
Updated 1 year ago · None stated GitHub repository of BB-Keltner Squeeze with KDJ strategy

QQE MOD 副图指标

by iceberg211
2 stars

This indicator calculates a dual Quantitative Qualitative Estimation (QQE) momentum oscillator alongside Bollinger Bands in a separate pane. It computes smoothed Relative Strength Index values paired with Wilder-style ATR trailing bands across two independent

Indicator v5 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of QQE MOD 副图指标
2 stars

Multi-Indicator Trading System plots 50-period and 200-period exponential moving averages alongside buy and sell signals directly on the price chart. Signals trigger when a short-timeframe EMA crossover aligns with higher timeframe trend filters from 1-hour or

Indicator v5 TrendMoving averages Repaints
Updated 1 year ago · MIT GitHub repository of Multi-Indicator Trading System
2 stars

Calculates higher timeframe Exponential Moving Averages, Average True Range, and optional RSI momentum filters to determine market regimes. Enters long positions during bullish regimes and allows scaling in through pyramiding as price advances by a user-define

Strategy v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Bitcoin Regime Pyramid Strategy
2 stars

Relarive Strength Index calculates the RSI oscillator using a configurable source such as close prices, a period length, and an offset value. It plots the RSI line directly on the price chart along with dotted horizontal lines marking overbought at 80 and over

Indicator v5 Oscillators & momentum
Updated 2 years ago · Apache-2.0 GitHub repository of Relarive Strength Index

The Quantitative Qualitative Estimation indicator calculates a smoothed Relative Strength Index combined with a dynamic, volatility-based trailing line. It plots a fast smoothed RSI line alongside a slow trailing line in a separate pane, with a midline set at

Indicator v4 Oscillators & momentumVolatility & bands
Updated 2 years ago · None stated GitHub repository of Quantitative Qualitative Estimation (QQE)
2 stars

This indicator plots a momentum-based ZigZag on the price chart from a QQE calculation driven by a multi-timeframe RSI. It marks bullish and bearish ZigZag segments, optional divergence and convergence between price and that RSI, and an optional Supertrend lin

Indicator v5 Oscillators & momentumDivergence
Updated 3 years ago · None stated GitHub repository of Modified Momentum QQE-ZigZag
2 stars

[CBB] MTF Penta RSI Strategy is an overlay strategy that tracks momentum across multiple time horizons using five distinct Relative Strength Index (RSI) calculations: a smoothed 4-period RSI, alongside 14, 30, 70, and 120-period RSIs. It evaluates whether thes

Strategy v5 Oscillators & momentumTrend
Updated 3 years ago · None stated GitHub repository of [CBB] MTF Penta RSI Strategy

Sassiz Ichimoku

by sassiz-root
2 stars

This overlay strategy plots a full Ichimoku set on the price chart: Tenkan, Kijun, displaced Chikou, and Senkou Spans A and B with a colored cloud. It marks a long when a confirmed Tenkan cross above Kijun occurs with price and Chikou above the lines and cloud

Strategy v5 TrendOscillators & momentum
Updated 3 years ago · MIT GitHub repository of Sassiz Ichimoku
2 stars

This strategy implements an automated dollar-cost averaging (DCA) trading system inspired by Market Cipher indicators. It calculates WaveTrend oscillator crossovers and a volume-weighted Money Flow index to trigger initial base orders, supporting both long and

Strategy v4 Oscillators & momentumMean reversion
Updated 5 years ago · None stated GitHub repository of MC Strategy - Aggressive

Oversold

by kat3samsin
2 stars

The oversold strategy identifies oversold conditions using the relative strength index with a 14 period. It applies an arithmetic linear moving average with a 20 period for trend filtering and requires the price to stay within 15 percent of this average. Stoch

Strategy v4 Mean reversionOscillators & momentum
Updated 5 years ago · MIT GitHub repository of Oversold

Strategy RSI

by Jakub-Pinkowski
1 stars

Calculates the Relative Strength Index (RSI) to generate entry signals directly on the price chart. The strategy opens a long position when the RSI crosses above the oversold level and a short position when it crosses below the overbought level. Users can cust

Strategy v6 Oscillators & momentum
Updated 7 days ago · None stated GitHub repository of Strategy RSI

Aperture COG LinReg

by pineforge-4pass
1 stars

A long-only strategy that combines the Center of Gravity oscillator with a linear regression path. It enters long when the oscillator crosses above its EMA signal while the regression line is rising and price sits above it. It exits when the oscillator crosses

Strategy v6 Oscillators & momentumTrend
Updated 7 days ago · Apache-2.0 GitHub repository of Aperture COG LinReg

A price-chart indicator that extends a futures screener with a buy confirmation engine. A focus panel scores one contract across five timeframes, a board scans a list of futures markets on one timeframe, and a checklist panel shows which confirmations pass on

Indicator v6 Screeners & dashboardsTrend
Updated 8 days ago · Custom licence GitHub repository of Phantom Flow Futures Screener (Buy Checklist)

This indicator calculates and plots a stochastic oscillator in a separate pane with exposed fast %K, slow %K, and slow %D lines. It allows users to customize the smoothing method using SMA, EMA, WMA, or HMA instead of forcing standard SMA. Key input settings i

Indicator v6 Oscillators & momentum Repaints
Updated 2 weeks ago · MPL-2.0 GitHub repository of Taught to Trade - Configurable Stochastics
1 stars

This overlay strategy combines a fast and slow EMA, MACD, and RSI smoothed by an EMA. It opens a long when any one of those three crosses bullish while the other two stay aligned upward, and it opens a short on the matching bearish combination. Trades are limi

Strategy v5 TrendOscillators & momentum
Updated 3 weeks ago · None stated GitHub repository of EMA + MACD + RSI Strategy
1 stars

A gold-oriented overlay that prints buy and sell signals on closed bars. It combines an EMA trend stack, an RSI band, MACD and stochastic RSI triggers, an optional volume filter and a weighted confidence score that must pass a minimum. Stop loss and two take-p

Indicator v5 Oscillators & momentumTrend
Updated 3 weeks ago · None stated GitHub repository of neXQan XAUUSD Gold Indicator

Kernal Cipher 2

by kdricha0602
1 stars

Kernal Cipher 2 is a lower-pane signal panel. It scores trend with fast, slow, and long EMAs, slope, Supertrend, and ADX, then blends WaveTrend, StochRSI, pivot divergence, volume, relative strength versus equity benchmarks, and beta. Green and red diamonds ma

Indicator v6 TrendOscillators & momentum
Updated 5 weeks ago · MIT GitHub repository of Kernal Cipher 2
1 stars

An overlay that marks long and short signals by combining a Money Flow Index with k-means derived overbought and oversold levels, and an Andean oscillator crossing its signal line, both within a confirmation window. Optional trend and ATR percentage filters ca

Indicator v5 Oscillators & momentumAI / machine learning
Updated 7 weeks ago · None stated GitHub repository of AI MFI + Andean ETH 15min

MACD

by DEVfancybear
1 stars

This indicator calculates and plots the standard Moving Average Convergence Divergence oscillator in a separate chart pane. It computes a fast exponential moving average and a slow EMA, derives the MACD line from their difference, and calculates a smoothed sig

Indicator v6 Oscillators & momentumMoving averages
Updated 7 weeks ago · MIT GitHub repository of MACD

Deviation Momentum For Loop

by vedkanani123
1 stars

A separate-pane momentum indicator that measures how far price sits from a selectable moving average and sums that deviation over a for-loop range of lookbacks, from a start to an end value. The result is compared with a long threshold and a short threshold to

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of Deviation Momentum For Loop

Ultra Combo v57

by nishpa800
1 stars

Pine v6 overlay indicator that marks combination signals on the price chart. Groups include PBJ or PB with F2, E3 and cluster patterns, sequential combos, back-to-back day combos, Heavy Weapon with any bullish or bearish signal, GZ1 and high-volume mega combos

Indicator v6 VolumeOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Ultra Combo v57
1 stars

TN Swarm Modular Executor combines four distinct sub-strategy modules—Momentum (CCI), Mean Reversion (RSI), Breakout (Bollinger Bands), and Volatility (ATR channels)—into a multi-agent consensus engine. It calculates individual member signals and aggregates th

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of TN Swarm Modular Executor
1 stars

A chart-overlay indicator meant for 4-hour charts that combines several filters: a Heikin-Ashi MACD read from the daily timeframe without future data, an approximate volume profile with value area, a swing-anchored VWAP, a squeeze momentum reading built from B

Indicator v6 VolumeOscillators & momentum
Updated 2 months ago · None stated GitHub repository of POC VA MACD HA v8 4H Daily

APM v7 BTC/USD ALL

by rcaldwell67
1 stars

APM v7 BTC/USD ALL is an indicator that plots three exponential moving averages on the price chart for BTC-USD. It calculates EMA Fast, EMA Mid, and EMA Slow using user-defined lengths. Additional momentum oscillators include RSI, MACD, Stochastic, and CCI. Th

Indicator v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of APM v7 BTC/USD ALL

Grimmchu

by GreyssonEnterprises
1 stars

Grimmchu is a Pine Script strategy designed to trade within specified session time windows and days of the week. It combines session timing constraints with momentum filters based on a configurable relative strength index. Users can customize the active tradin

Strategy v5 Sessions & timeOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Grimmchu

A/D Context v20.10

by VVASILEVSS
1 stars

A Pine v5 indicator in a separate pane that tracks accumulation and distribution flow, using either Williams or Chaikin A/D, with a smoothing EMA, Chaikin Money Flow and ATR. It finds divergences between price pivots and flow pivots, and can show regular, hidd

Indicator v5 DivergenceVolume
Updated 3 months ago · None stated GitHub repository of A/D Context v20.10

RSI Based Strategy

by jaichaturvedi88
1 stars

A long-only mean reversion strategy for an Indian rupee account. It buys when RSI falls to 30 or below and closes the position when RSI reaches 80 or above. Order size is a fixed rupee amount divided by price, and orders are only placed within a hard-coded one

Strategy v6 Oscillators & momentumMean reversion
Updated 3 months ago · None stated GitHub repository of RSI Based Strategy

This strategy calculates multiple technical indicators including EMAs, SuperTrend, ADX, RSI, MACD, Stochastic, and volume MA to generate entry signals for Indonesian stocks. It supports three entry trigger modes: Composite Score, Pullback, and Breakout, with f

Strategy v6 TrendOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Saham: Papan Gerak Strategy By. Akhmfz

RSI

by ForexCodes-hq
1 stars

This Pine Script v6 indicator calculates and plots the standard Relative Strength Index (RSI) oscillator in a separate chart pane. It computes momentum using a configurable input source and length parameter. The indicator plots the resulting RSI value alongsid

Indicator v6 Oscillators & momentum
Updated 3 months ago · MIT GitHub repository of RSI
1 stars

This strategy plots an anchored volume-weighted average price and two standard-deviation bands on the price chart. It buys dips below the inner band when a short RSI is oversold and an optional EMA trend filter agrees, and it can sell rallies above the inner b

Strategy v6 Mean reversionMoving averages
Updated 3 months ago · MIT GitHub repository of VWAP Reversion Bands [QuantForge]
1 stars

A Pine v6 strategy variant for 15-minute Bitcoin perpetual charts that trades RSI momentum breakouts with no pyramiding. Entries need RSI to pass set levels plus a gap, with candle color, EMA 200, ATR range and body-size filters, and an optional pullback re-en

Strategy v6 Oscillators & momentumTrend
Updated 4 months ago · None stated GitHub repository of BTC RSI Momentum v22

Unified Trade Strategy

by ashishgkwd
1 stars

Unified Trade Strategy is the strategy version of a combined signal. It goes long when price breaks above a Nadaraya-Watson envelope band, the fast EMA is above the slow EMA, the trend channel slopes up and RSI is in a bullish rising band; shorts mirror this.

Strategy v6 TrendOscillators & momentum
Updated 4 months ago · None stated GitHub repository of Unified Trade Strategy
1 stars

A strategy version of an ATR pullback scanner. It requires a strong, rising ADX with directional indicators to set the trend direction, and an optional daily SMA 50 and 200 filter. A pullback zone is measured in ATR units from the recent swing. A toggle choose

Strategy v5 TrendCandlestick patterns
Updated 4 months ago · None stated GitHub repository of Trend Scanner Strategy (A/B Test)

FracDiff Z NQ 5m Filter Lab

by qmqvt44stq-del
1 stars

A fractional differencing Z-score oscillator in a separate pane, set up for testing optional entry filters on five-minute Nasdaq futures charts. Signal modes include the base snapback, a volume-exhaustion mode, a conservative mode and an early mode. Filters co

Indicator v6 Mean reversionOscillators & momentum
Updated 4 months ago · None stated GitHub repository of FracDiff Z NQ 5m Filter Lab
1 stars

A separate-pane oscillator based on the centre of gravity calculation with an adjustable length, an optional RMA smoothing, and a trigger line made with an ALMA filter. It also computes a linear regression line, previous high and low levels of the oscillator a

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of Center Of Gravity Oscillator

This strategy trades long only on the price chart. It enters when price pulls back near the EMA20 and closes back above it, while the MACD line and signal stay above zero and the histogram is not falling. A longer trend EMA must sit below price and the EMA20,

Strategy v6 TrendOscillators & momentum
Updated 4 months ago · MIT GitHub repository of Doc01 MACD Zero Pullback EMA20 - Project Adapted

BVortex SP500 4H

by Alberto082544
1 stars

BVortex SP500 4H is a momentum-based trend strategy designed for 4-hour charts. It calculates a scaled Vortex Indicator to detect extreme overbought and oversold zones. Long or short entry signals trigger when exiting these extreme levels with a confirming can

Strategy v6 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of BVortex SP500 4H

EMA + RSI Strategy

by Sandesh30-cloud
1 stars

This trend-following strategy combines two Exponential Moving Averages with the Relative Strength Index to identify long trade setups. It calculates a 50-period fast EMA, a 200-period slow EMA, and a 14-period RSI. A long position is triggered when the fast EM

Strategy v5 TrendOscillators & momentum
Updated 6 months ago · None stated GitHub repository of EMA + RSI Strategy

Fibonacci Pullback Strategy

by Basant1Saini
1 stars

Fibonacci Pullback Strategy is a trend-following system that identifies retracements within established trends. It calculates dynamic Fibonacci levels (38.2%, 50.0%, and 61.8%) based on recent swing highs and lows over a specified lookback period. Trades are f

Strategy v5 Support & resistanceTrend
Updated 8 months ago · None stated GitHub repository of Fibonacci Pullback Strategy

Ensemble ML Predictor

by haydarkadioglu
1 stars

This indicator overlays a weighted ensemble of three models on the price chart. It compares the current bar with historical bars using RSI, volume ratio, price change and range position, then blends that KNN vote with a linear-regression projection and an EMA-

Indicator v5 AI / machine learningOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Ensemble ML Predictor
1 stars

This strategy calculates the RSI indicator to detect mean reversion in AU stocks. It enters long positions when RSI falls below the oversold level with no current position and closes positions when RSI rises above the overbought level. Position size uses a fix

Strategy v5 Mean reversionOscillators & momentum
Updated 8 months ago · None stated GitHub repository of AU RSI Mean Reversion
1 stars

A strategy that trades MACD line and signal line crossovers within a chosen date range and compares three position sizing methods: a fixed dollar risk, a fixed percentage of equity risk, or a fixed quantity. Stop loss and take profit distances are set in ticks

Strategy v6 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of MACD Money Management 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