I'm writing an indicator that is look at a time analysis. I'm wondering if there is simple reference to the the fist bar of the DataSeries in the reference of Time. IE: DateTime variable. I've been looking but haven't found it yet. I love the DateTime.now. but I want to reference the first bar in a DateTime fashion
Another question, what's the best way to compare 2 points in time if you are looking for a recurring event. IE:
Let's say you look back in time for when price has closed below a certain price level and you store that in time. IE: ES < 800 and you want to save that time to an array or list and see when and if it's done that at a later time still in the past but that next time maybe days,weeks, or months different.
Thanks
Comment