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

[GT] continuing saga: scan.pl



First off, I would really like to thank everyone whose has been helping me get my bearing with the Genius Trader system, especially Robert, and Gregory.  It is not always easy breaking into an existing system.
 
Anyway, here's what I have done to try and get the scan.pl to run for me..
 
I used Yahoo! Finance to download historical data and used Excel to process the data into the correct format.
 
Here is my scan_symbol file:
 
SBUX
ADPI
CAT
AMED
 
Here is my scan_signal file:
 
Signals:Generic:Decrease {I:Prices CLOSE}
S:Generic:And {S:Generic:CrossOverUp {I:SMA 5} {I:SMA 20}}{S:Generic:Increase {I:ADX}}
S:Generic:And {S:Generic:Above {I:Prices} {I:EMA 30}} {S:Generic:Above {I:Prices} {I:EMA 150}}
 
Here is my command line:
 
C:\perl\GTWin\Scripts>scan.pl scan_symbol 2007-04-02 scan_signal
 
I got the most recent code from Subversion (is that correct???) for scan.pl.
 
I also added the 'ras hacks' to the file.
 
When I run the above command line I get the following errors:
 
"my" variable $code masks earlier declaration in same scope at C:\perl\GTWin\Scripts\scan.pl line 343.
syntax error at C:\perl\GTWin\Scripts\scan.pl line 321, near ") }"
Unmatched right curly bracket at C:\perl\GTWin\Scripts\scan.pl line 348, at end of line
syntax error at C:\perl\GTWin\Scripts\scan.pl line 348, near "}"
Execution of C:\perl\GTWin\Scripts\scan.pl aborted due to compilation errors.
 
Upon examing the code it looks like I might have a problem with the curly brackets following the Display results section of code:
 
# Display results This is line 317 in my source code listing
my $db = create_db_object();
foreach my $name (@list_systems) {
    my $object = $systems->{$name}{'object'};
    if (ref($object) =~ /GT::Systems/) }                   #  2007_04_24: non-matching pair of '{}' changed '{' to '}''
 print "<p>" if ($html);
 print "\nBuy signal: $name\n";
 print "</p>" if ($html);
 print "<ul>" if ($html);
 
As you can see, I tried changing a 'left curly bracket' to a 'right curly bracket'.
 
I was hoping to get someone's scan.pl listing to compare with mine and find my errors as I am going cross eyed looking at it.
 
Thank you, again for your help.
 
Frank
 
P.S. How do I contact Billy for help with Windows stuff (gasp, abhorred!).