I am looking for a way to pick up how many bars there are between a High and Low given a time window specified. I can easily pull the Min() and Max() prices over a historical period however am struggling to get a bar count between these two values. A time isn't sufficient since I will be doing this across many windows and potentially volume intervals. Any help would be greatly appreciated.
thanks
Comment