Jim Dean
 Sage
  Posts: 3022
Joined: 9/21/2006
Location: L'ville, GA
User Profile |
Removed the post since the error was NOT related to OT/VT, etc.
BarHour() DOES work properly.
Sorry about the misunderstanding. I had a coding error ... the BarDates indicator should have included the "+.5" shown below. That removes the problem.
Again, sorry!
#Indicator
' Plot+return dates for each bar as YyMmDd
dim BarYmd as integer
BarYmd=(int(frac(baryear()/100)*100+.5)*100 _
+barmonth())*100 +bardayofmonth()
plot("Ymd",BarYmd, silver)
plotlabel(140000)
plotlabel(150000)
plotlabel(160000)
plotlabel(170000)
Return BarYmd
[Edited by Jim Dean on 10/5/2017 7:33 PM]
|