OPEN-SOURCE SCRIPT

Long Short Momentum

This indicator is designed to visualize short-term and long-term momentum trends.The indicator calculates two momentum lines based on customizable lengths: a short momentum (Short Momentum) over a smaller period and a long momentum (Long Momentum) over a longer period. These lines are plotted relative to the chosen price source, typically the closing price.

The histogram, colored dynamically based on momentum direction, gives visual cues:
  • Green: Both short and long momentum are positive, indicating an upward trend.
  • Red: Both are negative, indicating a downward trend.
  • Gray: Mixed momentum, suggesting potential trend indecision.
Momentum Indicator (MOM)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer