PureBytes Links
Trading Reference Links
|
Yes, it was what I was originally using, but it is just an EL function not a
keyword, and the function is essentially what I have now - DateToJulian(Date) =
LastCalcJDate.
I copied it into my code to make sure I wasnThe dates't missing something and to
play around while debugging it.
However, it looks like the mystery is stronlgy linked to the last day of the
data I am using, because I checked the dates as you suggested and found that the
last update I made was 2008-07-04, which I guess is a holiday in the States.
I think what happened is that I saved the workspace with the Australian Dollar,
which has data ending on 2008-07-03. Now I don't know why it didn't execute
'True' for lastbaronchart for this contract, but the next one is Euro-Bund,
which traded on 2008-07-04 and has data for then.
Perhaps ChartScanner scanned over the data using 2008-07-03 as the end date
because it had just used that with Aussie Dollar, and therefore never executed
the last bar for Bund.
I'm going to investigate further. Thanks for the input.
The dates
Adam
richestrem@xxxxxxx on 05/08/08 18:27, wrote:
You will probably need to bring up charts of all your symbols and see
if the last bars are all the same date. I'd guess you have
some missing data that is causing the problem. I have seen tests
for the last bar fail in some cases like that. Does TS4 have the
keyword 'lastbaronchart' ? If so you might try:
if lastbaronchart then print(getsymbolname," end");
The dates
rich
On 5 Aug 2008 at 18:07, Adam Hardy wrote:
Rich,
just re-read your email and realised I missed the point of what you were doing.
But I just put in your line of code and saw all the symbol names print out.
What I've got is this:
if DateToJulian(Date) = LastCalcJDate then print(getsymbolname);
So what I did just now is this
if currentbar=1 then print("start ", getsymbolname);
if DateToJulian(Date) = LastCalcJDate then print("end ", getsymbolname);
And my print log after a chartscanner run looks something like this:
start AD
start BF
start BP
end BP
So you see that for AD and BF, that DateToJulian(Date) = LastCalcJDate is never
true. Why why why?!? It makes no sense.
And this is after cleaning the whole machine and putting the hard drive into a
higher spec machine. Even though it's only TS4.
I put this back on the list, figured you only replied off list unintentionally.
Regards
Adam
richestrem@xxxxxxx on 04/08/08 18:26, wrote:
before you do that you might just make sure your code itself is not the
problem. I would add a single line like this:
if currentbar=1 then print(getsymbolname);
If all the symbols print to the printlog then the problem is your code.
On 4 Aug 2008 at 18:15, Adam Hardy wrote:
Good tip, thanks alot.
Didn't help though. Brought the CPU usage right down, but I'm still seeing
ChartScanner completely jump over two of the symbols in the directory I'm
scanning.
The only thing left to me now is to clean up inside the computer, put a
temperature gauge in there (I've got a spare one that has a read-out) and
do a re-install (thanks for that reminder, Jimmy).
J S Shisko on 04/08/08 14:17, wrote:
This solution was mentioned in a forum a while back and worked for me.
You could try clicking on tools in the server page and then select
holiday setup and that may reduce your cpu usage or you may need one more
step by selecting any item from the holiday list and clicking on the edit
list button to reduce your cpu usage. Just leave the server open in this
mode and you can run all other programs without the 100% cpu problem.
Close this little window when you want to do something in the server page
mode.
Joe
-----Original Message----- From: Adam Hardy
[mailto:adam.ts@xxxxxxxxxxxxxxxxxx] Sent: Monday, August 04, 2008 07:51
To: omega-list@xxxxxxxxxx Cc: Omega-List Subject: Re: lack of reliability
in chartscanner
Fans? You think it might be overheating? Well, I guess I can put a temp
gauge on it but it seems OK. And you reckon I should clean out the dust
with a vacuum
cleaner too, I guess. I did that 2 years ago, so it won't hurt. As for
the temp that it runs at, it's an old CPU without a built-in gauge on the
CPU.
The performance in Task Manager has always been nailed at 100% as soon as
I open the Omega Server - I never thought it would cause problems.
I allocated 4 gigs to the virtual memory.
I recently cleared the hard drive down to free up 10 Gigs, I ran Defrag,
I ran Norton Disk Doctor and scandisk. So it's pretty clean.
And for an old TS4 machine, it's got a pretty good spec.
My tinkering with the system shows that it's not the FileAppend()
function that's failing, it looks like it's this if statement that fails:
if DateToJulian(Date) = LastCalcJDate then
... as if TS4 isn't running the system over the last bar of the data. Or
perhaps even any of the data for that market - even though the
chartscanner looks like it does because it shows that market symbol in
the dialog box when scanning.
Jimmy Snowden on 03/08/08 21:50, wrote:
I never used that feature in TS4 but I would check to see if my
computer is bogging down. Is it clean with all fans running. If you
run your print out with the task manager on see if performance in the
performance tab is nailed at 100% or out of memory. All platforms of
TS are subject to just craping out with no notice if the computer can't
keep up. This is a perfect example. How long have you been running it
without cleaning it? Do you use it for anything other than the market.
Maybe it has spy ware or trojan, virus or just needs a reinstall of
TS4.
Jimmy
Actually today it is so bad that TS4 just now only printed 2 out of the
24
lines
that it should have printed to the file.
This is such a hardcore bug, but I checked the
tradestationsecurities.com
forum
and couldn't see any mention of such a problem. I guess I'm 8 years too
late
with TS4. I recently cleared the hard drive down to free up 10 Gigs, I
ran Defrag, Adam Hardy on 01/08/08 20:58, wrote:
Chartscanner in TS4 is causing me problems.
I use FileAppend() in my system to output the results from each run
into a file, which I then import into Excel and generate some further
stats with.
When I run ChartScanner, it loops over my 24 selected markets, and
that should produce a file with 24 lines in it, one for each market.
This works much of the time, for instance all morning and half the
afternoon today, no problem.
But then it started going wrong. Sometimes I will get only 23 lines,
sometimes 19 etc. TS4 randomly fails to write a line to the file.
It's as though FileAppend() doesn't manage to write out its buffer to
the file before TS moves onto the next market.
My only solution so far is to delete the file and re-run the
ChartScanner. If that doesn't work, I close TS4. If that doesn't
work, I close the server too, and then perhaps reboot the whole PC.
Is anyone else familiar with this bug?
|