Good day
Can someone please help me, I have created this indicator which draws various Open and Close courses in the chart. Unfortunately, it does not work today with the closing price of the previous week on 5 minutes basis at 15 minutes, everything is displayed correctly. But I need the indicator in the 5 and 10 minute chart windows.
Many thanks in advance
defparam drawonlastbaronly=true
IF TIME>= 008000 AND TIME<= 220000 THEN
if opentime=080000 or (opentime[1] < 080000 and opentime > 080000) then
myopen0800=open
endif
if opentime=090000 or (opentime[1] < 090000 and opentime > 090000) then
myopen0900=open
endif
if time >174000 and time <=174500 then
myclose1745=close
endif
if time >215000 and time <=220000 then
myclose2200=close
endif
endif
// Close 2200 Vorwoche
if DayofWeek=5 then
if time>090000 and time <=220000 then
myclose2200Week=close
endif
endif
drawtext(” open0800″,barindex,myopen0800,Dialog,Standard,12)coloured(100,149,237)
drawtext(” open 0900″,barindex,myopen0900,Dialog,Standard,12)coloured(100,149,237)
drawtext(” close 1745″,barindex,myclose1745,Dialog,Standard,12)coloured(24,116,205)
drawtext(” close 2200″,barindex,myclose2200,Dialog,Standard,12)coloured(24,116,205)
drawtext(” close Week 2200″,barindex,myclose2200Week-3,Dialog,Standard,12)coloured(24,116,205)
return myopen0800 as “open0800″,myopen0900 as”open0900″,myclose1745 as”close1745”,myclose2200 as “close2200″,myclose2200Week as”close Vorwoche 2200”