jonnyb
-DTN Evangelist-
Posts: 122
Joined: Aug 15, 2012
|
Posted: Dec 2, 2013 11:12 AM
Msg. 3 of 8
1. If I had my druthers, all bars would come out synchronized at the end of each interval. That makes for a consistent trading clock of sorts and, more importantly, the synchronization opens up the possibility of multi-asset strategies (e.g. pairs trading...although this would also require the bid/ask addition discussed in #3 above). That said, if I understand the docs correctly, one could still gain these advantages by using the 'Update Interval' parameter. I've tried testing this with the following request that (I think) should send a BU message 1 second prior to the bar's DateTime. However, you'll notice that BU messages aren't sent for each bar...shouldn't they be given the request I sent?
REQUEST: sout.write("BW,SPY,300,,1500,,093000,160000,SPY_5min,s,,299\r\n");
MESSAGES: SPY_5min,BH,SPY,2013-12-02 10:55:00,180.9780,180.9800,180.8700,180.9400,26427069,586758,0, SPY_5min,BC,SPY,2013-12-02 10:55:00,180.9780,181.0050,180.8700,181.0000,26477986,637675,, SPY_5min,BC,SPY,2013-12-02 11:00:00,180.9900,181.0501,180.9700,181.0300,27138971,652885,, SPY_5min,BC,SPY,2013-12-02 11:05:00,181.0400,181.0900,181.0300,181.0610,27655585,513314,, SPY_5min,BU,SPY,2013-12-02 11:10:00,181.0700,181.1200,181.0500,181.1000,28131279,461294,, SPY_5min,BC,SPY,2013-12-02 11:10:00,181.0700,181.1200,181.0500,181.0900,28131379,461394,, SPY_5min,BU,SPY,2013-12-02 11:15:00,181.0900,181.1200,181.0600,181.1100,28549298,409919,, SPY_5min,BC,SPY,2013-12-02 11:15:00,181.0900,181.1200,181.0600,181.1100,28549298,409919,, SPY_5min,BU,SPY,2013-12-02 11:20:00,181.1100,181.1600,181.0050,181.0400,29227467,651458,, SPY_5min,BC,SPY,2013-12-02 11:20:00,181.1100,181.1600,181.0050,181.0400,29227467,651458,, SPY_5min,BU,SPY,2013-12-02 11:25:00,181.0500,181.1300,181.0300,181.1000,29470302,233735,, SPY_5min,BC,SPY,2013-12-02 11:25:00,181.0500,181.1300,181.0300,181.1000,29470302,233735,, SPY_5min,BC,SPY,2013-12-02 11:30:00,181.1000,181.1200,181.0100,181.0100,30288069,814167,, SPY_5min,BU,SPY,2013-12-02 11:35:00,181.0200,181.1300,180.9999,180.9999,31797173,1007987,, SPY_5min,BC,SPY,2013-12-02 11:35:00,181.0200,181.1300,180.9999,180.9999,31797173,1007987
4. I didn't mean to insinuate that I've found a problem but I would like an answer to the question if possible.
|