OPEN-SOURCE SCRIPT

MOVING MODE

Moving Mode indicator calculates and displays on the chart the mode (the most frequent value) of the closing prices of the last N bars (configurable). Unlike traditional moving averages, which can be distorted by extreme values, Moving Mode provides a more accurate representation of price behavior by reflecting the most common values.

This approach is based on the concept of "Moda Móvil" proposed by Pedro L. Asensio, who highlights that traditional moving averages can be misleading due to their sensitivity to extremes. The mode, on the other hand, offers a more realistic and market-adjusted alternative, unaffected by outliers.

I, Pedro L. Asensio, created the Moving Mode and Moda Móvil indicators in 2023

These indicators are free to use ;)
Candlestick analysisChart patternsconcept

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