[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [GT] scan.pl error
Todd Turner wrote:
Hi All,
Working on my first scan, ran into a problem with scan.pl. Any ideas?
I tried adding --timeframe=day to the scan.pl [options] but that
didn't help.
i've likely shot myself in the @55 and everyone else in the foot
--verbose will likely turn on excessive developement stuff in parse_date_str
either change the name of parse_date_str in scan.pl or remove it
altogether to eliminate the message
Subroutine parse_date_str redefined at scan.pl line 586.
i believe it's harmless however.
as far as the rest of the trouble here with totally empty ~/marketfile.txt
and ~/system files i'm getting:
ras [ 10139 ] % scan.pl --verbose ~/marketfile.txt 2008-03-20 ~/system.txt
pre timeframe adjust:
date: 2008-03-20 00:00:00
start:
end:
post timeframe adjust:
date: 2008-03-20 00:00:00
start:
end:
with
ras [ 10143 ] % scan.pl ~/marketfile.txt 2008-03-20 ~/system.txt
i'm getting no output (as i would expect)
if i use a previous working command line with data in the files
ras [ 10140 ] % scan.pl --timeframe day --start '6 months ago' --end 'yesterday' scan_symbol2 'yesterday' scan_signal
Signal: S:G:And {S:G:Increase {I:BBO 50 1.9 {I:Prices CLOSE}}} {S:G:Above {I:BBO 50 1.9 {I:Prices CLOSE}} 0.8} {S:G:Increase {I:AROON 50 {I:Prices CLOSE} {I:Prices CLOSE}}} {S:G:Above {I:AROON 50 {I:Prices CLOSE} {I:Prices CLOSE}} 70} {S:G:Decrease {I:AROON/2 50 {I:Prices CLOSE} {I:Prices CLOSE}}} {S:G:Below {I:AROON/2 50 {I:Prices CLOSE} {I:Prices CLOSE}} 70} {S:G:Above {I:AROON/3 50 {I:Prices CLOSE} {I:Prices CLOSE}} 0} {S:G:Above {I:RSI 14 {I:Prices CLOSE}} 50}
CIEN CIENA CORP
Signal: S:G:And {S:G:Decrease {I:BBO 50 1.9 {I:Prices CLOSE}}} {S:G:Below {I:BBO 50 1.9 {I:Prices CLOSE}} 0.8} {S:G:Decrease {I:AROON 50 {I:Prices CLOSE} {I:Prices CLOSE}}} {S:G:Below {I:AROON 50 {I:Prices CLOSE} {I:Prices CLOSE}} 70} {S:G:Increase {I:AROON/2 50 {I:Prices CLOSE} {I:Prices CLOSE}}} {S:G:Above {I:AROON/2 50 {I:Prices CLOSE} {I:Prices CLOSE}} 70} {S:G:Below {I:AROON/3 50 {I:Prices CLOSE} {I:Prices CLOSE}} 0} {S:G:Below {I:RSI 14 {I:Prices CLOSE}} 50}
Signal: S:G:And {S:G:Above {I:Prices VOLUME} {I:G:Eval int(1.2 * {I:SMA 20 {I:Prices VOLUME}} )}} {S:G:Above {I:Prices CLOSE} {I:Prices OPEN}} {S:G:Above {I:Prices CLOSE} {I:G:PeriodAgo 1 {I:Prices CLOSE}}}
GE GEN ELECTRIC CO
K KELLOGG CO
KO COCA COLA CO THE
Signal: S:G:And {S:G:Below {I:Prices CLOSE} {I:G:PeriodAgo 1 {I:Prices CLOSE}}} {S:G:Below {I:Prices CLOSE} {I:SMA 50 {I:Prices CLOSE}}}
ras [ 10141 ] % cat scan_symbol2
SBUX
GE
K
KO
CAT
CIEN
JNPR
ISRG
content of scan_signal can be discerned from the above signals i believe.
things of note: i have date::manip so --start '6 months ago' and
--end 'yesterday' work, otherwise the need to be time frame day dates
none of the recent (say last 96 hours) changes are in my working environment.
if you want to send copies of your ~/marketfile.txt and ~/system.txt files
i'll mess around with it a bit more or you can mess around to see if mine
make any difference.
aloha and best of luck
ras
Thanks
Todd
gt
AT
yoda:~/GeniusTrader/Scripts$ perl scan.pl --verbose
~/marketfile.txt 2008-03-20 ~/system.txt
Subroutine parse_date_str redefined at scan.pl line 586.
pre timeframe adjust:
date: 2008-03-20 00:00:00
start:
end:
post timeframe adjust:
date: 2008-03-20 00:00:00
start:
end:
Can't open 20:20:20: No such file or directory at scan.pl line 296.
humm -- 20 is ascii space, but also day in date string
Argument "" isn't numeric in numeric gt (>) at ../GT/Tools.pm line
456, <> line 1.
Can't call method "timeframe" on an undefined value at
../GT/Calculator.pm line 70, <> line 1.
Argument "" isn't numeric in numeric gt (>) at ../GT/Tools.pm line
456, <> line 1.
Can't call method "timeframe" on an undefined value at
../GT/Calculator.pm line 70, <> line 1.
Argument "" isn't numeric in numeric gt (>) at ../GT/Tools.pm line
456, <> line 1.
Can't call method "timeframe" on an undefined value at
../GT/Calculator.pm line 70, <> line 1.
Argument "" isn't numeric in numeric gt (>) at ../GT/Tools.pm line
456, <> line 1.
Can't call method "timeframe" on an undefined value at
../GT/Calculator.pm line 70, <> line 1.
Argument "" isn't numeric in numeric gt (>) at ../GT/Tools.pm line
456, <> line 1.
Can't call method "timeframe" on an undefined value at
../GT/Calculator.pm line 70, <> line 1.
Argument "" isn't numeric in numeric gt (>) at ../GT/Tools.pm line
456, <> line 1.
Can't call method "timeframe" on an undefined value at
../GT/Calculator.pm line 70, <> line 1.
Argument "" isn't numeric in numeric gt (>) at ../GT/Tools.pm line
456, <> line 1.
Can't call method "timeframe" on an undefined value at
../GT/Calculator.pm line 70, <> line 1.
Argument "" isn't numeric in numeric gt (>) at ../GT/Tools.pm line
456, <> line 1.
Can't call method "timeframe" on an undefined value at
../GT/Calculator.pm line 70, <> line 1.
Argument "" isn't numeric in numeric gt (>) at ../GT/Tools.pm line
456, <> line 1.
Can't call method "timeframe" on an undefined value at
../GT/Calculator.pm line 70, <> line 1.
Argument "" isn't numeric in numeric gt (>) at ../GT/Tools.pm line
456, <> line 1.
Can't call method "timeframe" on an undefined value at
../GT/Calculator.pm line 70, <> line 1.
Argument "" isn't numeric in numeric gt (>) at ../GT/Tools.pm line
456, <> line 1.
Can't call method "timeframe" on an undefined value at
../GT/Calculator.pm line 70, <> line 1.
Signal: S:G:Increase {I:Prices CLOSE}