2 min 19 sec. bar

Have a QScript to share, or need help with programming? Post your comment here.
Post Reply
neo777
Posts: 1
Joined: Tue Jul 21, 2015 9:33 pm
Contact:

2 min 19 sec. bar

Post by neo777 » Sat Jun 24, 2017 1:46 pm

I need the bar function that takes input 'starting time' and captures a bar at every 2 min 19 sec. when working with live data.
I don't want history or historical data in 2 min 19 sec. bars, I just want to plot for the single day when working with live data.
I don't know if this function exists or not, or is there any way to capture the live intraday data for non traditional bars.
Please HELP !!!

kurthulse
Posts: 15
Joined: Tue Jul 21, 2015 9:16 pm
Contact:

Re: 2 min 19 sec. bar

Post by kurthulse » Sat Jun 24, 2017 6:57 pm

Hi neo777,

I don't believe the data collection mechanisms that are currently available for Wave59 allow us to look at time increments smaller than one minute.

A potential workaround might involve using the function that reads the seconds from your own computer's clock, in order to monitor the price data as it rolls in tick-by-tick. However, that would be difficult to script in a way that was reliable for producing 2:19 bars. I have done it for other purposes, but I had to allow a lot of "wiggle room" in the cutoff between time increments, because tick data doesn't roll in at a consistent rate. I really don't think that kind of solution would satisfy your need for precise time bars.

(I wish we could examine sub-minute intervals in order to catch various types of divergences, but I have no idea how extensive an overhaul would be required in the basic data collection programs to allow for this.)

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests