Indicator · Pine Script v6 · Own pane

Risk-Adjusted Momentum Oscillator

by regalouisei

Risk-Adjusted Momentum Oscillator plots a normalized momentum oscillator in a separate pane, dynamically scaling momentum by ongoing drawdown risk.

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code668
Settings26inputs
LicenceNone stated
Last update8 months ago25 Feb 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Risk-Adjusted Momentum Oscillator calculates momentum via Rate of Change, Price Momentum, or Log Returns, applying Z-score normalization and adaptive smoothing. The script generates entry and exit signals, an optional MACD-style histogram, confidence bands, and predictive regression lines for momentum exhaustion. Users can configure risk lookback periods, threshold sensitivity, leading indicator modes, and an on-screen risk analytics table. As an indicator, it does not execute trades directly.

Details

Published by

regalouisei on GitHub

Type

Indicator, Pine Script v6

Draws

Separate pane below the chart

Category

Oscillators & momentum, Volatility & bands, Screeners & dashboards

Markets

Stocks, Crypto, Forex

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Momentum Calculation Periodint20momentum_length
Momentum AlgorithmstringRate of Changemomentum_type
Risk Assessment Periodint252dd_lookback
Risk Smoothing Factorint5dd_smoothing
Risk Scaling Factorfloat1.0risk_scaling
Signal Line Periodint14signal_length
Z-Score Normalization Periodint40normalization_period
Enable Leading Modebooltrueenable_leading_mode
Acceleration Periodint5acceleration_period
Regression Lengthint10prediction_length
Prediction Forward Barsint3prediction_offset
Exhaustion Thresholdfloat2.0exhaustion_threshold
Show all 26 settings
SettingTypeDefaultVariable
Adaptive Smoothingbooltrueadaptive_smoothing_enabled
Use Adaptive Thresholdsbooltrueuse_dynamic_thresholds
Threshold Sensitivityfloat0.75threshold_multiplier
Static Upper Thresholdfloat0.5static_upper
Static Lower Thresholdfloat-0.5static_lower
Display Entry/Exit Signalsbooltrueshow_signals
Display MACD-Style Histogrambooltrueshow_histogram
Display Confidence Bandsbooltrueshow_confidence_bands
Display Risk Analytics Tablebooltrueshow_risk_table
Dark Mode Optimizationbooltrueuse_dark_mode
Custom Color Schemeboolfalseenable_custom_colors
Bullishcolor#4CAF50custom_bullish
Bearishcolor#FF5252custom_bearish
Neutralcolor#2196F3custom_neutral
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

Test 009 Stat Mining

by ricardosantos79
261 stars

This statistical analysis tool mines historical relationships between RSI values and candle volatility. It calculates a 14-period RSI from the previous bar and normalizes absolute price change using a 14-period Average True Range (ATR). Based on the normalized

Indicator v4 Oscillators & momentumVolatility & bands
Updated 4 years ago · None stated GitHub repository of Test 009 Stat Mining

Market Speedometer

by TradersPost
218 stars

Market Speedometer plots a 0-100 market speed reading in a separate pane. It measures movement by bar-to-bar change, true range, or a short average of recent bars, then ranks that movement against ATR and a percentile lookback. An EMA smooths the reading, and

Indicator v6 Volatility & bandsOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Market Speedometer
41 stars

This indicator transforms standard RSI calculations into logit space, estimating rolling distributions to derive empirical z-scores mapped back to the 0–100 RSI scale. Plotted in a separate pane, it features multi-horizon central lines—fast and structural cent

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 days ago · None stated GitHub repository of Calibrated RSI Position Zones

This indicator calculates the Relative Strength Index (RSI) alongside a simple moving average to generate directional momentum signals in a separate pane. It supports Break Flip and Break Continuous scanning modes for long and short setups. A wide array of opt

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Momentum Setup: RSI Direction Confirmation

The Adaptive Cycle Detector estimates the dominant market cycle from WaveTrend oscillator zero-crossing frequency and applies smoothing to recommend adaptive indicator lengths. Fast markets with frequent crossings receive shorter lengths while slow swing marke

Indicator v6 Oscillators & momentumVolatility & bands
Updated yesterday · MIT GitHub repository of Adaptive Cycle Detector [WavesUnchained]

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers