[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Y2K Question



PureBytes Links

Trading Reference Links

Jimo wrote:
> Can
> you put four-digit years in ascii files; if not, what's the difference
> between 1980 and 1990?

No problem.... 1/1/80  1/1/90

> In any case, real-time data, or broadcast-collected EOD data gets
> its dates represented in a mock-Julian format: n-days since 12/31/1899,
> so it should be OK.

That's how it is stored internally but I think the problem is that TS
will store 2000 dates with the mock julian date for 1900. Then, when you
try to plot the data, you will get an invalid date error. TS doesn't
like it if the dates are not in the correct order. 

As I understand it, the proposed Y2K fix for the server is just to
change the storage algorithm so years less than (20 something I think)
will be assumed to be 2000 years. You may lose the ability to plot long
historical series that start before (1920 or whatever it is).

With ascii data, this will plot

"Date","Time","O","H","L","C","V","OI"
12/22/98,1615,1203.61,1209.22,1192.81,1203.57,1238,0
12/23/98,1615,1207.00,1229.89,1203.57,1228.54,1372,0
12/24/98,1615,1228.54,1229.72,1224.85,1226.27,675,0
12/28/98,1615,1227.04,1231.52,1221.17,1225.49,1411,0
12/29/98,1615,1225.70,1241.86,1220.78,1241.81,1496,0
12/30/98,1615,1241.81,1244.93,1231.20,1231.93,1467,0
12/31/98,1615,1232.04,1237.18,1224.96,1229.23,1202,0
01/04/99,1615,1229.33,1248.81,1219.10,1228.10,1398,0
01/05/99,1615,1228.50,1246.11,1228.10,1244.78,1336,0
01/06/99,1615,1248.00,1272.50,1244.78,1272.34,1335,0
01/07/99,1615,1269.70,1270.10,1257.68,1269.73,1275,0
01/08/99,1615,1269.73,1278.04,1261.85,1275.09,1378,0

This gives an "invalid date" error message

"Date","Time","O","H","L","C","V","OI"
12/21/99,1615,1203.61,1209.22,1192.81,1203.57,1238,0
12/22/99,1615,1207.00,1229.89,1203.57,1228.54,1372,0
12/23/99,1615,1228.54,1229.72,1224.85,1226.27,675,0
12/27/99,1615,1227.04,1231.52,1221.17,1225.49,1411,0
12/28/99,1615,1225.70,1241.86,1220.78,1241.81,1496,0
12/29/99,1615,1241.81,1244.93,1231.20,1231.93,1467,0
12/30/99,1615,1232.04,1237.18,1224.96,1229.23,1202,0
1/3/00,1615,1229.33,1248.81,1219.10,1228.10,1398,0
1/4/00,1615,1228.50,1246.11,1228.10,1244.78,1336,0
1/5/00,1615,1248.00,1272.50,1244.78,1272.34,1335,0
1/6/00,1615,1269.70,1270.10,1257.68,1269.73,1275,0
1/7/00,1615,1269.73,1278.04,1261.85,1275.09,1378,0

> BTW, does the offline server care what the computer clock date is?
> Will it fight me if I try to load data newer than its idea of "now?"
> That'd be unfriendly, but not the first case of such stupidity...

Yup. Offline server uses the computer clock. TS will plot future dates
for a brief moment and then the chart redraws with the last bar being
the computer date. However, the status line will still show the price
and indictor values of the last date in the data.

-- 
   Dennis