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).


  • 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


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.
Hilangkan dari Skrip-Skrip Favorit Tambahkan ke Skrip-Skrip Favorit
« Je suis las des cruautés de mes semblables, qui ne sont pas mes pareils.

« Je prendrai l’essor et je m’envolerai vers la mer.

« Je connaîtrai le goût des brises du large. J’entendrai les grands cris de la tempête.


This is above average :) :) :)
+2 Jawab
alexgrover syrinxflunki
@syrinxflunki, Ooo, I wasn't expecting that, amazing. Thx a lot for always leaving a comment :D
i like your brilliant ideas how you filter the price action zones
+1 Jawab
Cool, simple and effective indicator, appreciated alexgrover for shared <3
+1 Jawab
I really like this Alex!
+1 Jawab
Great idea Alex! I'm going to have a play with it now! Thanks again for sharing the high quality ideas and code with great explanations, they really are appreciated.
+1 Jawab
Very cool! You just keep on pushing such interesting ideas - thank you for sharing this!
+1 Jawab
@nilux, Thank you for your comment, it means a lot. Next indicators should be way more impressive :D
+1 Jawab