StockFetcher Forums · General Discussion · MACD Crossover expression<< >>Post Follow-up
mktmole
325 posts
msg #105720
Ignore mktmole
3/28/2012 12:28:05 PM

Help with the following set-days-since expression would be much appreciated.
tks kindly! mm

MACD fast line(12,26,9) crossed below MACD slow line(12,26,9) for the 1st time since MACD slow line(12,26,9) crossed above 0 and MACD slow line(12,26,9) above 0.

fortyfour
185 posts
msg #105726
Ignore fortyfour
modified
3/28/2012 7:35:31 PM

I have found it difficult in SF to do this type of "pattern" filter.
Is it called the 1,2,3 or ABC pattern?
Basically a downtrend/correction ends and a trend change is
possible because a swing high occured followed by a retracement that does
not take out the previous low? Is this what you are trying to find?

If this is what you are looking for ( I am) maybe others could share similar code.
(This isnt an edge or secret that will go away). I could also put some more
efforts into this idea too. "Four" are you out there?

A perfect example for me would be ISRG and TMF a couple years ago for major trend reversals
and of course everday "good" stocks making HH and HL (or shorts) occur.

This would truly be a filter, not a system, where entries and exits are left to the user.

anyway....maybe this helps.

Fetcher[close > 5
avg vol(90) > 100000

set{x, days(MACD slow line(12,26,9) crossed above 0 ,20)}
set{y, days(MACD fast line(12,26,9) crossed below MACD slow line(12,26,9),2)}

/*macd crossed above 0 only once in 20 days. Change the number of days to suity your needs*/
count( macd slow line(12,26,9) crossed above 0,20) is between 0 and 2

days(MACD slow line(12,26,9) crossed above 0 ,20) is above
days(MACD fast line(12,26,9) crossed below MACD slow line(12,26,9),1)

/* must have the following statement to ensure fast line and slow line crosseover did indeed occur*/
and days(MACD fast line(12,26,9) crossed below MACD slow line(12,26,9),20) is above -1

and MACD slow line(12,26,9) above 0 and
low 20 day low is above low 20 day low 20 days ago


Y > -1
do not draw y
]




mktmole
325 posts
msg #105727
Ignore mktmole
3/28/2012 9:01:46 PM

44 and tks for your reply

am not really looking for the ABC as u mention (FYI see here for more on that subject.)
http://forums.stockfetcher.com/sfforums/?q=view&tid=72713&start=80&isiframe=
but the "impulse wave" of AB only. Check out EL and CSE today with yours above.
Would really like to incorporate a variation of "days since" using Chetron's 'count the days yourself '
http://forums.stockfetcher.com/sfforums/?qrid=1332925329&mid=87147&isiframe=
This will prevent set limitation restrictions on the whole filter so that basic users can enjoy the filter as its furthercomplied.

thoughts from all are appreciated

tks again rgds
mm

StockFetcher Forums · General Discussion · MACD Crossover expression<< >>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