♥ 0 |
Hello Pete,
I hope all is well. I have been working on some code that calculates the total volume from the 9:30am open. However, the code gives me the total volume on the day. How does one modify the code to only calculate from 9:30am est.
Best
Volume from open
def totaldayvolume = volume(period = “DAY”); plot data = if IsNaN(close[-1]) then totaldayvolume else Double.NaN; data.SetPaintingStrategy(PaintingStrategy.VALUES_ABOVE+1);
Marked as spam
|
Private answer
We already have a solution for this here: https://www.hahn-tech.com/ans/volume-for-specific-time-frame/ Simply adjust the start and end time to facilitate the time period you need.
Hello Pete, Thank you for reaching out, this is a good question. I checked with our quote team and will can be differences between intraday and Daily volume. Daily volume is going to include late prints (adjustments from the exchanges shortly after the close). In addition intraday charts do not account for odd lots (lots less than 100 shares). I hope this helps to clear things up, please let us know if you need anything more. Warm Regards, Michael N Trader Support, Trader Services Marked as spam
|
Please log in to post questions.