StockFetcher Forums · General Discussion · Is there a bug in the donchian fx?<< 1 2 >>Post Follow-up
Solomon8
7 posts
msg #157207
Ignore Solomon8
7/10/2021 5:26:36 PM

When I get results for a scan using the donchian fx I seam to get incomplete results. If I scan for breakouts above, say, a 30 day donchian channel, I will get some results but it seems to leave out some equities that fullfill this parameter.

Any ideas?

nibor100
1,031 posts
msg #157208
Ignore nibor100
7/10/2021 6:55:32 PM

1. You are not providing the merry band of SF filter detectives much info to make an assessment.

a. like what stocks you think meet the breakout requirement that are not showing up in your filter results.

b. what your filter code looks like

c. what offset you are using in donchian band command

d. what stock parameter you are applying/comparing the donchian band command to high, close, etc.

2. The following statement added to your filter might help you figure out what SF is calculating:

add column close minus upper Donchian Band(30,1) (I'm using Close and 1 day offset)

Ed S.





Solomon8
7 posts
msg #157217
Ignore Solomon8
7/12/2021 11:11:59 PM

Thanks you so much for the reply and forgive the sketchiness of my post. I will try to provide more info:

a. what stocks you think meet the breakout requirement that are not showing up in your filter results: Today ALB broke above the 62 day donchian channel yet does not appear when I run the code in "b" below. No doubt there are many others but that is none I can provide.

b. what your filter code looks like:
close crossed above the upper Donchian Band(62,1)
set{x, count(close crossed above the upper Donchian Band(62,1) ,1)}
set{how_many, sum(x,62)}

add column how_many
+DI(62) > -DI(62)
avg vol(90) > 250000
close > 5
sort column 5 ascending


c. what offset you are using in donchian band command
Not sure I can answer that but assume my code answers it.

d. what stock parameter you are applying/comparing the donchian band command to high, close, etc.
See code above


styliten
294 posts
msg #157219
Ignore styliten
modified
7/13/2021 12:37:20 AM

@ Soloman8

Got 66 tickers including ALB:

Fetcher[show stocks where avg vol(90) > 250000
and close > 5
and count(close crossed above upper Donchian Band(62, 1), 1) > 0.5
and +DI(62) > -DI(62)

DO NOT DRAW count(close crossed above upper Donchian Band(62, 1), 1)
draw upper Donchian Band(62, 1)

draw +DI(62) on plot -DI(62)
]



Donchian62

Solomon8
7 posts
msg #157418
Ignore Solomon8
modified
8/23/2021 6:08:21 AM

I seem to have another example of the scan not working. NIB has a 62 day breakout on 8/17 but does not come up in my 62 day donchian scan. Any ideas?

styliten
294 posts
msg #157420
Ignore styliten
modified
8/23/2021 6:42:57 PM

Hey Soloman8,

You can add one line to the original filter, which is:

date offset is 4

Then the filter result will be as of 8/17/21 (since today is 8/23/21, 4 trading days later).

Choose "check filter for symbol":

Check-Filter

enter "NIB" in the box, and the check result shows:

NIB-2021-0817
img upload site


So if you lower the threshold on the avg vol(90) from 250000 to 20000, you should see NIB. Yeah, avg vol for NIB is that low.

PS

I have count(volume 1 day ago < 250000, 30) < 5 in ALL of my filters, just to avoid as much as humanly possible those tickers that are too fishy (say reddit or Robinhood groups intentionally or inadvertently started yet another round of pump and dump game--no time to read any of their new aspirations, so better just to avoid the 'crowd funding/frenzy' altogether, IMHO.)

Cheese
1,374 posts
msg #157421
Ignore Cheese
modified
8/23/2021 7:56:54 PM

https://www.stockfetcher.com/sfforums/?f=General-Discussion&tid=157207&showall=1

@styliten
You are a genius.

Solomon8
7 posts
msg #157423
Ignore Solomon8
8/24/2021 2:06:53 AM

@styliten...As always, thanks for such a prompt and succinct reply. I am feeling guilty for not figuring that one out on my own without bugging you.

One other issue I am having is that when I try to extend the period above 250 (I have tried 300 and 500) my results are no good. What am I missing?

nibor100
1,031 posts
msg #157424
Ignore nibor100
8/24/2021 10:26:52 AM

@solomon8,

Generally, in SF 252 is the maximum lookback number you can use in a filter for any indicator.

Some of the workarounds are:

a. to use the offset command in your filter to have it start its lookback from a point X days in the past.

b. use the date offset command for example "date offset is 1/15/2020"

c. use the date box that appears above your filter results web page, to step thru history one day at a time, or by SF chosen increments, or up to 999 days in the custom Date Offset box at the bottom.

Ed S.

Solomon8
7 posts
msg #158730
Ignore Solomon8
3/4/2022 10:42:21 PM

I still am not lacking confidence in my donchian scan - see below. BCI is at a new 250 day high but SF does not pick it up. Any ideas?

show stocks where avg vol(90) > 250000
and close > 5
and count(close crossed above upper Donchian Band(250, 1), 1) > 0.5

DO NOT DRAW count(close crossed above upper Donchian Band(250, 1), 1)
draw upper Donchian Band(250, 1)

set{x, count(close crossed above the upper Donchian Band(250,1) ,1)}
set{how_many, sum(x,250)}

add column how_many
sort column 5 ascending

StockFetcher Forums · General Discussion · Is there a bug in the donchian fx?<< 1 2 >>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.