Pine Library · 3,035 open-source scripts

Free Oscillator and Momentum Pine Scripts (page 59)

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

KST Oscillator

by mihakralj
99 stars

This indicator plots the Know Sure Thing oscillator in a separate pane. It computes four rates of change on the selected source, smooths each with a simple moving average, and combines them with weights of one through four. A further simple moving average form

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of KST Oscillator

Williams Percent Range

by TWODS-CAPITAL
37 stars

Calculates the classic Williams %R momentum oscillator and displays it in a separate indicator pane. It measures the relationship between the current source price and the highest high and lowest low over a user-defined lookback period. The script plots static

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Williams Percent Range

Mrhyh21 Buy Sell

by g-moe
3 stars

Mrhyh21 Buy Sell combines Parabolic SAR trend tracking with a 14-period RSI filter to trigger entry signals. It plots buy, strong buy, sell, and strong sell labels directly on the price chart when the Parabolic SAR direction aligns with specified RSI threshold

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Mrhyh21 Buy Sell
1 stars

An overlay indicator that plots a Hull moving average, fast and slow EMAs and a Supertrend, then prints buy or sell labels when all agree. A buy needs price above the Hull average, the fast EMA above the slow one, a bullish Supertrend, RSI above its level and

Indicator v5 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Ultimate Buy/Sell Signal Pro
106 stars

This strategy calculates weighted composite scores by evaluating conditions from multiple technical indicators, including EMAs, Supertrend, Parabolic SAR, HMA, RSI, MACD, WaveTrend, Stochastic, Bollinger Bands, and ATR. It plots signals directly on the price c

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Accurate BUY & SELL 5 mins TF by RR

Woodies CCI

by TWODS-CAPITAL
37 stars

Woodies CCI is a momentum oscillator indicator that calculates two versions of the Commodity Channel Index: a Turbo version and a standard 14-period version. It plots the CCI Turbo as a green line, the CCI 14 as a red line, and a histogram that changes color t

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Woodies CCI
1 stars

A momentum reversal strategy that uses the WaveTrend oscillator. A long is considered when the fast line crosses above its signal line from below the oversold level, and a short on a cross down from above the overbought level. A custom free energy and fractal

Strategy v6 Oscillators & momentumMean reversion
Updated 2 months ago · None stated GitHub repository of TnSovereign WaveTrend

Laguerre RSI (LRSI)

by mihakralj
99 stars

This indicator plots Laguerre RSI in a separate pane. It passes close through four cascaded Laguerre filter stages and forms a ratio of upward stage differences to total stage differences, producing a dimensionless value from 0 to 1. When all stages match, the

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Laguerre RSI (LRSI)

TnSovereignAliceV6

by raybird
1 stars

TnSovereignAliceV6 evaluates price action using a five-part methodology comprising fractal efficiency, RSI, Bollinger Bands, proxy institutional flow, and MACD histogram momentum. Entries trigger when a user-defined minimum number of consensus conditions align

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of TnSovereignAliceV6
106 stars

This strategy enters long on an outside bar when the candle is bullish, the Klinger Volume Oscillator is positive, and price is above a Hull moving average. It enters short on an inside bar when the candle is bearish, the oscillator is negative, and price is b

Strategy v4 Oscillators & momentumMoving averages Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Advanced OutSide Forex strategy
1 stars

TnSovereignEntropyCausalityV6 evaluates directional information flow between volume and price using symbolic encoding and an approximated transfer entropy metric. It calculates whether volume precedes price moves across a selectable lookback window while filte

Strategy v6 VolumeTrend
Updated 2 months ago · None stated GitHub repository of TnSovereignEntropyCausalityV6

ADX + BB %B + AO + EMA

by hasnocool
106 stars

This strategy plots multiple exponential moving averages and a linear regression squeeze channel directly on the price chart. It executes 100-unit long and short trades by combining four EMA trend alignments, Bollinger Bands %B extremes, Awesome Oscillator mom

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of ADX + BB %B + AO + EMA
1 stars

This strategy is a validation probe that forces a 500-bar history buffer. It calculates a long simple moving average of close, an RSI of close shifted by a configurable offset, and a lagged close. Those first two series are plotted but do not gate trades. It e

Strategy v6 Moving averagesOscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe kanuck-probe-03-max-bars-back-500

ADX + RSI Strat

by hasnocool
106 stars

This strategy combines a 7-period RSI with an ADX filter to trade market regimes on the price chart. When the ADX indicates ranging conditions below a set threshold, it triggers entries on RSI overbought or oversold extremes. By default, the entry logic is inv

Strategy v4 Oscillators & momentumTrend
Updated 2 years ago · GPL-3.0 GitHub repository of ADX + RSI Strat

ADX Strategy

by hasnocool
106 stars

An ADX-based trend-following strategy that enters long positions when the positive directional indicator (DI+) crosses above the Average Directional Index (ADX) while ADX remains below a preset threshold and a fast EMA is above a slow EMA. It allows adding to

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of ADX Strategy

Plot RSI and bar_index

by be-thomas
65 stars

This indicator calculates the relative strength index of the closing price with a fixed length of twenty and plots that series in black. It also plots the bar index as a second series. Both plots are drawn in a separate pane. There are no user inputs, so the R

Indicator v4 Oscillators & momentum
Updated 5 days ago · GPL-3.0 GitHub repository of Plot RSI and bar_index
2 stars

This TradingView Pine Script indicator plots the Fractal Dimension Index (FDI) calculated from multiple length parameters for slow fast and ultra slow variants. It optionally displays RSI and BBWP indicators with customizable sources and baselines. Horizontal

Indicator v5 Oscillators & momentumVolatility & bands
Updated 8 months ago · None stated GitHub repository of Musashi Fractal Dimension v2

ADX | DMI Trend

by hasnocool
106 stars

This price-chart strategy treats a rising ADX above a chosen key level as a trend and uses plus and minus DI to choose direction. It enters long when plus DI leads and short when minus DI leads, if short trades are allowed. Volume and an EMA or SMA can block e

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of ADX | DMI Trend

Plot RSI and bar_index

by be-thomas
65 stars

This indicator calculates a 20-period relative strength index of the close and plots that series in a separate pane. It also plots the current bar index as a character marker at the top of the same pane. The RSI length is fixed and no inputs are exposed. The s

Indicator v4 Oscillators & momentum
Updated 5 days ago · GPL-3.0 GitHub repository of Plot RSI and bar_index
1 stars

This indicator ranks swing-pivot liquidity pools on the price chart and marks the highest-scoring pool as the current magnet. It clusters equal highs and lows, then scores each pool from strength, proximity, age decay, and momentum bias. A higher-timeframe EMA

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of TnSovereignLiquidityMagnetV6
106 stars

This strategy captures strong bullish momentum by combining a 200-period SMA baseline, a custom Bollinger Band, the True Strength Index (TSI) smoothed with WMAs, and the ADX trend strength indicator. It initiates long positions when price is above the 200 SMA,

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of ADX_TSI_Bol Band Trend Chaser

This indicator computes the cumulative distribution function (CDF) of a log-normal distribution applied to a min-max normalized price series. It normalizes the source series within a rolling lookback window and calculates the CDF using an Abramowitz and Stegun

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Log-Normal Distribution CDF (LOGNORMDIST)

MTF CCI & SAR

by g-moe
3 stars

This multi-timeframe indicator calculates the Commodity Channel Index and Parabolic SAR across four user-defined timeframes, defaulting to 1, 30, 60, and 240 minutes. It generates signals when CCI exceeds an entry threshold across all four periods while price

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of MTF CCI & SAR
2 stars

This indicator projects future pivot levels on the main chart by combining zigzag price swings with a choice of underlying momentum oscillators, such as RSI, CCI, CMO, COG, MFI, or ROC. It draws projected pivot points, pivot lines, sentiment background fills,

Indicator v5 Support & resistanceTrend Repaints
Updated 8 months ago · None stated GitHub repository of Next Pivot Projection [Trendoscope]

MTF Cipher Dots

by g-moe
3 stars

MTF Cipher Dots plots colored dots on the price chart based on WaveTrend oscillator calculations across multiple timeframes. It generates bull and bear signals by comparing WaveTrend values to thresholds, with dots appearing when conditions are met above or be

Indicator v5 Oscillators & momentumVolatility & bands
Updated 5 months ago · None stated GitHub repository of MTF Cipher Dots

MTF EFI

by g-moe
3 stars

This indicator calculates Elder's Force Index (EFI) across multiple configurable timeframes and displays resulting signals directly on the price chart. Users can select the smoothing length, choose the moving average type (EMA, SMA, VWMA, RMA, or HMA), and tog

Indicator v5 VolumeOscillators & momentum Repaints
Updated 5 months ago · None stated GitHub repository of MTF EFI
2 stars

Oscillator Workbench — Chart plots a configurable blend of two built-in oscillators and an optional external oscillator on the price chart. It draws a weighted oscillator line and a reference moving average, coloring both by successive up or down states. Users

Indicator v5 Oscillators & momentumMoving averages
Updated 8 months ago · None stated GitHub repository of Oscillator Workbench — Chart [LucF]

MTF EFI Strategy

by g-moe
3 stars

This strategy uses Elder Force Index on the price chart, combining price change with volume and a chosen moving-average smoother. Separate buy and sell thresholds can be enabled on up to seven timeframes, with 15, 30, 60 and 120 minutes on by default. Higher-t

Strategy v5 Oscillators & momentumVolume Repaints
Updated 5 months ago · None stated GitHub repository of MTF EFI Strategy

Percent Rank

by regalouisei
2 stars

The Percent Rank indicator plots the percent rank of closing prices for ten different cryptocurrency symbols in columns within a separate pane. It calculates the rank relative to previous values over a user-defined length period, defaulting to 60 bars. Columns

Indicator v5 Oscillators & momentumSupport & resistance
Updated 8 months ago · None stated GitHub repository of Percent Rank

All in One Strategy

by hasnocool
106 stars

This strategy overlays multiple switchable trading models onto the main price chart, allowing the user to select between standard RSI crossing, Connors RSI, MACD, EMA, or Stochastic signals. Entries execute in long, short, or bidirectional modes when the selec

Strategy v4 Oscillators & momentumMoving averages Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of All in One Strategy

MTF EFI Test

by g-moe
3 stars

This overlay indicator calculates a smoothed Elder Force Index and compares it across up to seven user-selected timeframes. Each timeframe can be switched on or off and given separate buy and sell threshold values. The force index length and the smoothing meth

Indicator v5 Oscillators & momentumVolume Repaints
Updated 5 months ago · None stated GitHub repository of MTF EFI Test
1 stars

TnSovereignSignalForgeV20 is a price-chart strategy that combines seven directional votes from RSI, EMA, MACD, volume, VWAP, Bollinger Bands, and a volume oscillator. A long condition requires the vote total to meet a minimum agreement setting. A thermodynamic

Strategy v6 Oscillators & momentumMoving averages
Updated 2 months ago · None stated GitHub repository of TnSovereignSignalForgeV20
106 stars

This multi-indicator strategy provides selectable trading engines based on crossing RSI, Connors RSI, MACD, EMA crossovers, or Stochastic oscillators. It enters long, short, or bidirectional positions within a specified date window when the selected indicator

Strategy v4 Oscillators & momentumMoving averages Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of All in One Strategy no RSI Label
1 stars

A momentum oscillator in a separate pane that compares upward and downward candle force over a lookback of 21 bars, scaled from minus 100 to plus 100, then smooths it with a short average and adds a signal line and histogram. Overbought and oversold levels def

Indicator v5 Oscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Spiral Trend Exhaustion (STE) Pro
1 stars

This strategy plots on the price chart and combines seven scored models into a weighted composite. It scores RSI extremes, volume spikes against a 20-bar average, price versus VWAP, EMA 9 and 21 alignment, MACD direction, Bollinger band location, and an estima

Strategy v6 Oscillators & momentumMoving averages
Updated 2 months ago · None stated GitHub repository of TnSovereignSignalForgeV6
65 stars

This indicator calculates a 20-period RSI and watches for crosses of the 50 level. It can call alert when RSI crosses above 50 for longs or below 50 for shorts, but only when the matching direction input is enabled. A setting named Allow Repainting, off by def

Indicator v4 Oscillators & momentum
Updated 5 days ago · GPL-3.0 GitHub repository of Selective alert() calls

RedK Momentum Bars

by regalouisei
2 stars

Calculates and plots momentum bars in a separate pane using three moving averages: a fast MA, a slow MA with a delay setting, and a trend filter MA. Loosely inspired by the Elder Impulse system, it measures momentum relative to a zero filter line. Users can cu

Indicator v5 Oscillators & momentumMoving averages
Updated 8 months ago · None stated GitHub repository of RedK Momentum Bars
1 stars

This strategy combines a three-tier EMA stack, RSI momentum filtering, and channel breakout rules to generate trend-following entries on the price chart. It detects swing highs and swing lows to draw connecting trend lines across pivot points. Entries trigger

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe Trendmaster Integration
3 stars

This indicator calculates a scaled Chande Momentum Oscillator based on the hlc3 price source and displays it in a separate pane. It computes positive and negative price changes over a user-defined length, scales the resulting percentage with a multiplier, and

Indicator v5 Oscillators & momentum
Updated 5 months ago · None stated GitHub repository of My Matrix Momentum

Super Mirror

by morindok
1 stars

Super Mirror indicator plots multiple symmetric and reflected price lines directly on the price chart. It computes a moving average whose length varies based on the time interval between start and end times, then creates mirrored versions at two user-defined p

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

This strategy calculates the Aroon Oscillator along with the Relative Strength Index (RSI) to generate long trading signals. It opens an initial long position when the Aroon Oscillator crosses above the zero line, and pyramids into the position if price dips b

Strategy v4 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Aroon Oscillator Strategy

My QQE

by g-moe
3 stars

Calculates dual Quantitative Qualitative Estimation (QQE) oscillators paired with Bollinger Bands in a separate pane. It computes smoothed Relative Strength Index (RSI) values and tracks dynamic volatility bands based on Wilder-smoothed ATR of the RSI. A set o

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

Calculates the classic WaveTrend oscillator using exponential moving averages and absolute deviations of typical price. Entries trigger on momentum reversals across timeframe-specific overbought and oversold thresholds, filtered through configurable quality ga

Strategy v6 Oscillators & momentumMean reversion
Updated 2 months ago · None stated GitHub repository of TnSovereignWaveTrendV4

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