Skip to content
All library documents

Overlaying Momentum Oscillators on a Logarithmic Regression Channel

Article TradingView scripts

Summary

This overlay combines a logarithmic regression trend line with an oscillator drawn directly across the price chart. It fits a straight regression to log-transformed closing prices over a lookback period, converts the endpoints back to price values, and places upper and lower channel lines at a configurable multiple of closing-price standard deviation. The center line is optional.

The chosen oscillator can be RSI, Stochastic, Stochastic RSI, or Money Flow Index, with a moving-average signal line available. Its values are mapped between configurable lower and upper thresholds onto the channel, so traders can view momentum in relation to the fitted trend and use extreme readings or signal-line turns as context. The document suggests possible uses such as spotting divergence and trend shifts, but provides no testing or performance evidence. The channel and mapped oscillator are visualization tools; their readings depend on the selected periods, thresholds, and scaling choices and do not establish reliable entry signals.

Key ideas

  • The indicator fits a regression to logarithmic closing prices over a selected lookback period.
  • Channel boundaries are formed by offsetting the fitted trend by a multiple of closing-price standard deviation.
  • RSI, Stochastic, Stochastic RSI, or MFI can be mapped onto the channel using configurable thresholds.
  • A moving-average signal line can help visualize oscillator turns within the price trend.
  • Suggested interpretations such as divergence or overbought conditions are not supported by backtest evidence in the document.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.