OPEN-SOURCE SCRIPT
已更新

Improved Stoch RSI + Supertrend Filter + ATR SL/TP

96
This custom indicator, "Improved Stoch RSI + Supertrend Filter + ATR SL/TP," is a powerful tool designed to generate high-probability trading signals in trending markets. It combines three technical indicators:

1. **Stochastic RSI** – Provides overbought and oversold signals by calculating the stochastic of the RSI, which helps identify momentum reversals.
2. **Supertrend Filter** – A trend-following indicator that filters signals to only trade in the direction of the current trend, reducing false signals and improving overall accuracy.
3. **ATR-based Stop-Loss and Take-Profit** – Uses the Average True Range (ATR) multiplied by a 1.5 factor to set dynamic stop-loss levels, and calculates take-profit levels based on a configurable Risk-Reward Ratio (default: 1.5).

**How it works:**

* When the %K line of the Stochastic RSI crosses above the %D line below the oversold level (default: 20), and the Supertrend indicates an uptrend, a **long trade signal** is generated.
* When the %K line of the Stochastic RSI crosses below the %D line above the overbought level (default: 80), and the Supertrend indicates a downtrend, a **short trade signal** is generated.
* Each trade signal comes with a plotted stop-loss and take-profit level based on the ATR, giving you predefined risk management points.

This indicator helps traders:

* Trade only with the prevailing trend
* Identify reversal points with high accuracy
* Manage risk consistently with ATR-based stop-loss and take-profit

It's suitable for all timeframes and can be used as a standalone system or to complement other trading strategies.
發行說明
**Indicator Name:** Improved Stoch RSI + Supertrend Filter + ATR SL/TP with Heikin Ashi

**Description:**
This indicator combines multiple tools to help identify high-probability entries for trading:

✅ **Stochastic RSI:** Measures RSI's position relative to its range, highlighting overbought (above 80) and oversold (below 20) zones, and signals crossovers for potential reversals.

✅ **Supertrend Filter:** Uses ATR-based volatility to identify prevailing market trend. A green Supertrend line indicates an uptrend, while red signals a downtrend.

✅ **ATR Stop Loss / Take Profit:** Automatically calculates SL and TP levels based on ATR and a risk-reward ratio to manage trades dynamically.

✅ **Manual Heikin Ashi Calculations:** Integrates Heikin Ashi candles internally (no external data needed) to smooth price action and confirm trend direction:

* Green (bullish) HA candles = uptrend bias.
* Red (bearish) HA candles = downtrend bias.

**Entry Rules:**

* **Long Entry:** Stochastic RSI bullish crossover (below 20) + uptrend (Supertrend green) + HA bullish candle.
* **Short Entry:** Stochastic RSI bearish crossover (above 80) + downtrend (Supertrend red) + HA bearish candle.

**Plots & Alerts:**

* Visual markers ("Long" and "Short" labels) at entry points.
* SL and TP lines for each trade idea.
* Alerts for long and short signals for easy automation.

**Benefits:**

* Works across any symbol or timeframe.
* Robust confirmation (momentum, trend, volatility) for entries.
* No reliance on "heikinashi:" ticker references = no runtime errors.

**How to Use:**

1. Add to chart.
2. Watch for "Long" or "Short" signals.
3. Use SL and TP levels for risk management.
4. Combine with your broader trading plan for best results.

For questions or tweaks, let me know!

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。