Have spend a week on the manual and read part of forum. I hope I did not miss my problem when searching.
As I have a multi-time frame strategy (day and 15 min) I started optimistically with the examples and tried to code my strategy. The code run, but results were awful. So I went back to square one building the strategy from scratch part for part.
After analyzing some simplified strategy back tests I however found strange things in the results and charts. Apparently NT sees my TDA day data with US time stamp and the minute data with my local time. (I am based in Brisbane Australia , therefore US market time Friday is for me 12.30AM-07.00AM Saturday local time.
Before going further:
-I did synchronize my PC to windows time server
- I deleted the historic data before every run
TDA feed
AUY type:day - chart looks correct, the market data of Friday US are shown on 28th. .... so the daily data are shown on US time frame, not my local time. I would like this, but I think its not supposed to work like that in NT.
see AUY 12_11_2008 - 28_11_2008 (Daily).jpg
Running again with exclude weekend is true: the chart looks the same.
AUY type:390 minutes 12.30AM-07.00AM exclude weekend false -> the 390 minute bar is shown at 11/29.
How can you run a multi-time frame comparison when minute and day bars are shifted 1 day??
see AUY 29_11_2008 (390 Min) no weekend false.jpg
AUY type: 390 minutes 12.30AM-07.00AM exclude weekend true -> it gets even worse, apparently all US Friday data are ignored and last bar is 11/27.
see AUY 27_11_2008 (390 Min) exclude weekend true.jpg
OK, now the same on IB data feed
IB AUY type:day - chart looks correct, but the market data of friday US are shown now on the 29th Saturday .... so the daily data are shown on my local time. So TDA Daily is different from IB daily.
see AUY 13_11_2008 - 29_11_2008 (Daily) IB
Exclude weekend sure enough removes all Saturday bars (which were the Friday US market data).
see AUY 7_11_2008 - 27_11_2008 (Daily) IB exclude weekend true
IB AUY type:390 minutes 12.30AM-07.00AM exclude weekend false - the 390 minute bar is shown at 11/29.
see AUY 29_11_2008 (390 Min) IB
Exclude weekend sure enough removes all Saturday bars from the chart (which are the Friday session US market data).
So:
1. IB is at least consistent with the daily and 390min bars on the local time.
But the use of 'exclude weekend data' removes the LOCAL time Saturday data => the US Friday data are gone.
2. TDA daily data show up on the US market date and 390min data on the local date.
The 'exclude weekend' option leaves the daily data intact (US timed) but kills the local time Saturday data (so the US Friday minute data gone).
3. If I don't delete the daily historical data, disconnect from IB .. connect to TDA and reload data or run backtest I get some protesting about data errors. But under the backtest chart tab I do get a chart.... with two almost indentical bars (one on the 28th and one on 29th).
see AUY 13_11_2008 - 29_11_2008 (Daily) 2 same bars
As I was using the TDA feed in the weekend (when IB is down) and during the week both IB and TDA (do circumvent data access limits with IB), I guess I will have quite some data errors in my instruments. Maybe this is also a reason why my multi-time frame (day and minutes on TDA feed) strategy was not working.
I am quite confused, obviously I am rather not forced to needing a third data vendor. I would assume NT would work of the shelf with TDA and IB. Any suggestion ?????
Is this mess because I am not in the US time/date band??
BTW:
I must say that I really don't understand why you don't leave things in US time. With the daylight savings shifts the offset needed to define US markets is very complicated. I hope that in backtesting NT knows how to handle these changing offsets (or are data lost when backtesting over daylight savings shifts?).
Also I suggest:
- pls. drop the use of AM and PM.... a 24.00 notation is much clearer.
- pls. get the mm/dd/yy (chart crosshairs) to dd/mm/yy
RGDS Peter
got to 5 attachments ... if you want the other 2 too, pls let me know
Comment