Distribution of Index

Distribution of Index

This indicator displays the distribution of values returned by the RSI, Stochastic, Williams%R and ADX indicators.

This indicator only works on v11 onwards.

Select which indicator you want to analyse with the ‘RSIndex’, ‘Stoch’, ‘WilliamsR’ and ‘ADX’ settings. The default is RSI if nothing is selected. If two are selected then it defaults to the last one selected.

‘P’ is the period setting for the index. ‘K’ is the K% setting for the stochastic index. ‘D’ is the average period used in the signal line. The signal line is just a simple moving average of the index value and is not used in the distribution calculations. You can turn this signal line display on or off with the ‘SignalLine’ setting.

You can select a start date to analyse from or set ‘StartDate’ to zero to analyse all of the data.

The distribution chart shows you where the index spends most of its time and where it spends the least amount of time. The chart has a maximum score of 100% which represents the highest scoring distribution value. The displayed value and dot show you where the index currently is on the distribution curve and how it scores compared to the maximum score.

Note: The Williams%R returned values have been changed from -100 to zero and are shown as  zero to 100 for ease of calculations in the code.

As always I advise downloading and importing the ITF file to get full functionality.

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

New! PRC is also now on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Albaran • 120 days ago #

    Hi Vonasi,

    Could you explain what “$perc[a]” is? I tried to apply it but it keeps telling me there’s an error..

    • Nicolas • 120 days ago #

      Code compatible only with version 11, as it is written in bold in the text of this post: This indicator only works on v11 onwards.

  2. Albaran • 120 days ago #

    Ah I had hoped it was a problem unrelated to the version of prorealtime! We’ll keep waiting on the new release then 🙂

Register or


avatar avatar avatar avatar avatar avatar
Related users ' posts
juanj Hi Jan, I did not include swap fees for this strategy as it is primarily a 'concept strategy...
jebus89 heres a pic of 200K bars: https://imgur.com/JNKCJ6u
bibiyanki doesn't work , not start
Madrosat I Have not see a fully functioning automated strategy on your site?? Really have you???
juanj Hi Madrosat, why would it be on my site? I have developed it for my personal use and also to...
Madrosat ok I understood you are using prorealcode to hack the fish
imonix Have been trying this on demo since Monday before deciding whether to go live with it. Using...
kbrooks323 Hello would someone be willing to release a scan code for this? that would be helpful as I s...
Nicolas You can do easily this screener by using the assisted creation tool. It would take you about...
kbrooks323 I just figured it out thanks!
Vinks_o_7 Vonasi you're a beast !!! ;-)))
pableitor Amazing indicator , you are pushing PRT to the limit! But looking at the scatter its not c...
Bard Excellent job Vonasi, thanks very much for updating and improving your previous indicator.
8 months ago
Wolf Compilation by sinusoid concept is very interesting. Thanks
groen200 Hi Zigo can you make backtest from this indicator
rosario Good evening I would like to understand why it doesn't work for me. Rosary
9 months ago
fireleg79 Bonsoir Nicolas. Merci pour tout ton travail. Quand tu auras le temps pourras-tu jeter un oe...
Jan Wind Thanks for sharing ! The Gain/Loss ratio is a bit low, 1,16, hardly offset the risks take...
drive whats the period ?
Sapo Thank you very much. as always your indicators are extremely effective. kind regards Vonasi.
mitsu21 Hi, it looks nice. I'll try it tomorrow thank you for your share kind regards bruno
kj1988 Thank you Vonasi for sharing this indicator. Very useful as a comfirmation to the price act...
michaelben Bonjour Nicolas . Je cherche une strategie pour faire du trading automatisé. J'ai essaye ave...
ALZ Hello, currently, I don't have the same result as above and don't no if it works good in...
JJ Tec Hola. Me gustarĂ­a contactar contigo para ver la estrategia..
nilsla1981 Has someone already tested in real ?
ggolfet Thanks Nicolas, I imported the itf file and solved the problem.
Hasardeur Hallo Nicolas, i tried to code the multi period heat map in combination with the Ehler’s ...
Nicolas Please open a new topic with the code in forum.
Marie-Eve Vergoz lorsque je copie les codes, le système me signale des erreurs à la ligne 12 et suivantes
Marie-Eve Vergoz sorry - tout est ok -
1 year ago
Marcot18 Alex ti sei superato
AlexF Esagerato!
jobswaps Sube como trazar lineas de tendencias a tantas barras
Vonasi Discussion regarding this indicator can be found here: https://www.prorealcode.com/topic/dis...