♥ 0 |
Hi Pete,
Thank you for the helpful studies. I currently have this one liner which is used to capture % change for a single day. def pc = Round(100*((close/open(period = AggregationPeriod.DAY))-1),1); I would like for it to only capture %change from current day premarket to current time. Would really appreciate your help in achieving this. Thank you kindly. RESOLVED
Marked as spam
|
Please log in to post questions.
For stocks with high premarket activity, is the close of the premarket really any different than the open of the regular session? I don’t know, because I don’t follow this. Just asking. That is what you wanted right? The closing price of the premarket, as compared to the current price of the regular session?
The problem with the current 1 liner is that it only provides data when market opens. I’d like for the data to include the data from premarket as well. Similar to how the mark%change watchlist works. Thanks for the response.
Ok, the reason it does not work until market is open is because the code is reading from today’s market open. It’s taking the current price and dividing it by today’s regular session open. During premarket hours, the data is not available, because it hasn’t happened yet.
So what you have here is a value that compares today’s regular session open to current intraday price. In order to have this compute a value during premarket hours, you will need to tell me what data point to use in place of today’s regular session open.
Thanks for the clarification.
I would like to use the premarket session open (4am ET) as the data point.