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.
Skrip open-source

Sejalan dengan semangat TradingView, penulis skrip ini telah mempublikasikannya secara open-source, sehingga para trader dapat memahami dan memverifikasinya. Salut untuk sang penulis! Anda dapat menggunakannya secara gratis, tetapi penggunaan kembali kode ini dalam publikasi diatur oleh Tata Tertib. Anda dapat memfavoritkannya untuk dapat menggunakannya didalam sebuah chart.

Inggin menggunakan skrip ini pada chart?

Become a Patreon and get access to exclusive technical indicators!

You can also check out some of the indicators I made for luxalgo :


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
Beranda Penyaring Saham Penyaring Forex Penyaring Crypto Kalender Ekonomi Tentang Fitur-Fitur Chart Harga Akun Refer seorang teman Tata Tertib Pusat Bantuan Solusi Website & Broker Widget-Widget Solusi Charting Perpustakaan Charting Ringan Blog & Berita Twitter