ah, ok, good luck with it 



Real-time. Line them up in order, using the last quote on other legs as a reference in between new ticks.Quote from vincegata:
Since OP is busy working on his system at the moment, I have a related question.
Do you guys use real time quotes to generate buy/sell signals or do you aggregate them into, say, 1sec OHLC bars?
If you use real time quotes then you get an unevenly spaced time series. How do you deal with it?
Quote from vincegata:
Since OP is busy working on his system at the moment, I have a related question.
Do you guys use real time quotes to generate buy/sell signals or do you aggregate them into, say, 1sec OHLC bars?
If you use real time quotes then you get an unevenly spaced time series. How do you deal with it?
Quote from Rationalize:
mmm .. bars as opposed to ticks? If you need a high/low or vol range, why not just calc it off a tick window.
class BarList(object):
def __init__ (self,barsecs,runningtime):
totlap=86400.0
self.barsecs = barsecs
self.totcount = totlap / barsecs
self.bars = [ Bar() for i in self.totcount ]
def newTick (self,tick):
runningtime = tick.timestamp
self.bucket = runningtime / barsecs