HODAR – Hour Of Day Average Range Bands

v10.3
HODAR – Hour Of Day Average Range Bands

This indicator is a further adaptation of my DOWAR – Day Of Week Average Range Bands indicator that can be found here:

https://www.prorealcode.com/prorealtime-indicators/dowar-day-of-week-average-range-bands/

This version calculates an all time average range for each hour of the day and then applies it to the chart as bands or a background candle or both. So for example on  candles that open at 1000 and close at 1100 the bands (or background candle) will represent the all time average range for all recorded hours of 1000 to 1100 up to that date.

The bands/candles can be made wider or narrower by adjusting the ‘Multiple’ setting.

The centre of the bands/candles can be based on any custom close such as median price, close, typical price, total price etc.

By adjusting the offset you can decide which hours custom close the bands/candles will be centred on. Zero = this hour’s, 1 = the previous hour’s etc.

You can set the start date from when the indicator should start calculating the hourly averages. Set StartDate to zero if you want to use all available history.

 

Apply the indicator only to the hourly price chart.

I recommend that you download the itf file and import it to get full functionality rather than cut and pasting the code.

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?

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

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar
Related users ' posts
Abz  hi , you need to add the indicator from the "price" menu in chart
Francesco Thank you Abz!
phanz Hi Nicolas, this is an interesting strategy. For long position, I assume entry when prices ...
julien1978 The ADR value that is plotted intraday does not match the value of the regular ATR indicator...
Fab666 I've tried to get a fix for this also but no luck, it doesn't print the correct data as far ...
Seabiscuit Hi! With the new PRT update, this indicator does not work anymore
Wing Yes, investigate as much as you want. For more insight, you can view the linet1, linet2 etc....
CKW Hi Wing, Thanks for your sharing. I am still trying to breakdown & understand your code...
Wing Hello CKW. No, the parameter, 7 in this case, is used when calling the RSI indicator to ide...
Pere
8 years ago
Nicolas Use the wrench of the price chart! Upper left of the window
Dymjohn The wrench shows options for the components of the indicator not how to show in the main cha...
Nicolas http://www.prorealcode.com/topic/overlapping-indicators/  
Doctrading Hello,  The strategy should be improved, no doubt. But it was just one of my ideas, which h...
ALEALE Yes Nicolas is very difficult, macro economic data can destroy any work!!  
styrke depends which.. I personally think that it's much more easier to trade on XBTUSD, try to co...
David Thanks for the explanation Nicolas.
freecat1899 Hello, I wanted to create a percent ADR based on this indicator, so I wrote this code that I...
revstrat At first glance, I see this mistake. You shouldn't average the highs and the lows. You shoul...
xel @DerPat - I don't see any question regarding the indicator.  Anyway, I think I give enough l...
diegofe_2000 Xel, tu eres el creador de este indicador? Bueno te  cuento que es muy bueno para hacer est...
xel Buen día @diegofe_2000 -  Claro, mandalo y por aquí lo probamos en otros instrumentos y si g...
GraHal Ooops got that excited I sent that last one twice! ha (and can't delete it, sorry) I got it...
Eric n = 3  dont forget to allow 3 contract in proorder
UkCoopDownUnder Tried EURUSD GMT and GMT -1, as far back as I can go, Nov 2018 on 15mn Tf, 22% loss
totof for those who are interested, I made this small modification of the code for the eWMA which ...
totof //parameters : period = 20 lookback = 1 IF BarIndex < period THEN eVWMA = Close EL...
Pi Hello Totof, I was looking for the code for the 'eVWMA = elastic Volume Weighted Moving Aver...
Nicolas
9 years ago
trabucaire Hello, what does it mean the 20 and 40 number on this code ? Thank you !
robertogozzi I modified it to make parameters customizable and to Draw a Grey candlestick when a range is...
Nicolas
9 years ago
Acceleration Bands
Acceleration Bands
0
Indicators
Nicolas
9 years ago
petmut Hello all, When I import the code here above "multiple ATR bands" and apply it on the PRT ...
Nicolas That should need some custom coding, if you want to make it done, please open a new topic in...
Patopercho Hello, thanks for the indicator, i would like to change the color, is it possible, thanks

Top