deodevelop 9 posts msg #48320 - Ignore deodevelop |
12/2/2006 12:53:00 PM
Hi folks,
I'm just learning SF's coding and was wondering if anyone could look at my code below and give me some guidance on what I'm doing wrong.
I was just trying to make a variable that would give me the ratio of the match's volume / ADV(10) and use that variable to:
show stocks with 3x ADV(10)
and that had hit a new 52 week high
But when I Backtest my filter - there are no matches - which I know is not the case in reality.
Thanks in advance for any guidance
Ed
My code is below......
set{VaRatio, Volume / ADV(10)}
Show stocks where VaRatio is above 3.00
and high reached a new 1 year high
and Average Volume(10) is above 500000
and Volume is above 1000000
and close is greater than 6.00
and market is not otcbb
add column Va Ratio
add column average volume(10)
add column average volume(20)
add column average volume(50)
add column rsi(10)
|
lockwhiz 206 posts msg #48323 - Ignore lockwhiz |
12/2/2006 1:46:33 PM
ADV(10) ... I don't believe SF recognizes this.
|
lockwhiz 206 posts msg #48326 - Ignore lockwhiz |
12/2/2006 1:52:06 PM
You may want to check out YEPHER's page of all the commands ... nicely done.
http://yepher.com/~yepher/stockfetcher/command-cmddoc.html
|
deodevelop 9 posts msg #48338 - Ignore deodevelop |
12/2/2006 3:57:55 PM
thanks lockwiz, you were right.
Sometimes if you look at something too long - the visible becomes invisible.
Works perfectly now
thanks again:)
Ed
|
TheRumpledOne 6,411 posts msg #48342 - Ignore TheRumpledOne |
12/2/2006 7:32:29 PM
Please post the working version.
|
deodevelop 9 posts msg #48388 - Ignore deodevelop |
12/4/2006 7:58:05 PM
Sorry - forgot to post the working filter code - here it is...
Lots to learn - your help saved my bald spot from growing even bigger:)
Thanks again LockWiz and TRO
Set{VaRatio, Volume / average volume(10)}
Show stocks where VaRatio is above 3.00
and high reached a new 1 year high
and Average Volume(10) is above 500000
and close is greater than 6.00
and market is not otcbb
and sort column 5 descending
add column VaRatio
add column average volume(10)
add column average volume(20)
add column rsi(10)
|
TheRumpledOne 6,411 posts msg #48389 - Ignore TheRumpledOne modified |
12/4/2006 10:14:31 PM
I added a few volume displays.
|