StockFetcher Forums · Filter Exchange · Syntax Help<< >>Post Follow-up
snappyfrog
651 posts
msg #154798
Ignore snappyfrog
12/3/2020 11:40:14 AM

This filter works well until I employ the commented out section. I can't figure out why. Any help is appreciated.

Fetcher[
market is not etf
market is not otcbb
average volume (30) > 500000
price between .1 and 3
draw ema(13)
draw ema(30)
and shares outstanding < 20000000
add column shares outstanding


draw high 4 week high
draw low 4 week low

Set{cdm_7,count( cma(DMA(7,-5),7) > cma(DMA(7,-5),7) 1day ago,1)}
do not draw dma(7,-5,7)


set{c_13, count (close > ema(13),1)}
set{c_30, count (close > ema(30),1)}
set{rs_53, count (rsi(14) > 53,1)}

set{pvi_22, count (pvi > pvi 22 day low, 1)}

set{wk1,cema(close,15)}
set{wk2,cema(close,50)}
set{Weekly_MACD,wk1 - wk2}

set{dy1,cema(close,3)}
set{dy2,cema(close,10)}
set{Daily_MACD,dy1 - dy2}

set{Weekly_and_Daily_MACD,Weekly_MACD + Daily_MACD}

set{wd_up, count (Weekly_and_Daily_MACD > Weekly_MACD,1)}

/*set{var1, (cdm_7 + c_13)}
set{var2, (c_30 + rs_53)}
set{var3, (pvi_22 + wd_up)}
set{var4, (var1 + var2)}
set{var5, (var3 + var4)}
draw var5*/

draw cdm_7 > .99
draw cdm_7 1 day ago < .99
draw c_13
draw c_30
draw rs_53
draw pvi_22
draw wd_up

draw Weekly_and_Daily_MACD
draw Weekly_MACD on plot Weekly_and_Daily_MACD
draw Weekly_and_Daily_MACD line at 0

and draw rsi(14) line at 53
draw pvi 22 day low on plot pvi

draw Stochastic %K(20,20,2)
draw Stochastic %K(40,40,4)
]



Cheese
1,374 posts
msg #154801
Ignore Cheese
12/3/2020 12:54:44 PM

Here we go

Fetcher[


market is not etf
market is not otcbb
average volume (30) > 500000
price between .1 and 3
draw ema(13)
draw ema(30)
and shares outstanding < 20000000
add column shares outstanding


draw high 4 week high
draw low 4 week low

Set{cdm_7,count( cma(DMA(7,-5),7) > cma(DMA(7,-5),7) 1day ago,1)}
do not draw dma(7,-5,7)


set{c_13, count (close > ema(13),1)}
set{c_30, count (close > ema(30),1)}
set{rs_53, count (rsi(14) > 53,1)}

set{pvi_22, count (pvi > pvi 22 day low, 1)}

set{wk1,cema(close,15)}
set{wk2,cema(close,50)}
set{Weekly_MACD,wk1 - wk2}

set{dy1,cema(close,3)}
set{dy2,cema(close,10)}
set{Daily_MACD,dy1 - dy2}

set{Weekly_and_Daily_MACD,Weekly_MACD + Daily_MACD}

set{wd_up, count (Weekly_and_Daily_MACD > Weekly_MACD,1)}



/* ************************************************* */

/* --------------------------------------- snappy original */
/*
set{var1, (cdm_7 + c_13)}
set{var2, (c_30 + rs_53)}
set{var3, (pvi_22 + wd_up)}
set{var4, (var1 + var2)}
set{var5, (var3 + var4)}
draw var5
*/

/* --------------------------------------- suggestion */
set{var1, cdm_7 + c_13 }
set{var2, c_30 + rs_53 }
set{var3, pvi_22 + wd_up }
set{var4, var1 + var2 }
set{var5, var3 + var4 }
draw var5

/* ************************************************* */



draw cdm_7 > .99
draw cdm_7 1 day ago < .99
draw c_13
draw c_30
draw rs_53
draw pvi_22
draw wd_up

draw Weekly_and_Daily_MACD
draw Weekly_MACD on plot Weekly_and_Daily_MACD
draw Weekly_and_Daily_MACD line at 0

and draw rsi(14) line at 53
draw pvi 22 day low on plot pvi

draw Stochastic %K(20,20,2)
draw Stochastic %K(40,40,4)
]



Cheese
1,374 posts
msg #154805
Ignore Cheese
12/3/2020 3:50:10 PM

snappy,
Your parentheses should have worked.
Anyway, thank you for the expansion of an existing great filter.

snappyfrog
651 posts
msg #154807
Ignore snappyfrog
12/3/2020 5:49:45 PM

I thought the parentheses would work also. Hmm.

This takes all of my main individual scans and puts them in one place. The objective is this scan becomes my watchlist for penny stocks and for optionable stocks in another scan. I am looking to buy anytime between 2 and 5 signals for swing trades.


Cheese
1,374 posts
msg #154808
Ignore Cheese
12/3/2020 7:59:42 PM

Thanks again, snappy.
To me, your combined filter shows its great value best with stuff like XLE.
A big question for me is still position sizing, money management risk reward
How much can I trust it as a rotation/ reversal signal
How do I know that the trend has truly reversed,
given all the macroeconomic and political headwinds?

Fetcher[
SYMLIST(XLE)
chart-time 24 months

/* market is not etf */
market is not otcbb
average volume (30) > 500000
/* price between .1 and 3 */
draw ema(13)
draw ema(30)
and shares outstanding < 20000000
add column shares outstanding


draw high 4 week high
draw low 4 week low

Set{cdm_7,count( cma(DMA(7,-5),7) > cma(DMA(7,-5),7) 1day ago,1)}
do not draw dma(7,-5,7)


set{c_13, count (close > ema(13),1)}
set{c_30, count (close > ema(30),1)}
set{rs_53, count (rsi(14) > 53,1)}

set{pvi_22, count (pvi > pvi 22 day low, 1)}

set{wk1,cema(close,15)}
set{wk2,cema(close,50)}
set{Weekly_MACD,wk1 - wk2}

set{dy1,cema(close,3)}
set{dy2,cema(close,10)}
set{Daily_MACD,dy1 - dy2}

set{Weekly_and_Daily_MACD,Weekly_MACD + Daily_MACD}

set{wd_up, count (Weekly_and_Daily_MACD > Weekly_MACD,1)}



/* ************************************************* */

/* --------------------------------------- snappy original */
/*
set{var1, (cdm_7 + c_13)}
set{var2, (c_30 + rs_53)}
set{var3, (pvi_22 + wd_up)}
set{var4, (var1 + var2)}
set{var5, (var3 + var4)}
draw var5
*/

/* --------------------------------------- suggestion */
set{var1, cdm_7 + c_13 }
set{var2, c_30 + rs_53 }
set{var3, pvi_22 + wd_up }
set{var4, var1 + var2 }
set{var5, var3 + var4 }
draw var5

/* ************************************************* */



draw cdm_7 > .99
draw cdm_7 1 day ago < .99
draw c_13
draw c_30
draw rs_53
draw pvi_22
draw wd_up

draw Weekly_and_Daily_MACD
draw Weekly_MACD on plot Weekly_and_Daily_MACD
draw Weekly_and_Daily_MACD line at 0

and draw rsi(14) line at 53
draw pvi 22 day low on plot pvi

draw Stochastic %K(20,20,2)
draw Stochastic %K(40,40,4)
]




snappyfrog
651 posts
msg #154812
Ignore snappyfrog
12/3/2020 9:50:46 PM

We will never know 100%. That is why cutting losses, position sizing, etc is so important. Took me time to learn that. I thought I had the tiger by the tail for a year or so until he turned and bit me.

Lessons well learned.

Mactheriverrat
3,132 posts
msg #154813
Ignore Mactheriverrat
12/3/2020 9:57:50 PM

Using a stop loss sell order can help too.
Depends what your loss tolerance is.
Can be a price crossing below a certain MA or EMA.

Cheese
1,374 posts
msg #154818
Ignore Cheese
12/3/2020 10:28:37 PM

snappy and Mac, THANK YOU.
I am still learning !


snappyfrog
651 posts
msg #154821
Ignore snappyfrog
12/4/2020 6:26:34 AM

To anyone that sees this scan:

Please take note, this is not something you can just plug in and buy the stocks just because it pops up on the scan. I have traded off of each of these signals, except the RSI for a year to five years. I now have them all together in one place to give me a range of a buying area. The real key to the signals is to then understand what the 2 Stochastic oscillators are saying. The oscillators are subjective, meaning you have to look at hundreds if not thousands of charts to really understand what I am seeing. Please don't just run this off the signals, learn the Stochastics.

StockFetcher Forums · Filter Exchange · Syntax Help<< >>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 2022 - 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


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.