StockFetcher Forums · General Discussion · Simple Syntax help<< 1 2 3 >>Post Follow-up
AdamW328
84 posts
msg #79002
Ignore AdamW328
9/10/2009 10:28:37 PM

Welliot, I just ran your syntax with my filter and it seems to only be returning results where the avg. volume(90) was above 75% for the present day not above 75% for any of the preceding 5 days including the current. day.......

welliott111
98 posts
msg #79003
Ignore welliott111
9/10/2009 10:55:37 PM

remove the line "today equals 1"

AdamW328
84 posts
msg #79147
Ignore AdamW328
9/13/2009 7:17:41 PM

Welliot, the filter is still not returning the desired results even with me removing today equals 1

Anyone else want to try and take a stab at this?

welliott111
98 posts
msg #79150
Ignore welliott111
9/13/2009 8:06:07 PM

If you're combining filters, there may be a conflict between the two... If you post your filter maybe someone can help.

Cacher
121 posts
msg #79151
Ignore Cacher
modified
9/13/2009 8:53:53 PM

I decided to join StockFetcher today ....

I think this is what you are looking for.....

Fetcher[

/* Volume 75% above average volume(90) within the last 5 days */
set{av90,average volume(90)}
set{abve75,av90*1.75}

/* some BOOLEAN LOGIC thanks TRO */
set{A,count(abve75 is less then volume,1)}
set{B,count(abve75 is less then volume 1 day ago,1)}
set{C,count(abve75 is less then volume 2 day ago,1)}
set{D,count(abve75 is less then volume 3 day ago,1)}
set{E,count(abve75 is less then volume 4 day ago,1)}

set{ORA,A+B}
set{ORB,ORA+C}
set{ORC,D+E}
set{ORD,ORB+ORC}

/* if ORD is greater then 0 then it happened */
show stocks where ORD is greater then 0

/* weed out the pennies and bring in some volume */
and price is greater then 5
and average volume(30) is greater then 150000

/* now test if OVERBOUGHT */
and Slow Stochastic(5,5) Fast %K is greater then 82

add column ORD
]



lots of potential here !
...a little tweeking with this screen, and some great short candidates pop up !
(I weeded out the low volume, and get rid of the pennies, and straight to the bank !
... let me know if this works for you ....

Cacher
121 posts
msg #79155
Ignore Cacher
9/13/2009 11:03:25 PM

Yah know, I looked at you code ... and so very close ... here is the corrected version :

Fetcher[

not otcbb
avgvol(90) > 500000

set{75pct,.75}
set{v90,avgvol(90)}
set{v90times75pct,v90 * 75pct}
set{v90plus75,v90 plus v90times75pct}


set{timeslast5days,count(volume above v90plus75,5)}
set{today,count(volume above v90plus75,1)}

/* and here is the only line needing correction */
timeslast5days IS GREATER THEN 0


add column average volume(90)
add column v90plus75
add column today
add column timeslast5days

do not draw average volume(10)
do not draw v90plus75
]



...
I like you use of the count. Well done !

ric3333
7 posts
msg #79158
Ignore ric3333
9/14/2009 1:02:28 AM

/*compare current x days average volume with y days average volume x days ago*/
set{x,5}
set{y,80}

/*total volume in x+y days*/
set{all, avgvol(85)*85}

/*total volume in current x days*/
set{current, AvgVol(5) *5}

/*total volume in y days x days ago*/
set{before, all - current}

/*average volume in y days x days ago*/
set{avg_before, before/80}

set{ratio, avgvol(5)/avg_before}
add column ratio

price is above 3
average volume(20) > 200000
ratio is above 1.75
sort column 5 ascending


chetron
2,817 posts
msg #79161
Ignore chetron
9/14/2009 6:49:33 AM

CLICKABLE...


Fetcher[
/*compare current x days average volume with y days average volume x days ago*/
set{x,5}
set{y,80}

/*total volume in x+y days*/
set{all, avgvol(85)*85}

/*total volume in current x days*/
set{current, AvgVol(5) *5}

/*total volume in y days x days ago*/
set{before, all - current}

/*average volume in y days x days ago*/
set{avg_before, before/80}

set{ratio, avgvol(5)/avg_before}
add column ratio

price is above 3
average volume(20) > 200000
ratio is above 1.75
sort column 5 ascending

]



Cacher
121 posts
msg #79166
Ignore Cacher
9/14/2009 8:36:57 AM

I revised my code to incorporate the sleeker count method (thanks) .... but surprisingly it dropped 2 stocks from the results ... it is only two ... Anyways ... I believe it gives rock solid results. Check it out:

Fetcher[
/* Volume 75% above average volume(90) within the last 5 days */
set{av90,average volume(90)}
set{abve75,av90*1.75}

set{highVOLin5days,count(volume greater then abve75,5)}

/* if highVOLin5days is greater then 0 then it happened */
show stocks where highVOLin5days is greater then 0

/* weed out the pennies and bring in some volume */
and price is greater then 5
and average volume(30) is greater then 150000

/* now test if OVERBOUGHT */
and Slow Stochastic(5,5) Fast %K is greater then 82

add column highVOLin5days
]



AdamW328
84 posts
msg #79246
Ignore AdamW328
9/14/2009 7:41:14 PM

Cacher and everyone else, thanks for your help

Here is my filter with some of the things you added. This is still in the works. I am also trying to get syntax for the following to add to the filter:

Show stocks where price is 1% less than or equal to the previous days close
and/or stocks where price is less than or equal to 1% above the previous days close

I am trying to catch shooting stars here but want my syntax to be more robust so that I am not only returning results for doji's as that would likely have very few returns (thus the 1% above or below previous days close syntax)

I use the filter when I believe the market is near a top. If you run the filter around 3 o'clock and the stock is trading just below the previous days close and you have somewhat of a doji forming at the top of what was a pretty good run for the last couple of days and strong volume, momentum is likely changing and you have a short candidate going into the next day. I usually place a stop slightly above the high of the day of entry.

Again, your help has been appreciated. Let me know your thoughts!


Show 5 day slope of DMA(28,-14)
and DMA(28,-14)is more than 3% below close
and EMA(13) is above DMA(28,-14)

and price near top linear regression line(100)
and price above 5.00

avgvol(90) > 300000

/* Volume 75% above average volume(90) within the last 5 days */
set{av90,average volume(90)}
set{abve75,av90*1.75}

set{highVOLin5days,count(volume greater then abve75,5)}

/* if highVOLin5days is greater then 0 then it happened */
show stocks where highVOLin5days is greater then 0

/* now test if OVERBOUGHT */
and Slow Stochastic(5,5) Fast %K is greater then 82

add column highVOLin5days


StockFetcher Forums · General Discussion · Simple Syntax help<< 1 2 3 >>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