StockFetcher Forums · Filter Exchange · Niko's MAX (Moving Average Crossover) Filter<< 1 2 3 4 5 ... 7 >>Post Follow-up
nikoschopen
2,824 posts
msg #60058
Ignore nikoschopen
2/29/2008 2:51:11 AM

marine2,

This filter is meant to be used in conjunction with ure existing filter. Let me know if you run into any problem or something new altogether.

WALLSTREETGENIUS
983 posts
msg #60096
Ignore WALLSTREETGENIUS
3/1/2008 5:01:19 PM

I too would have to agree...very nice filter Niko!...very nice indeed.

nikoschopen
2,824 posts
msg #60098
Ignore nikoschopen
3/1/2008 5:32:55 PM

Geezus, Riggs, where the hell ya been? This forum practically came to a screeching halt without ure presence. Needless to say, welcome back!

BTW thanks for the compliment.

nikoschopen
2,824 posts
msg #60099
Ignore nikoschopen
3/1/2008 6:57:30 PM

Okie, allow me to reveal another hidden secret as a "welcome back" gesture for my one-time nemesis (lol, just kiddin'). I have yet to backtest this strategy but it works quite well in practice. I welcome any constructive criticism.

Here are the details. I'll lay out the specifics for the downtrend first since we're in the midst of a bear market. You need only reverse the parameters for the uptrend.

DOWNTREND

1. Yesterday's "return" value must cross above 70.
2. Today's "return" value must cross back down below 60.
3. Today's "TSI6" and "D2/T3" values must be -1.

What ure looking for is a 1-day flip of the "return" line.



nikoschopen
2,824 posts
msg #60100
Ignore nikoschopen
modified
3/1/2008 7:07:06 PM

Here's the revised filter that reflects the pointers mentioned above. Note: Use only for stocks that are currently in a DOWNTREND.

MAX Down

Fetcher[
add column separator
set{OVER, count(TSI(6,3,3) crossed above 0,1) *1}
set{UNDER, count(TSI(6,3,3) crossed below 0,1) * -1}
set{both2, OVER + UNDER}
set{CROSS, 1 - count(both2 equals 0,1)}
CROSS above 0
add column both2{TSI6}

set{var1, 2 * EMA(9)}
set{var2, cema(ema(9),9)}
set{DEMA, var1 - var2}
set{TEMA, T3(7,1)}
set{xUP, count(DEMA crossed above TEMA,1) *1}
set{xDOWN, count(DEMA crossed below TEMA,1) * -1}
set{both, xUP + xDOWN}
set{xOVER, 1 - count(both equals 0,1)}
xOVER above 0
add column both{D2/T3}

price above 20
avgvol(17) above 300000

return 1 day ago crossed above 70 and return below 60

add column separator
/*close position within a 1-month price range*/
set{hi1mo,high 1 month high}
set{lo1mo,low 1 month low}
set{cllo1mo,close - lo1mo}
set{hilo1mo,hi1mo - lo1mo}
set{diff1,cllo1mo / hilo1mo}
set{%gain1mo,diff1 * 100}

/*close position within a 2-month price range*/
set{hi2mo,high 1 month high 1 month ago}
set{lo2mo,low 1 month low 1 month ago}
set{cllo2mo,close 1 month ago - lo2mo}
set{hilo2mo,hi2mo - lo2mo}
set{diff2,cllo2mo / hilo2mo}
set{%gain2mo,diff2 * 100}

/*close position within a 3-month price range*/
set{hi3mo,high 1 month high 2 month ago}
set{lo3mo,low 1 month low 2 month ago}
set{cllo3mo,close 2 months ago - lo3mo}
set{hilo3mo,hi3mo - lo3mo}
set{diff3,cllo3mo / hilo3mo}
set{%gain3mo,diff3 * 100}

/*EMA calc.*/
set{return1,%gain2mo + %gain3mo}
set{return2,return1 / 2}
set{return3,%gain1mo - return2}
set{return4,return3 * 0.6667}
set{return,return4 + return2}
add column return 1 day ago{return(-1)}
add column return
add column separator

draw T3(14,0.5)
draw TEMA on plot price
draw DEMA on plot price
draw TSI(6,3,3)
draw return line at 70
draw return line at 30
do not draw CROSS
do not draw xOVER
]



WALLSTREETGENIUS
983 posts
msg #60105
Ignore WALLSTREETGENIUS
3/1/2008 10:49:35 PM

Geezus, Riggs, where the hell ya been? This forum practically came to a screeching halt without ure presence. Needless to say, welcome back!

BTW thanks for the compliment.
__________________________

What?...are you kidding me? This place has never been better! Thanks for the welcome back, but I never left...just no reason to post anymore...my Dominating filters is all I need! lol...(wink) Again thanks, and this really is incredible work you have done with this one.

RIGGS



vic1
21 posts
msg #60148
Ignore vic1
3/3/2008 6:09:21 PM

Niko,
Very nice code! I'm just learning and it's going to take me a while to
really understand it fully so before this post gets to old could you highlight
the paramater changes need for the up trend?

Much Thanks,

Vic

nikoschopen
2,824 posts
msg #60152
Ignore nikoschopen
modified
3/3/2008 7:35:33 PM

Hey Vic, here's the rundown for both uptrend and downtrend

UPTREND
  1. Yesterday's "return" value must cross below 30.
  2. Today's "return" value must cross back up above 40.
  3. Today's "TSI6" and "D2/T3" values must be +1.

DOWNTREND
  1. Yesterday's "return" value must cross above 70.
  2. Today's "return" value must cross back down below 60.
  3. Today's "TSI6" and "D2/T3" values must be -1.


nikoschopen
2,824 posts
msg #60153
Ignore nikoschopen
3/3/2008 7:44:05 PM

WITH THE EXCEPTION OF COMMODITIES (GOLD, OIL AND AGRICULTURE), NOTE THAT THE REST OF THE MARKET IS CURRENTLY IN A DOWNTREND. YOU SHOULD USE THE UPTREND MAX FILTER ONLY WHEN THE RESPECTIVE SECTOR OR THE GENERAL MARKET IS BULLISH.

MAX Up

Fetcher[
add column separator
set{OVER, count(TSI(6,3,3) crossed above 0,1) *1}
set{UNDER, count(TSI(6,3,3) crossed below 0,1) * -1}
set{both2, OVER + UNDER}
set{CROSS, 1 - count(both2 equals 0,1)}
CROSS above 0
add column both2{TSI6}

set{var1, 2 * EMA(9)}
set{var2, cema(ema(9),9)}
set{DEMA, var1 - var2}
set{TEMA, T3(7,1)}
set{xUP, count(DEMA crossed above TEMA,1) *1}
set{xDOWN, count(DEMA crossed below TEMA,1) * -1}
set{both, xUP + xDOWN}
set{xOVER, 1 - count(both equals 0,1)}
xOVER above 0
add column both{D2/T3}

price above 20
avgvol(17) above 300000

return 1 day ago crossed below 30 and return above 40

add column separator
/*close position within a 1-month price range*/
set{hi1mo,high 1 month high}
set{lo1mo,low 1 month low}
set{cllo1mo,close - lo1mo}
set{hilo1mo,hi1mo - lo1mo}
set{diff1,cllo1mo / hilo1mo}
set{%gain1mo,diff1 * 100}

/*close position within a 2-month price range*/
set{hi2mo,high 1 month high 1 month ago}
set{lo2mo,low 1 month low 1 month ago}
set{cllo2mo,close 1 month ago - lo2mo}
set{hilo2mo,hi2mo - lo2mo}
set{diff2,cllo2mo / hilo2mo}
set{%gain2mo,diff2 * 100}

/*close position within a 3-month price range*/
set{hi3mo,high 1 month high 2 month ago}
set{lo3mo,low 1 month low 2 month ago}
set{cllo3mo,close 2 months ago - lo3mo}
set{hilo3mo,hi3mo - lo3mo}
set{diff3,cllo3mo / hilo3mo}
set{%gain3mo,diff3 * 100}

/*EMA calc.*/
set{return1,%gain2mo + %gain3mo}
set{return2,return1 / 2}
set{return3,%gain1mo - return2}
set{return4,return3 * 0.6667}
set{return,return4 + return2}
add column return 1 day ago{return(-1)}
add column return
add column separator

draw T3(14,0.5)
draw TEMA on plot price
draw DEMA on plot price
draw TSI(6,3,3)
draw return line at 70
draw return line at 30
do not draw CROSS
do not draw xOVER
]



vic1
21 posts
msg #60171
Ignore vic1
3/4/2008 9:39:05 AM

Niko,
Thanks for the follow up. Keep up the good work.

Vic

StockFetcher Forums · Filter Exchange · Niko's MAX (Moving Average Crossover) Filter<< 1 2 3 4 5 ... 7 >>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