OPEN-SOURCE SCRIPT
更新済 Swing Control Screener

This screener scores any stock against a structured 10-point swing trading framework, helping you objectively identify high-quality long setups before applying manual confirmation.
The framework was built around one core principle — every condition must align simultaneously. A valid SFP trigger on a weak stock is not a trade. This script filters the structure so you only spend time visually reviewing stocks that deserve your attention.
How it works
The script evaluates 10 conditions across four categories and displays a live scorecard label on your chart. The background colour updates automatically based on the score.
MA Alignment (3 points)
Price must be above the EMA 20, SMA 100, and SMA 200 simultaneously. All three moving averages must also be sloping upward. This ensures you are trading with the trend across multiple timeframes, not against it.
Volatility (2 points)
The ATR must have peaked and be in decline at the point of entry. A rising ATR into a swing point means sellers are still aggressive. A declining ATR means the selling is exhausting — the conditions where reversals are most reliable.
Relative Strength (2 points)
The stock's RSC line must be above its 21-period MA, confirming the stock is outperforming the S&P 500. Stocks with deteriorating relative strength tend to fail at swing points even when the technical structure looks clean. This filter was the single most consistent differentiator between winning and losing trades in backtesting.
Liquidity and Proximity (2 points)
Average daily volume must exceed 1 million shares to ensure sufficient liquidity for clean entry and exit. Price must also be within a configurable percentage of the recent swing low, confirming the stock is approaching a potential entry zone rather than extended from it.
Scoring tiers
8 to 10 — High Conviction. Consider full position size.
6 to 7 — Decent Setup. Consider half position size.
4 to 5 — Watch Only. Monitor but do not enter.
0 to 3 — Skip entirely.
What this script does not do
The score reflects structural conditions only. Before entering any trade you must confirm manually:
A valid SFP trigger candle — wick below the swing low closing back above it
Above average volume on the confirmation candle
No major macro risk events scheduled
Settings
All parameters are fully adjustable including MA lengths, ATR lookback, RSC benchmark symbol, minimum volume threshold, and swing proximity percentage. The default benchmark is SPX but can be changed to QQQ or any other symbol.
Best used on the daily timeframe.
The framework was built around one core principle — every condition must align simultaneously. A valid SFP trigger on a weak stock is not a trade. This script filters the structure so you only spend time visually reviewing stocks that deserve your attention.
How it works
The script evaluates 10 conditions across four categories and displays a live scorecard label on your chart. The background colour updates automatically based on the score.
MA Alignment (3 points)
Price must be above the EMA 20, SMA 100, and SMA 200 simultaneously. All three moving averages must also be sloping upward. This ensures you are trading with the trend across multiple timeframes, not against it.
Volatility (2 points)
The ATR must have peaked and be in decline at the point of entry. A rising ATR into a swing point means sellers are still aggressive. A declining ATR means the selling is exhausting — the conditions where reversals are most reliable.
Relative Strength (2 points)
The stock's RSC line must be above its 21-period MA, confirming the stock is outperforming the S&P 500. Stocks with deteriorating relative strength tend to fail at swing points even when the technical structure looks clean. This filter was the single most consistent differentiator between winning and losing trades in backtesting.
Liquidity and Proximity (2 points)
Average daily volume must exceed 1 million shares to ensure sufficient liquidity for clean entry and exit. Price must also be within a configurable percentage of the recent swing low, confirming the stock is approaching a potential entry zone rather than extended from it.
Scoring tiers
8 to 10 — High Conviction. Consider full position size.
6 to 7 — Decent Setup. Consider half position size.
4 to 5 — Watch Only. Monitor but do not enter.
0 to 3 — Skip entirely.
What this script does not do
The score reflects structural conditions only. Before entering any trade you must confirm manually:
A valid SFP trigger candle — wick below the swing low closing back above it
Above average volume on the confirmation candle
No major macro risk events scheduled
Settings
All parameters are fully adjustable including MA lengths, ATR lookback, RSC benchmark symbol, minimum volume threshold, and swing proximity percentage. The default benchmark is SPX but can be changed to QQQ or any other symbol.
Best used on the daily timeframe.
リリースノート
This screener scores any stock against a structured 10-point swing trading framework, helping you objectively identify high-quality long setups before applying manual confirmation.The framework was built around one core principle — every condition must align simultaneously. A valid SFP trigger on a weak stock is not a trade. This script filters the structure so you only spend time visually reviewing stocks that deserve your attention.
How it works
The script evaluates 10 conditions across four categories and displays a live scorecard label on your chart. The background colour updates automatically based on the score.
MA Alignment (3 points)
Price must be above the EMA 20, SMA 100, and SMA 200 simultaneously. All three moving averages must also be sloping upward. This ensures you are trading with the trend across multiple timeframes, not against it.
Volatility (2 points)
The ATR must have peaked and be in decline at the point of entry. A rising ATR into a swing point means sellers are still aggressive. A declining ATR means the selling is exhausting — the conditions where reversals are most reliable.
Relative Strength (2 points)
The stock's RSC line must be above its 21-period MA, confirming the stock is outperforming the S&P 500. Stocks with deteriorating relative strength tend to fail at swing points even when the technical structure looks clean. This filter was the single most consistent differentiator between winning and losing trades in backtesting.
Liquidity and Proximity (2 points)
Average daily volume must exceed 1 million shares to ensure sufficient liquidity for clean entry and exit. Price must also be within a configurable percentage of the recent swing low, confirming the stock is approaching a potential entry zone rather than extended from it.
Scoring tiers
8 to 10 — High Conviction. Consider full position size.
6 to 7 — Decent Setup. Consider half position size.
4 to 5 — Watch Only. Monitor but do not enter.
0 to 3 — Skip entirely.
What this script does not do
The score reflects structural conditions only. Before entering any trade you must confirm manually:
A valid SFP trigger candle — wick below the swing low closing back above it
Above average volume on the confirmation candle
No major macro risk events scheduled
Settings
All parameters are fully adjustable including MA lengths, ATR lookback, RSC benchmark symbol, minimum volume threshold, and swing proximity percentage. The default benchmark is SPX but can be changed to QQQ or any other symbol.
Best used on the daily timeframe.
リリースノート
This screener scores any stock against a structured 10-point swing trading framework, helping you objectively identify high-quality long setups before applying manual confirmation.The framework was built around one core principle — every condition must align simultaneously. A valid SFP trigger on a weak stock is not a trade. This script filters the structure so you only spend time visually reviewing stocks that deserve your attention.
How it works
The script evaluates 10 conditions across four categories and displays a live scorecard label on your chart. The background colour updates automatically based on the score.
MA Alignment (3 points)
Price must be above the EMA 20, SMA 100, and SMA 200 simultaneously. All three moving averages must also be sloping upward. This ensures you are trading with the trend across multiple timeframes, not against it.
Volatility (2 points)
The ATR must have peaked and be in decline at the point of entry. A rising ATR into a swing point means sellers are still aggressive. A declining ATR means the selling is exhausting — the conditions where reversals are most reliable.
Relative Strength (2 points)
The stock's RSC line must be above its 21-period MA, confirming the stock is outperforming the S&P 500. Stocks with deteriorating relative strength tend to fail at swing points even when the technical structure looks clean. This filter was the single most consistent differentiator between winning and losing trades in backtesting.
Liquidity and Proximity (2 points)
Average daily volume must exceed 1 million shares to ensure sufficient liquidity for clean entry and exit. Price must also be within a configurable percentage of the recent swing low, confirming the stock is approaching a potential entry zone rather than extended from it.
Scoring tiers
8 to 10 — High Conviction. Consider full position size.
6 to 7 — Decent Setup. Consider half position size.
4 to 5 — Watch Only. Monitor but do not enter.
0 to 3 — Skip entirely.
What this script does not do
The score reflects structural conditions only. Before entering any trade you must confirm manually:
A valid SFP trigger candle — wick below the swing low closing back above it
Above average volume on the confirmation candle
No major macro risk events scheduled
Settings
All parameters are fully adjustable including MA lengths, ATR lookback, RSC benchmark symbol, minimum volume threshold, and swing proximity percentage. The default benchmark is SPX but can be changed to QQQ or any other symbol.
Best used on the daily timeframe.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。