OPEN-SOURCE SCRIPT

Pro-Swing Guard: 200 EMA & SuperTrend 10-5 - Simple Swing System

2 039
The Pro-Swing Guard is a disciplined, trend-following system designed to simplify high-probability trading for both stocks and indices. Built on the core principle of "Trading with the Tide," this strategy is the primary engine for The Stock Yogi's trading philosophy: eliminating market noise and avoiding the traps of sideways price action.

By combining the structural strength of the 200-period Exponential Moving Average (EMA) with a conservative, high-factor SuperTrend (10, 5), the Pro-Swing Guard ensures you only participate when the big money momentum and long-term structure are perfectly aligned.

The "3-Step Verification" Logic
This system follows a strict institutional-grade logic to confirm every entry:

The Structural Filter (200 EMA): We only look for Longs when the price is trading above the 200 EMA and Shorts when below. This ensures you are never standing in front of a high-speed train moving in the opposite direction.

The Slope Sentinel: The script automatically detects the angle of the 200 EMA. It only triggers signals when the EMA is actively sloping (Upward for Buy / Downward for Sell), effectively keeping you on the sidelines during "dead" or choppy markets.

The Volatility Buffer (The 10-5 Factor): While most retail traders use a standard 3.0 multiplier, we use a 5.0 Multiplier. This "Game Changer" adjustment creates a wider safety zone, allowing the stock to breathe and preventing you from being "shaken out" by minor intraday volatility.

Key Features & Toggles
Directional Control: Built-in toggles to enable/disable Long or Short trades based on your daily market bias or higher timeframe analysis.

Risk Management Toggle:

Trend Rider Mode (Default): Exit on a SuperTrend color flip to capture massive, multi-week swing moves.

Disciplined Target Mode: Switch on the Risk-to-Reward (RR) Toggle to set a fixed target based on the Entry Candle's high/low for consistent compounding.

Institutional Sizing: Defaulted to an initial capital of 50 Lacs with a 40% equity-per-trade allocation for realistic portfolio backtesting.

How to Trade with Pro-Swing Guard
Best Timeframes: Highly optimized for 15m/1h (Intraday Momentum) and Daily/4h (Swing Trading).

Confirmation: A valid signal is generated when the SuperTrend flips color ONLY IF the price is on the correct side of the 200 EMA and the EMA slope is confirmed.

Visual Cues: The chart background highlights valid entry zones (Green for Bullish / Red for Bearish) to keep your eyes focused.

Disclaimer & House Rules
This indicator is an educational tool designed by The Stock Yogi to assist in data-driven decision-making.

Trading involves significant financial risk. Past performance does not guarantee future results.

Always practice proper risk management and test on a demo account before live deployment.

Developed by The Stock Yogi
"In a world of noise, discipline is your only edge. Let this tool handle the trend, while you handle your mind."

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.