You can add PlotIndexSetInteger(0, PLOT_ARROW, 158); after SetIndexBuffer(0,openLine,INDICATOR_DATA); to reduce the size of the dots. Otherwise, if you want to keep lines, you have to skip the first (or last) bar in the day to break the line as they do it in the MT4 version.
indicator print for 1 bar less than expected. for example it prints for 5 bars on H4 instead 6.
would you be willing to add for other time frames besides daily and some other modifications ?
sorry i was wrong, originally long time ago uploaded indicator is same like you made, same problem...There is indicator that print correctly: H4=6 bars and H1 =24 bars. problem with this indicator is that print for weekly :friday to friday; see attached please.
then saw another one: has weekly correct but H4 , H1 etc incorrect...
Enivid, on monthly chart shows weekly opening line but should not and it is randomly placed.Does weekly and monthly need to have "Time shift(in hours)" like in Daily opening line?
I need yearly opening line as well for MT4 and MT5. Thank you.