StockFetcher Forums · General Discussion · Filter Help - Can't figure out what's missing in my code<< >>Post Follow-up
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,358 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,358 posts
msg #48389
Ignore TheRumpledOne
modified
12/4/2006 10:14:31 PM

Fetcher[
Set{VaRatio, Volume / average volume(10)}

set{v, volume 1 day ago}
set{volinc, volume - v}
set{volpc, volinc / v}
set{volpct, volpc * 100}

set{VolZ, days(volume < 1,100)}
set{VolUp, days(volume is below volume 1 day ago,100)}
set{VolDn, days(volume is above volume 1 day ago,100)}
set{VolCnt, VolUp - VolDn}

set{vck1, volume 1 day ago }
set{vck, volume / vck1 }
set{vdbl, days(vck < 2, 100)}

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)

and add column VolCnt
and add column Vdbl
and add column volpct
]



I added a few volume displays.




StockFetcher Forums · General Discussion · Filter Help - Can't figure out what's missing in my code<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2016 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus