StockFetcher Forums · Filter Exchange · Double Inside Days<< >>Post Follow-up
nsusa
11 posts
msg #122178
Ignore nsusa
12/8/2014 10:20:20 PM

I am using the inside days trading strategy, but seem to be missing out some really solid trades because the list per day can be quite long. I had success when finding double inside days (2 Consecutive Inside Days/Shark), but those do not happen too often and it is sad to see those trades in hindsight.

http://forums.stockfetcher.com/sfforums/?q=view&fid=1002&tid=38839&qrid=

I am using alf's Range Contraction Expansion filter, but are getting too much data. He has this implemented into his query. However, when I try to isolate it my queries do not work. Then I tried a single inside day scan, but I guess my coding skills would never put food on the plate for my family.

Any help to get a query written for a double inside day would be really appreciated. Here is the single inside day query. How would I be able to scan for two inside days in a row?

/* inside day low/high*/

set{xtop1, max( high 1 day ago, low 1 day ago) }
set{xbottom1, min( high 1 day ago, low 1 day ago) }

set{xtop, max( high , low ) }
set{xbottom, min( high , low ) }

xtop < xtop1
xbottom > xbottom1

high above 20







Kevin_in_GA
4,547 posts
msg #122179
Ignore Kevin_in_GA
12/8/2014 10:31:44 PM

/* inside day low/high*/

set{xtop1, max( high 1 day ago, low 1 day ago) } when would this EVER be anything other than the high?
set{xbottom1, min( high 1 day ago, low 1 day ago) } same issue - always will be the low

set{xtop, max( high , low ) }
set{xbottom, min( high , low ) }

xtop < xtop1
xbottom > xbottom1

high above 20

+++++++++++

Try something like this (this assumes I get the double inside day concept right):

Fetcher[

high above 20
average volume(30) above 250000
high below high 1 day ago
high 1 day ago below high 2 days ago

low above low 1 day ago
low 1 day ago above low 2 days ago
]



another approach is to look at the range (high - low) and look for a new low in that variable (implying a strong range contraction):

Fetcher[

set{range, high - low}
average volume(30) above 250000
range reached a new 20 day low
]



or try to combine them?

Fetcher[

high above 20
average volume(30) above 250000
high below high 1 day ago
high 1 day ago below high 2 days ago

low above low 1 day ago
low 1 day ago above low 2 days ago

set{range, high - low}
range reached a new 20 day low

]




heypa
283 posts
msg #122184
Ignore heypa
12/9/2014 12:40:11 PM

Keven. I''m not a coder since I work visually off the charts . If I were a coder with this question I would use candle body highs and lows to keep the down candles from messing things up.

stratiG
147 posts
msg #122187
Ignore stratiG
12/9/2014 2:21:14 PM

Someone posted this on here a while ago.



/* Inside Days that are also EITHER NR4s OR NR7s */

/* Inside Days (H/L Range inside H/L Range 1 day ago) */
set{IDhi, count(High below High 1 day ago, 1)}
set{IDlo, count(Low above Low 1 day ago, 1)}
set{ID, IDhi * IDlo}

/* --------------------------------------------- */

/* Inside Day NR4s (Inside Day with Narrowist Range of the last 4 days) */
set{NR4, count(Day Point Range reached a new 4 day Low, 1)}
set{IdNr4s, ID * NR4}

/* Inside Day NR7s (Inside Day with Narrowist Range of the last 7 days) */
set{NR7, count(Day Point Range reached a new 7 day Low, 1)}
set{IdNr7s, ID * NR7}

/* ------------------------------------------- */

/* Pattern Fetcher */
set{A1, IdNr4s + IdNr7s}


Show stocks where A1 is greater than 0

price above 30
average day volume(30) above 700000

add column ID
add column NR4
add column NR7

draw EMA(9)
draw EMA(20)
draw MA(50)


nsusa
11 posts
msg #122199
Ignore nsusa
12/10/2014 8:51:11 PM

Kevin - thank you so much. The first code you posted does the trick. Again, thank you so much - not just for your help here, but in general. I learned so much from your postings here and several of your filters are so helpful. It is really appreciated!!! I hope I can give back the same way one day or buy you beer or so.

Chris

Kevin_in_GA
4,547 posts
msg #122213
Ignore Kevin_in_GA
12/11/2014 9:44:13 PM

I do accept payment in beer. However in this case I'm sufficiently compensated knowing that it helps you out.

I will say that you should be looking at some of Tony Crabel's N4 and N7 + inside day stuff (you will see that in the other post responding to you original question). My catch has been that while this usually leads to a breakout play, I can never tell in which direction.

four
3,998 posts
msg #122214
Ignore four
12/11/2014 10:02:01 PM

http://paststat.com/stock-screener/nr7-inside-day/

StockFetcher Forums · Filter Exchange · Double Inside Days<< >>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