PROTECTED SOURCE SCRIPT
KING4R_swing

### KING4R Swing: The High-Performance Trading Checklist
**KING4R\_swing** is a powerful indicator designed for **swing trading** that incorporates a **six-point checklist** to validate high-probability entry setups. It focuses on identifying bullish configurations by aligning local market strength with the overall strength of the S&P 500 ($\text{SPY}$) index.
🚀 **Key Features:**
* **Local EMA Alignment:** Checks if the price is above the 48-period EMA and if the 13-period EMA has bullishly crossed the 48-period EMA.
* **Post-Volume Context:** Detects periods of **sideways consolidation** or a **structure shift** (higher lows) following a candle with unusual volume (Stopping Volume), signaling potential accumulation.
* **Macro Filter (SPY Daily):** Uses the `request.security` function to integrate general market context, validating if $\text{SPY}$'s EMAs (8/21 and 13/48) are trending bullishly on the daily timeframe. These $\text{SPY}$ conditions are optional.
* **Scoring and Feedback:** Generates a **total score** out of $6$ and displays a dynamic **checklist** on the chart with $\text{✅}$ or $\text{❌}$.
* **Setup Alert:** A **"🚀"** label and a **configurable alert** are triggered when all $6$ conditions are met, indicating a fully aligned entry *setup*.
**Set your rules, wait for alignment, and only trade if you have the setup!**
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.