Good morning guys!
I am using the following code to bring the daily volume into my intraday charts so that I can limit script activity until a certain volume is reached. It works ok, but on the higher time frames there is obviously a considerable lag in the value that is generated. I was watching $TWTR today on a 15 min chart and at the beginning of a new bar the value was pretty accurate when compared to the volume reported on the snapshot bar but was lagging by 600,000 shares at the end of the bar. Does anyone know of a better method to bring the daily volume into intraday charts?
Thank you, Charley
I am using the following code to bring the daily volume into my intraday charts so that I can limit script activity until a certain volume is reached. It works ok, but on the higher time frames there is obviously a considerable lag in the value that is generated. I was watching $TWTR today on a 15 min chart and at the beginning of a new bar the value was pretty accurate when compared to the volume reported on the snapshot bar but was lagging by 600,000 shares at the end of the bar. Does anyone know of a better method to bring the daily volume into intraday charts?
Thank you, Charley
PHP Code:
function main() {
var Interval = (inv("D"));
var Volume = volume(Interval);
var DailyVol = Volume.getValue(0);
eval(DailyVol);
return;
}