You are on page 1of 4

The Trend Template is a set of selection criteria by Market Wizard Mark Minervini.

Here are the rules:

1. The current stock price is above both the 150-day (30-week) and the 200-day (40-week) moving average price lines.
2. The 150-day moving average is above the 200-day moving average.
3. The 200-day moving average line is trending up for at least 1 month (preferably 45 months minimum in most cases).
4. The 50-day (10-week) moving average is above both the 150-day and 200-day moving averages.
5. The current stock price is trading above the 50-day moving average.
6. The current stock price is at least 30 percent above its 52-week low. (Many of the best selections will be 100 percent,
300 percent, or greater above their 52-week low before they emerge from a solid consolidation period and mount a large
scale advance.)
7. The current stock price is within at least 25 percent of its 52-week high (the closer to a new high the better).
8. The relative strength ranking (as reported in Investors Business Daily) is no less than 70, and preferably in the 80s or
90s, which will generally be the case with the better selections.

StockFetcher Code:

Close is above MA(50)


MA(50) is above MA(150)
MA(150) is above MA(200)
MA(200) is increasing for 1 month
Close divided by 260 day low is above 1.3
Close divided by 260 day high is above 0.75
Relative strength(^SPX,90) is above 1.0

10/20/2016 11:58:51 PM

Unfortunately, your RS formula is not correct. In fact, the IBD RS rating depends on the info in their database so you
cannot replicate it here. I recommend you use the OBV oscillator to look for divergence instead.

Fetcher[Close > MA(50)


MA(50) > MA(150)
MA(150) > MA(200)
MA(200) increasing for 60 days
Close / Donchian Lower Band(250,4)> 1.3
Close / Donchian Upper Band(250,4) > 0.75
Close > 5
Chart-time 2 years
Set{OBV_Index,CMA(OBV,5)*5}
20 day slope OBV_Index > 0
20 day slope Close < 0
Do not draw Donchian Channels(250,4)]

You might also be interested in what he calls the Power Play pattern.

1. An explosive price move commences on huge volume that shoots the stock price up 100 percentor more in less than
eight weeks. This generally occurs after a period of relative dormancy.
2. The stock price then moves sideways in a relatively tight range, not correcting more than 20 to 25 percent over a
period of three to six weeks (some can emerge after only 12 days).
3. There is very tight price action that does not correct the stock more than 10 percent, or the stock must display VCP
characteristics.

I cannot model the exact rules (i.e. Up 100% in 8 weeks at some time 3 to 6 weeks ago) but here is something that is
close:

Fetcher[Close > MA(50)


MA(50) > MA(200)
Set{X1, Donchian Upper Band(120,0) / Donchian Upper Band(120,120)}
Set{X2, Donchian Lower Band(40,0) / Donchian Upper Band(40,0)}
Set{X3, Donchian Lower Band(40,0) / Donchian Upper Band(40,120)}
X1 > 1.5
X2 > 0.75
X3 > 1
Chart-time 1 year
Do not draw Donchian Channels(40,0)
Do not draw Donchian Channels(120,0)
Do not draw Donchian Channels(250,0)
Do not draw X1
Do not draw X2
Do not draw X3]

11/4/2016 11:18:09 PM

Interesting Filter. I modified it for the short side.

Fetcher[MA(50) > 0
MA(200) > 0
Close < MA(20)
MA(20) > MA(10)
Set{X1, Donchian Lower Band(40,0) / Donchian Upper Band(120,0)}
Set{X2, Donchian Upper Band(40,0) / Donchian Center Band(120,0)}
Set{X3, Donchian Upper Band(250,0) / Donchian Upper Band(250,250)}
x1 < 0.85
x2 > 0.9
X3 > 1
Close > 10
Chart-time 2 year
Do not draw Donchian Channels(40,0)
Do not draw Donchian Channels(120,0)
Do not draw Donchian Channels(250,0)
Do not draw X1
Do not draw X2
Do not draw X3
Do not draw MA(10)
Do not draw MA(20)]

11/9/2016 6:21:45 PM

I made a very similar filter to yours

Fetcher[set{TheMove, DONCHIAN UPPER BAND(250,0) / DONCHIAN UPPER BAND(250,45)}


set{TheMaxMove, TheMove 200 day high}
set{MoveEnded, Days(TheMaxMove reached a new 200 day high,200)}
set{RecentPos, DONCHIAN LOWER BAND(MoveEnded,0) / DONCHIAN CENTER BAND(250,0)}
set{RecentHigh, DONCHIAN LOWER BAND(MoveEnded,0) / DONCHIAN UPPER BAND(250,250)}
set{TheRange, DONCHIAN UPPER BAND(250,0) / DONCHIAN LOWER BAND(250,0)}
TheMaxMove > 1.5
TheRange > 2
Close > 5
RecentPos > 1
RecentHigh > 1
Chart-time 2 year
Do not draw TheMaxMove
Do not draw TheRange
Do not draw RecentPos
Do not draw RecentHigh
Draw MA(50)
Draw MA(200)
Add column industry
Add column sector
Delete column volume]

11/27/2016 4:40:06 AM

I have added a fundamental filter to the Trend Template:

Fetcher[Close above MA(50)


MA(50) above MA(150)
MA(150) above MA(200)
MA(200) increasing for 60 days
Close divided by Donchian Lower Band(250,4) is above 1.3
Close divided by Donchian Upper Band(250,4) is above 0.75
Chart-time 2 years
Do not draw Donchian Channels(250,4)
Close divided by EPS is above 0
Close divided by EPS is below 40
Do not draw Close divided by Donchian Lower Band(250,4)
Do not draw Close divided by Donchian Upper Band(250,4)]

1/9/2017 9:03:18 AM

Alternative implementation of the High Tight Flag:

Fetcher[market not OTCBB


set{v1, high divided by low 50 day low}
set{v2, Days(high reached a new 500 day high,250)}
set{v3, close divided by high 500 day high}
set{v4, Days(v3 below 0.75,250)}
set{v5, high 500 day high divided by high 500 day high 50 days ago}
high reached a new 500 day high in last 100 days
v1 cross above 2 in last 90 days
v5 cross above 1.1 in last 90 days
v4 above v2
MA(50) above MA(200)
chart-time 2 year
Do not draw v1
Do not draw v2
Do not draw v4
Do not draw v1 line at 2
Do not draw v5
Do not draw v5 line at 1.1
Do not draw high 500 day high]

You might also like