OPEN-SOURCE SCRIPT
Updated Minervini Trend Template Screener (v5)

This script is a screening tool based on Mark Minervini’s “Trend Template.”
It is designed to identify stocks that are in a strong, institutional-quality uptrend.
It checks whether:
Price is above the 50-day, 150-day, and 200-day moving averages
Moving averages are aligned 50 > 150 > 200, with the 200-day MA trending upward
Price is at least 30% above the 52-week low
Price is within 25% of the 52-week high
The stock shows strong relative performance vs a benchmark (e.g., SPY)
Only stocks that pass all conditions are highlighted, helping to focus on
high-quality trend leaders favored by momentum and growth investors.
このスクリプトは、**マーク・ミネルビニの「Trend Template(トレンド・テンプレート)」**に基づいて、
**強い上昇トレンドにある銘柄だけを自動で抽出(スクリーニング)**するためのものです。
主に以下を確認しています:
株価が 50日・150日・200日移動平均線の上 にある
50日 > 150日 > 200日 の並びで、200日線も上向き
株価が 52週安値から30%以上上昇している
株価が 52週高値から25%以内に位置している
ベンチマーク(例:SPY)と比べて 相対的に強い値動きをしている
すべての条件を満たした銘柄にだけシグナルを出し、
**「機関投資家が買いやすい、教科書的な強トレンド銘柄」**を見つける目的のスクリプトです。
It is designed to identify stocks that are in a strong, institutional-quality uptrend.
It checks whether:
Price is above the 50-day, 150-day, and 200-day moving averages
Moving averages are aligned 50 > 150 > 200, with the 200-day MA trending upward
Price is at least 30% above the 52-week low
Price is within 25% of the 52-week high
The stock shows strong relative performance vs a benchmark (e.g., SPY)
Only stocks that pass all conditions are highlighted, helping to focus on
high-quality trend leaders favored by momentum and growth investors.
このスクリプトは、**マーク・ミネルビニの「Trend Template(トレンド・テンプレート)」**に基づいて、
**強い上昇トレンドにある銘柄だけを自動で抽出(スクリーニング)**するためのものです。
主に以下を確認しています:
株価が 50日・150日・200日移動平均線の上 にある
50日 > 150日 > 200日 の並びで、200日線も上向き
株価が 52週安値から30%以上上昇している
株価が 52週高値から25%以内に位置している
ベンチマーク(例:SPY)と比べて 相対的に強い値動きをしている
すべての条件を満たした銘柄にだけシグナルを出し、
**「機関投資家が買いやすい、教科書的な強トレンド銘柄」**を見つける目的のスクリプトです。
Release Notes
BUY: Stock meets Minervini Trend Template and outperforms TOPIX, with rising RS making new highsENTRY: While BUY is active, pivot breakout with volume surge and volatility contraction
RS BREAK: Relative strength weakens → no adding, exit watch
Release Notes
This script selects “buyable” stocks using Minervini’s Trend Template and filters for market leaders by relative strength versus TOPIX. A BUY signal appears when all TT conditions are met (price above 50/150/200-day MAs, 50>150>200 alignment, rising 200-day MA, +30% from 52-week low, within 25% of 52-week high) and RS is above the threshold, trending up, and making new highs. While BUY is active, an ENTRY signal is shown only when a pivot breakout (above the prior N-day high) occurs with a volume surge (multiple of average volume) and volatility contraction (lower ATR%). An RS BREAK is flagged when relative strength weakens (below its MA or MA turning down), indicating no-add and exit watch. Use BUY to build a watchlist, act only on ENTRY signals, and stop adding while prioritizing exit decisions when RS BREAK appears.このスクリプトは、ミネルビニのTrend Template(TT)で「買ってよい銘柄」を選別し、TOPIXに対する相対強さ(RS)で市場平均を上回る主役候補だけを抽出するインジケーターです。TT(価格が50/150/200日線の上、50>150>200、200日線上向き、52週安値+30%以上、52週高値25%以内)に加え、RSが基準以上で上昇トレンドかつ直近高値を更新している場合にBUYを表示します。BUYが有効な期間中に、ピボットブレイク(直近N日高値上抜け)+出来高増加(平均×倍率)+ボラティリティ収縮(ATR%低下)が同時に成立するとENTRYを表示します。RSが平均割れまたは下向きに転じた場合はRS BREAKを表示し、増し玉禁止および撤退警戒の目安とします。使い方は、まずBUYでウォッチリストを作成し、ENTRYが出たタイミングのみエントリーを検討、RS BREAKが出たら追加を止めて出口判断を優先します。Release Notes
This script is a self-contained Pine Screener indicator that does not rely on indexes or external symbols. It uses Minervini’s Trend Template to confirm a strong uptrend structure, then evaluates mid-term momentum (6–12 months) and short-term momentum (about 1 month). Optional volume spikes and volatility contraction (simple VCP) can be toggled on or off. The screener filters for stocks that have risen strongly, maintain recent momentum, and show tight consolidation near highs, making it suitable for efficiently identifying high-quality momentum candidates.このスクリプトは、指数や外部データを使わず自己完結で動作するPineスクリーナー用インジケーターです。ミネルビニのTrend Templateで上昇トレンドの構造を確認し、中長期モメンタム(6〜12か月)と短期モメンタム(約1か月)で勢いを判定します。必要に応じて出来高スパイクと高値圏でのボラティリティ収縮(VCP簡易)をON/OFFでき、条件を満たした銘柄のみを抽出します。強く上昇してきており、直近も勢いがあり、かつ高値圏で締まっている銘柄を効率的に見つけるためのスクリーナーです。Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.