Hello all,
I’m very new to ProRealtime and require some help while still learning how to code.
I would like to automate a horizontal line h/l avg (mid) of the opening 5min candlestick created on a 5min candlestick chart.
Would need to also see historic opening 5min candlestick h/l avg horizontal lines also on the chart.
Any help would be appreciated.
Many Thanks
(mid) of the opening 5min candlestick
You mean the market open? Is it the first bar of the day or a candlestick at a precise hour? (CFD is different from Future opening hour).
Hi,
Thank you for looking into this for me.
Yes market open
It would be the h/l avg (mid) of the first 5min candle on a 5min chart for UK time 14:30-14:35, US time 0930
The fastest and easy way to do that is:
timeopen = 083500
if time=timeopen then
drawhline((high+low)/2)
endif
return
You can change yourself the “timeopen” variable to adjust the market open hour if you want to.
Lines can only be plain one (no dotted one sorry..).
Hi Nicolas,
How do i add this to the main price chart?
Thank you so much for this, i am a total newbie to this platform and have been with Sierra Charts for years so big learning curve for me.
Need to spend a lot of hours learning this platform.
If you have already created it as an indicator then just click on the spanner in the corner of the price chart and a window will come up where you have the option to add indicators to the chart.
I have added the indicator and named it ‘5min h/l avg’.
i right-clicked on chart and selected ‘settings price’ added indicator ‘5min h/l avg’
Nothing shows up on chart and ‘5min h/l avg’ indicator is a light grey colour in the ‘Settings – Price’ where other indicators, i.e VWAP is black.
Hi both,
All working now , after i renamed the indicator.
Many thanks
Hi all again,
Need some more help 🙁 please.
I would like the same as above but on a daily chart as well, so a horizontal line created on the mid of each daily candle.
My main goal would be just to create the hline on the mid of a daily candle on the top 50 to 100 candles which have the highest amount of volume over a given amount of units?
Thanks