If I try to get the close( -1, 0, sym( "ES #F,D" ), it doesn't give me the close of the E-Minis with respect to the closing time of the stock market -- it gives me the last tick of the day. This is causing problems with my models.
What I would like to do is retrieve the closest tick for any given product to a specified time. So for example, let's say I wanted the closest [in the time domain] tick after 4PM of the previous day and the day before the previous day for GE and the S&P E-Mini futures, how would I do that?
How do I go about doing this? I tried the dsgetValueAtTime() function with very little success and keep getting null values as my return.
Alternatively, is there any way to cycle through raw ticks and just export all of them, in addition to: the exchange on which the tick occurred, the time stamp [in eastern time], and the actual tick itself easily into just a few arrays?
Let's say I want every single tick that happened on Globex for the S&P E-Mini futures from three days ago until today. How would I retrieve all of this in one array, and also have the time stamps for each individual tick?
What I would like to do is retrieve the closest tick for any given product to a specified time. So for example, let's say I wanted the closest [in the time domain] tick after 4PM of the previous day and the day before the previous day for GE and the S&P E-Mini futures, how would I do that?
How do I go about doing this? I tried the dsgetValueAtTime() function with very little success and keep getting null values as my return.
Alternatively, is there any way to cycle through raw ticks and just export all of them, in addition to: the exchange on which the tick occurred, the time stamp [in eastern time], and the actual tick itself easily into just a few arrays?
Let's say I want every single tick that happened on Globex for the S&P E-Mini futures from three days ago until today. How would I retrieve all of this in one array, and also have the time stamps for each individual tick?
Comment