I'm doing some work on a custom indicator and need to review the bars that have occurred since the market opened, but not before.
Is there something like Time[0] that indicates what time a bar occurred? That would let me go back to the bar that started the day. Another option would be something that would tell me how many bars have occurred since the market opened.
I understand that I would need to use CurrentBar to make sure that I didn't ask for data that had not been loaded.
My fallback is to use datetime.now and count the number but I wanted to see if there was something built in first.
thanks!
john
Comment