Distribution Of Returns

Distribution Of Returns

This indicator checks all the candles between the latest one and whatever start date you set (or all of the candles on the chart if you set StartDate to zero) and calculates the rate of return from close to close of each candle. It then counts how many candles returns fit into each specific range (in buckets of 0.25%) from -5% return to +5% return and displays it as a bar chart.

The values above the bars represent the (rounded) percentage of candles whose rate of return fell into that specific range.

The values below the chart indicates rate of return. Each bar represents a 0.25% range  (so 0.0% to 0.25% then 0.25% to 0.5% and so on). The bars at either end of the chart represent returns greater than 5% and returns lower than -5%.

An arrow is shown that represents which group the most recent still forming candles rate of return is in.

Add it as a separate indicator and zoom into the latest candles. Making the indicator full screen also makes it easier to read.

Originally intended for use on daily charts but it can also be used on other time frames. On faster time frames it is of less use as the rate of return of each candle is usually much smaller than the minimum 0.25%.

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. Vonasi • 94 days ago #

    Discussion regarding this indicator can be found here: https://www.prorealcode.com/topic/distribution-of-returns-indicator/#post-99021

Register or


avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
marcosamo hello, thank you that seems very useful. I will try it.
HStrader Hello Vonasi Its seem a nice job again thanks
Theo Salut, qu'elle est ta définition de niveau institutionnel et comment les trouves tu?
Etops Hello, les niveaux sur lesquels il y a des réactions fortes de la part des banques, les nive...
Vonasi Thanks for the compliments Maxime Baudin.
JJ Tec Muy interesante ¡¡¡... gracias X el aporte.
HStrader Thank you for your nice indicator
michaelben Bonjour Nicolas . Je cherche une strategie pour faire du trading automatisé. J'ai essaye ave...
camporan You can use it 5M onwards, but the longer timeframe the more accurate it is. My preferred ar...
manchokcity can we have it in mql4 platform? or how or which platform do we use it?
camporan I don't use MetaTrader so I won't be able to do the translation myself. Sorry!
4 weeks ago
Matriciel Bonjour Nicolas, Merci pour cet indicateur. Il semble fonctionner à l'envers suivant si ...
Nicolas Oui c'est déjà le cas dans la version originale. Il faut pour cela changer la ligne 28 en su...
riz001 thnk u
geroniman bonjour Nicolas, j ai un indicateur le Tiger . J aiemrai placer des fleches buy et sell dire...
Nicolas Merci de formuler les demandes sur le forum. ça n'est pas le bon endroit et hors sujet ici ! ;)
cavineet Hi Nicolas, I have been using pr real time extensively but just end of the day. I would app...
Nicolas Please ask questions on forums. Not the place here and not related to that post:)
Teddy Coronak Bonjour Nicolas , je voulais simplement te dire merci pour cet indicateur. Très simple et...
€Ȝ Hi Nicolas, Excellent piece of code. I used your concept in one of my own indicators too wh...
Nicolas Thanks a lot for the tip.
ggolfet I tried to use it (with prorealtime version 11 - end of day version). I receive an error mes...
Nicolas Try to reduce the displayed units of the chart. MaxScale should always be superior to Start...
ggolfet Thanks Nicolas, I imported the itf file and solved the problem.
swapping Excellent Nicolas ;)
Violet Hi Nicolas, There seems to be a small error in the code, which causes the channel not to...
Nicolas Hmm, I don't think so, otherwise the channel will have a moving start and not anchored anymo...
Bard Hi Nicolas, thanks a lot for coding this interesting looking indicator. I read: https://...
Bard I've also just noticed that changing the "Bands Deviation" setting from 1.25 to eg 3 doesn't...
vandenacker THANKS A A LOT FOR SHARING. I like your trade. I try to remproduce your board but i dont arr...
umebon Tnx for sharing!! Can someone help me how i can call for the mydayhigh and mydaylow for to u...
LucioleLucide Clean view, thanks for sharing
2 months ago
atlante sigue sin funcionar puedes corregir el codigo gracias es que no se ve nada se queda en negro...
Thomas Como? no intiendo. Can you write in english . It works! Download the itf file.
Thomas New Version comin soon...
swapping Hello Thomas, good modification that improves the initial program ;)
Thomas Thanks swapping. That´s Teamwork ;-)
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 -
2 months ago
Marcot18 Alex ti sei superato
AlexF Esagerato!