OPEN-SOURCE SCRIPT
Supertrend With SMA Death Cross

1. The ComponentsSuperTrend IndicatorThe SuperTrend is a price-overlay indicator that uses the Average True Range (ATR) to define trend direction. It calculates a "ceiling" or "floor" based on volatility.Bullish: When the price closes above the indicator line, the line turns green and shifts below the price.Bearish: When the price closes below the line, the line turns red and shifts above the price.SMA Death CrossThe Death Cross is a classic technical pattern signaling a transition from a bull market to a bear market. It occurs when a shorter-term moving average crosses below a long-term moving average.Short-term: Typically the 50-day Simple Moving Average (SMA).Long-term: Typically the 200-day Simple Moving Average (SMA).2. Strategic SynergyUsing these two together helps filter out "fakeouts" (false signals).FeatureSuperTrendDeath Cross (50/200 SMA)SpeedFast/ReactiveSlow/LaggingFunctionEntry/Exit TimingTrend ConfirmationStrengthHigh precision in trending marketsHigh reliability for major cyclesThe Bearish Setup (The "Double Confirmation")The Context: The 50-day SMA crosses below the 200-day SMA. This tells you the long-term trend has officially shifted to "Down."The Trigger: You wait for the SuperTrend to flip from Green (Bullish) to Red (Bearish).The Execution: Entering a short position (or exiting a long position) only when both are red ensures you aren't caught in a minor retracement during a bull market.3. Risk Management & LimitationsWhipsawing: In a sideways or "choppy" market, the SuperTrend may flip back and forth frequently, leading to small losses.Lag: Because the Death Cross uses the 200-day SMA, the price may have already dropped significantly before the cross occurs.The Golden Cross: Conversely, the strategy can be flipped for buying. Wait for a Golden Cross (50 SMA above 200 SMA) and a Green SuperTrend signal to confirm a major bull run.4. Example Technical ParametersTo test this strategy, you might use the following standard settings:SuperTrend: Period: 10 / Multiplier: 3.0Fast MA: 50-period SMASlow MA: 200-period SMA
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。