StockFetcher Forums · General Discussion · If you could make ONE request for enhancement, what would that be?<< 1 2 3 4 >>Post Follow-up
fotchstecker
304 posts
msg #154500
Ignore fotchstecker
modified
10/29/2020 6:53:41 PM

Nibor, I could hardly ask you to spend your time trying, but this is the filter I had in mind. It's just a very slightly modified version of the "catalyst" filter.
Take for example TCON, which I think last appears on Sep 8. However, if you run the filter back in time from there, you will see TCON appear a number of times, and it has a significant runup in the prior weeks from its first appearance within the last three months. So, it would be useful to see, when running a filter on the latest date, if and how many times a symbol has appeared over the last X period. This is useful for a variety of reasons -- like knowing if a symbol is a "newcomer" or if a symbol is on a long stretch of appearances. It could be useful to get a full percent-change in price stat for the symbol, too, over the period. I have the enhanced/full SF subscription.

Anway, I don't expect you to try to work this out at all, but I did want to reply to share more of what I was thinking. Getting improved stats around a symbol in general would increase the power of SF a lot.

I would also add that SF could improve the ability to rank symbols and to track changes in rank -- like used in rotation models. But that's another thread for another time.

Fetcher[
/*This is the original Xalor filter
The catalyst filter.*/

average volume(5) > 100000
/*sector(medical)*/
/*market is ETF*/
and add column separator
and add column exchange
and add column sector
and add column industry
and add column separator



set{diff1,ma(5) - ma(10)}
set{diff2,ma(10) - ma(20)}

set{vol2,average volume(5) 5 days ago * 2}

set{var1,count(volume > vol2,1)}
set{var2,count(ma(5) increasing for last 3 days,1)}
set{var3,count(ma(10) increasing for last 3 days,1)}
set{var4,count(ma(20) increasing for last 3 days,1)}

set{var5,count(diff1 increasing for the last 2 days,1)}
set{var6,count(diff2 increasing for the last 2 days,1)}

set{var7,count(atr(30) 3 days ago < .2,1)}
set{var8,count(reached a new high 3-month high,1)}

set{buy1,var1 * var2}
set{buy2, buy1 * var3}
set{buy3, buy2 * var4}
set{buy4, buy3 * var5}
set{buy5, buy4 * var6}
set{buy6, buy5 * var7}
set{buy, buy6 * var8}
buy > 0
buy 1 day ago equals 0

/* Comment out the 2 lines above and uncomment the 2 lines below to see all hits within the last year */
/* chart-time is 14 months */
/* count(buy > 0,251) > 0 */

draw ma(5)
draw ma(10)
draw ma(20)
]





nibor100
1,046 posts
msg #154511
Ignore nibor100
10/31/2020 2:22:38 AM

@fotchstecker,

1. This was a very easy task as Xarlor had updated the "catalyst filter" back on May 11th in the "This might be impossible" thread with these 2 very important backtest lines:

count(buy > 0,251) > 0
count(buy 1 day ago equals 0,251) > 0

However, you must follow his instructions in the comment lines, to the letter, to get the historical results.

2, To see the backtest statistics for the past year in a column display change the first line above to

add column count(buy > 0,251) > 0

3. To get them sorted by most to least add this other line

sort on column 5 descending

Ed S.


Cheese
1,374 posts
msg #154512
Ignore Cheese
10/31/2020 12:19:45 PM

@nibor100
I'm impressed. You come up with solution so quickly,

@fotchstecker
If snappyfrog's DRAW CMA(PVI,22) is appended to Xarlor's filter with Ed's suggested solution,
then CMA(PVI,22) could show the way to a big opportunity for your TCON example around Jan 2019.

Just a thought.


fotchstecker
304 posts
msg #154517
Ignore fotchstecker
11/1/2020 1:34:01 PM

@nibor
How did I miss this?! Thank you so much for pointing it out for me -- it's exactly the thing I was wanting to add. Thank you, Nibor and Xarlor.

fotchstecker
304 posts
msg #154518
Ignore fotchstecker
11/1/2020 1:35:08 PM

Cheese -- you are a step ahead of me. I was thinking of adding the same thing but perhaps in a different way. I think your idea is better and will try snappy's code before testing mine. Thank you.

Cheese
1,374 posts
msg #154519
Ignore Cheese
11/1/2020 1:50:05 PM

@fotchstecker

You may also want to look at TCON and your other picks with snappyfrog's newer filter(s) here

https://www.stockfetcher.com/forums/Filter-Exchange/Weekly-and-Daily-MACD-on-Same-Graph/154365

You may want to use snappyfrog's filters to cast a bigger net for potential gains,
and use the Xarlor's filter that you mentioned above as confirmer in some cases.

It seems to me that there is synergy between the three moving averages in Xalor's filter
and the signals in the aforementioned snappyfrog's

Happy trading

nibor100
1,046 posts
msg #154537
Ignore nibor100
11/3/2020 2:06:48 PM

@fotchstecker,

When I run your filter, modified for backtest hit statistics it show only 2 hits in the last year for TCON, both are in September.

If I add the following line:

date offset is 11/3/2019

there are no TCON hits shown for the year prior to that date.
the same is true for each of these date replacements:

date offset is 11/3/2018
date offset is 11/3/2017
date offset is 11/14/2016

So I don't quite follow your post of 10/29 where you stated:

"which I think last appears on Sep 8. However, if you run the filter back in time from there, you will see TCON appear a number of times,"

Could you provide me some of those dates that this filter found TCON or maybe it was a different version of the filter?

Thanks,
Ed S.

fotchstecker
304 posts
msg #154539
Ignore fotchstecker
modified
11/3/2020 5:54:57 PM

@nibor
You are correct and you are experiencing the same issue I noticed in the last day or so. To explain the sequence, I used TCON as an example a couple of posts ago because I had recalled running the filter and noticed it occurring several (at least 3) times. At the time, I noted the percentage changes from day to day and had a significant runup. So, remembering this, I wrote my post here and used it as an example, however, I did not double-check at the time whether the same output would occur; I assumed it would.

However, the version of the filter I posted does as you said -- I can find only 2 TCON appearances now, like you. I'm not certain if I changed anything, but something must be different. I will try to modify the lines I typically shift around minimally to see if I can reproduce the original result.

I'll update here with any notable findings. Thanks for checking through things, nibor.

fotchstecker
304 posts
msg #154540
Ignore fotchstecker
11/3/2020 6:43:22 PM

@nibor (reply 2)
Incidentally, I don't think I had to comment-out and swap-in the lines as explained in the revised version. I think the following seems to work to get both the count and the current signal. Do you agree it makes sense?

Fetcher[

/*This is the original Xalor filter
The catalyst filter.*/
chart-time is 1 year

average volume(5) > 100000
/*sector(medical)*/
/*market is ETF*/
and add column separator
and add column exchange
and add column sector
and add column industry
and add column separator



set{diff1,ma(5) - ma(10)}
set{diff2,ma(10) - ma(20)}

set{vol2,average volume(5) 5 days ago * 2}

set{var1,count(volume > vol2,1)}
set{var2,count(ma(5) increasing for last 3 days,1)}
set{var3,count(ma(10) increasing for last 3 days,1)}
set{var4,count(ma(20) increasing for last 3 days,1)}

set{var5,count(diff1 increasing for the last 2 days,1)}
set{var6,count(diff2 increasing for the last 2 days,1)}

set{var7,count(atr(30) 3 days ago < .2,1)}
set{var8,count(reached a new high 3-month high,1)}

set{buy1,var1 * var2}
set{buy2, buy1 * var3}
set{buy3, buy2 * var4}
set{buy4, buy3 * var5}
set{buy5, buy4 * var6}
set{buy6, buy5 * var7}
set{buy, buy6 * var8}

buy > 0
buy 1 day ago equals 0

count(buy > 0,251) > 0
count(buy 1 day ago equals 0,251) > 0


add column count(buy > 0,251) > 0
DRAW CMA(PVI,22)



draw ma(5)
draw ma(10)
draw ma(20)
]



nibor100
1,046 posts
msg #154545
Ignore nibor100
11/4/2020 12:49:32 PM

If all you want are the latest day's hits and their historical counts for the past year, your new version will work fine.

Ed S.

StockFetcher Forums · General Discussion · If you could make ONE request for enhancement, what would that be?<< 1 2 3 4 >>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.