alexgrover

Percentage Price Over SMA

Return the percentage of closing prices greater than SMA's with periods within a user-selected range. An exponential moving average applied to these results is also displayed (in orange).

Settings

  • Min : Minimum period of the SMA in the range
  • Max : Maximum period of the SMA in the range
  • Smooth : Period of the EMA
  • Src : Input series of the indicator

Usage

The indicator is a normalized oscillator. A value of 100 indicates that 100% of the current closing price is over SMA's with periods ranging from min to max, this indicates a bullish market, while a value of 0 would indicate a bearish market.


In this image the indicator use min = 50 and max = 200, here AMD has been strongly bullish at the start, and ended being strongly bearish at the end, during this bullish period the indicator is over its overbought level, while it is under its oversold level during the bearish period.

In case the market is ranging we can expect the indicator to be around 50%, using the smoothed result might be more useful to detect ranging markets with this indicator.


If the smoothed result is within the overbought/oversold levels, then we can say that the market is either ranging or transitioning from a bullish/bearish market to an opposite one.

Check out the indicators we are making at luxalgo: www.tradingview.com/u/LuxAlgo/
Script de código abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con lo establecido en las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar este script en un gráfico?