StockFetcher Forums · Filter Exchange · Key Reversals<< 1 2 3 4 >>Post Follow-up
TheRumpledOne
6,411 posts
msg #38738
Ignore TheRumpledOne
11/6/2005 7:57:01 PM

Based on TradeStation SHOW ME INDICATORS

Fetcher[
/* Key Reversal - Up */

low < low 1 day ago
close > close 1 day ago

CLOSE > 1
VOLUME > 1000000

/* PRICE CALCULATIONS */
set{CCb,days(close is above close 1 day ago,100)}
set{CCa,days(close is below close 1 day ago,100)}
set{ClxCl, CCa - CCb}

set{E5b,days(close is above ema(5),100)}
set{E5a,days(close is below ema(5),100)}
set{CxEma5, E5a - E5b}

/* EMA CROSSOVER CALCULATIONS */
set{E1326b,days(ema(13) is above ema(26),100)}
set{E1326b1, count(E1326b above -1 , 1)}
set{E1326b2, E1326b * E1326b1}
set{E1326a,days(ema(13) is below ema(26),100)}
set{E1326A1, count(E1326A above -1 , 1)}
set{E1326A2, E1326A * E1326A1}
set{E13xE26, E1326a2 - E1326b2}

/* VOLUME CALCULATIONS */
set{v, volume 1 day ago}
set{volinc, volume - v}
set{volpc, volinc / v}
set{volpct, volpc * 100}

set{VolZ, days(volume < 1,100)}
set{VolUp, days(volume is below volume 1 day ago,100)}
set{VolDn, days(volume is above volume 1 day ago,100)}
set{VlXvl, VolUp - VolDn}

set{vck1, volume 1 day ago }
set{vck, volume / vck1 }
set{vdbl, days(vck < 2, 100)}

and add column clxcl
and add column CxEma5
and add column E13xE26

and add column VlXvl
and add column Vdbl
and add column volpct

]





Fetcher[
/* Key Reversal - Down */

High > High 1 day ago
close < close 1 day ago

CLOSE > 1
VOLUME > 1000000

/* PRICE CALCULATIONS */
set{CCb,days(close is above close 1 day ago,100)}
set{CCa,days(close is below close 1 day ago,100)}
set{ClxCl, CCa - CCb}

set{E5b,days(close is above ema(5),100)}
set{E5a,days(close is below ema(5),100)}
set{CxEma5, E5a - E5b}

/* EMA CROSSOVER CALCULATIONS */
set{E1326b,days(ema(13) is above ema(26),100)}
set{E1326b1, count(E1326b above -1 , 1)}
set{E1326b2, E1326b * E1326b1}
set{E1326a,days(ema(13) is below ema(26),100)}
set{E1326A1, count(E1326A above -1 , 1)}
set{E1326A2, E1326A * E1326A1}
set{E13xE26, E1326a2 - E1326b2}

/* VOLUME CALCULATIONS */
set{v, volume 1 day ago}
set{volinc, volume - v}
set{volpc, volinc / v}
set{volpct, volpc * 100}

set{VolZ, days(volume < 1,100)}
set{VolUp, days(volume is below volume 1 day ago,100)}
set{VolDn, days(volume is above volume 1 day ago,100)}
set{VlXvl, VolUp - VolDn}

set{vck1, volume 1 day ago }
set{vck, volume / vck1 }
set{vdbl, days(vck < 2, 100)}

and add column clxcl
and add column CxEma5
and add column E13xE26

and add column VlXvl
and add column Vdbl
and add column volpct

]



MAY ALL YOUR FILLS BE COMPLETE.

Over and over again, in this newsletter or in any of our products I keep saying "make your goals smaller", "take one step at a time", "make $1,000 before you try to make $10,000", "you need to grow a little bit each day, "you don't have to get it right, you just have to get it going"... Mike Litman


alf44
2,025 posts
msg #38742
Ignore alf44
11/6/2005 9:42:38 PM

TRO,

I love the idea !

I love the filter !

The point(s) I would make about a TRUE "Key Reversal Day" are :

----------------------

* they should take place at a TOP or a BOTTOM !

* they should be a Wide Range Day (in fact Outside Days) and show Above Average Volume !

--------------------

* they should make a NEW High in an Uptrend !

* they should Open above the previous Close (make New High) and Close below the previous Low !

---------------------

* they should make a NEW Low in a Downtrend !

* they should Open below the previous Close (make New Low) and Close above the previous High !

----------------------

Now that's a TRUE "Key Reversal Day" !

Maybe I'm missing something here but...I'm not seeing all that with this filter. fwiw

Other than that...I love it !!! lol


Regards,

alf44


PS. Take a look at a 3 Month Daily Chart of WMT (just as an example). Look at the Sept. 22 '05 candle. That's a Key Reversal Day ! Now pullback to a 1 year chart and again look at that Sept. 22 candle ! Pretty cool example of what you're talking about ! imo

It marked the precise Bottom !







BFreshour
139 posts
msg #38749
Ignore BFreshour
11/7/2005 12:17:49 AM

Can you explain how to use this section of your filter? A lot of your filters seem to have this information and I don't quite understand it.

/* PRICE CALCULATIONS */
set{CCb,days(close is above close 1 day ago,100)}
set{CCa,days(close is below close 1 day ago,100)}
set{ClxCl, CCa - CCb}

set{E5b,days(close is above ema(5),100)}
set{E5a,days(close is below ema(5),100)}
set{CxEma5, E5a - E5b}

/* EMA CROSSOVER CALCULATIONS */
set{E1326b,days(ema(13) is above ema(26),100)}
set{E1326b1, count(E1326b above -1 , 1)}



TheRumpledOne
6,411 posts
msg #38755
Ignore TheRumpledOne
11/7/2005 7:24:42 AM

BFreshour 11/7/2005 12:17:49 AM

Can you explain how to use this section of your filter? A lot of your filters seem to have this information and I don't quite understand it.

/* PRICE CALCULATIONS */
set{CCb,days(close is above close 1 day ago,100)}
set{CCa,days(close is below close 1 day ago,100)}
set{ClxCl, CCa - CCb}

set{E5b,days(close is above ema(5),100)}
set{E5a,days(close is below ema(5),100)}
set{CxEma5, E5a - E5b}

/* EMA CROSSOVER CALCULATIONS */
set{E1326b,days(ema(13) is above ema(26),100)}
set{E1326b1, count(E1326b above -1 , 1)}


I am not sure what you mean ... how to use?

ClxCL displays the numbers of consecutive days close was above (+) or below (-) the previous day's close. A 5 in the ClxCL columns means the close closed higher than the previous day 5 days in a row. A -3 would indicate the close closed lower than the previous day for 3 days in a row.

It's the same for all the variables/columns I write that have the format AxB.

HTH.



TheRumpledOne
6,411 posts
msg #38756
Ignore TheRumpledOne
11/7/2005 7:25:36 AM

Alf44...

I just converted the TradeStation code "as is" into SF code.

I made NO ATTEMPT to modify how it works.




BFreshour
139 posts
msg #38759
Ignore BFreshour
11/7/2005 7:43:20 PM

Thanks TRO, that's exactly what I was looking for...


momarch
2 posts
msg #38764
Ignore momarch
11/8/2005 12:38:29 PM

ALF:

I noted that you said this filter doesn't seem to have all the signals of a true reversal that you'd look for. Do you have a SF filter that meets your criteria?

If so, we'd love to see it.



riggs
313 posts
msg #38767
Ignore riggs
11/8/2005 4:24:02 PM

momarch -

No, Ralph44 doesn't help others with filters. He just CRITICIZES others with thier's! And boy, when you do post a filter, you better spell it out right, or he'll spend an hour spell checking your post, i.e "yodel-Ay-Hee-Hoo!" LOL...I guess that Hooked-on-phonics software I bought him is starting to pay off. LOL....

THE MIGHTY RIGGS


alf44
2,025 posts
msg #38771
Ignore alf44
11/8/2005 6:57:52 PM

momarch,

The problem with "TRUE Key Reversal Days" is that you can never be sure you have one until later...sometimes much later...after the fact !

How do you REALLY know you have a TOP or a BOTTOM (as it's happening) ?

All of the criteria I listed in my above post are the widely acknowledged interpretation of what a "TRUE Key Reversal Day" should display. I was NOT in anyway being critical of TRO's filter and I don't think for one second that he took it that way. We're all adults here ! Well MOST of us are ! LOL

I will say that TRO's post did get me thinking a bit about these so-called Key Reversal Days and I have been playing around with some ideas...more as a filter writing challenge (just to see if I could do it) than anything else. Outside Days are something I like to watch anyway and as I said in my above post...TRUE Key Reversals should be Outside Days. My problem has been in trying to write a filter that will find these situations (with ALL the characteristics I mentioned) at both TOPS and BOTTOMS...AND...AND...to try to do it all within ONE FILTER. It has been a problem I have not yet solved !

I started out with the assumption that a "TOP" might be a stock that has reached a new 60 day HIGH...and a BOTTOM might be a stock that has reached a new 60 day LOW. Of course, this is just an assumption to work from. Ya gotta start somewhere !

Next, at a "TOP" I wanted a price bar that OPENED near the HIGH and CLOSED near the LOW (a DOWN Close)! Conversely, at a BOTTOM I wanted a price bar that OPENED near the LOW and CLOSED near the HIGH (an UP Close) ! I have been using Day Position commands for this and have run into problems trying to return BOTH situations.

Also, both of these (whether at a TOP or a BOTTOM) have to be Outside Days !

An increase in Volume on those days might also be something to look for !

It seems doable...and I have come very close. Of course, if "cegis" were here he could've prolly knocked this out in about 5 minutes or less. I'm still struggling with some of this logic stuff however...and, as yet have not been able to nail ALL the stuff down...and do it within the context of ONE filter !

So...I'm still working on this thing. Hopefully, I can figure a way to do it. I kinda blew up the first few attempts...started all over...and am now tinkering with this filter:

----------------------
Fetcher[/* EXPERIMENTAL Key Reversal Days */

set{upcl, count(Close above Open, 1)}
set{dncl, count(Close below Open, 1)}

set{x, count(High reached a new 60 day High, 1)}
set{y, count(Low reached a new 60 day Low, 1)}
set{z, x + y}

Show all stocks where z is above 0 and
High is above High 1 day ago and
Low is below Low 1 day ago and
Price is above 10 and
Average Volume(65) is above 500000

draw EMA(10)
draw EMA(30)
draw EMA(150)

add column x {60d-hi}
add column dncl
add column y {60d-lo}
add column upcl

chart-time is 3 Months
]



----------------------

It WILL find Key Reversal Days but...

It's not finished. It's a work in progress.

It requires ALL returned symbols be EITHER at a 60 day HIGH or a 60 day LOW !

It gives column info to identify which symbols ARE at 60 day HIGHS/LOWS !

It doesn't address the Day Position conundrum ! Still working on that.

It also doesn't INSIST that 60 day HIGHS be DOWN days or that 60 day LOWS be UP days !

It DOES however give column info as to whether they Closed UP/DOWN !

And...of course, all returned symbols made Outside Days on that day !

That's it !

That's what I got so far ! fwiw


Regards,

alf44






riggs
313 posts
msg #38775
Ignore riggs
11/8/2005 8:30:19 PM

WOW!!! If this is a work in progress, then I'm a monkees uncle. I didn't know you had it in you. Even I have to say "sweet job alf44." I'm going to play with this myself tonight just to see what's missing, but from the looks of it, I can't imagine improving upon it. My hats off to you alf44, I hope you can finish this soon man. BTW, was Sunday night fun or what? LOL...

RIGGS


StockFetcher Forums · Filter Exchange · Key Reversals<< 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.