The attached code doesnt seem to be processing CurrentBar as I would expect. It is supposed to process each bar in a chart from left to right to detect price gaps.
When I apply this indicator to a chart (daily chart from Yahoo data) it appears (from looking at the output window) that 'CurrentBar' isnt updating after each loop. The indicator gets stuck on the first pair of bars. What am I doing wrong? I have added "prints" so I can see what the code is doing.
Thanks!
Comment