Can not get it to work. Will it show after that time? In other words since it is Sunday late in the day, will it still show the lines from friday? In any case, I cut and pasted the formula. There was one minor error with flag being falg. But even when changed it nothing shows. I also changed them to flat lines to show up easier.
If you want to see the lines from Friday, I think you need to figure out how many bars ago the data resides and then H=getValue("High",-xx) etc.
Figure out the current time, figure out the length of the current bars, figure out what time the current day started at, figure out what time the prior day ended.
If this sounds like a pain in the arse, you are right.
Just had another idea, run a loop backwards and check the time of each bar. When you get to 1030 start saving the high and low til you get to 930. Probably a cpu hog, though
This is something I would definitely use. I watch today's first hour high and low (and yesterday's last hour high and low) and would love to be able to draw extended horizontal lines on intraday charts to show these values.
Comment