PROTECTED SOURCE SCRIPT
已更新

ATRsm_RSI_EMA Strategy V2 (ikulahli)

48
Of course. Here is the comprehensive publication text for your strategy, written in English.

You can copy and paste this directly into the "Description" field on TradingView.

---

### **Strategy Title:** Advanced Strategy with ATRsm & RSI EMA Combination (V3 - Multi-TP)

---

### Summary

This strategy combines two powerful concepts to generate trading signals: **ATR Trailing Stop (ATRsm)** for trend following and the **EMA of RSI** for momentum confirmation. The strategy goes beyond simple entry and exit signals by offering advanced position management features, including **multi-level partial take-profits** and a mechanism to **exit on a reverse signal**.

This tool is designed for traders who seek confirmed entries in the direction of the trend and want to manage risk by progressively realizing profits.

### Core Features

* **ATR Trailing Stop Based Trend Detection:** The core trend direction is determined by the ATR Trailing Stop. The price's position above or below this line indicates a potential long or short trend.
* **Momentum Confirmation with EMA of RSI:** After the ATRsm indicates a potential trend flip, the strategy does not enter a trade immediately. It waits for momentum confirmation by requiring the EMA of the RSI to cross predefined levels (defaulted to 55 for buys and 45 for sells). This helps filter out false signals.
* **Two-Stage Partial Take-Profit (Multi-TP):**
* **TP1:** Automatically closes 50% of the position when the first profit target (e.g., 0.9%) is reached.
* **TP2:** Closes an additional 25% of the *initial* position when the second profit target (e.g., 1.4%) is reached. This feature allows you to lock in profits while letting the remainder of your position run.
* **Exit on Reverse Signal:** The strategy automatically closes an open position if a valid signal in the opposite direction appears. For example, if a short signal is generated while in a long position, the long position will be closed.
* **Configurable Stop Loss:** You can set a percentage-based Stop Loss for every trade, calculated from the entry price. This provides an essential safety net for risk management.
* **Fully Customizable:** All parameters, from ATR periods and RSI lengths to take-profit levels and stop-loss percentages, are fully customizable by the user.

### How The Strategy Works

The logic of the strategy operates in the following steps:

1. **Identifying a Signal Candidate:** First, the `ATR Trailing Stop` line provides a bias for the market's direction. When the price crosses above this line, a potential "Buy" signal is flagged. When it crosses below, a potential "Sell" signal is flagged.
2. **Awaiting Confirmation:** After a potential signal is identified, the strategy monitors the `EMA of the RSI`.
* **For a Long Entry:** While the ATRsm is in a "Buy" state, the EMA of the RSI must cross *above* the 55 level.
* **For a Short Entry:** While the ATRsm is in a "Sell" state, the EMA of the RSI must cross *below* the 45 level.
3. **Trade Entry:** A trade is executed only when both conditions above are met simultaneously and there are no other open positions.
4. **Position Management:**
* As soon as a trade is opened, a **Stop Loss** order is placed based on the specified percentage.
* If the price reaches the **TP1** target, 50% of the position is closed.
* If the price continues in the profitable direction and hits the **TP2** target, another 25% of the initial position is closed.
* The remainder of the position stays open until it either hits the Stop Loss or a reverse signal triggers a full exit.

### Settings & Tips

* **Backtesting:** As with any strategy, performance can vary significantly across different assets and timeframes. Always use the **Strategy Tester** panel to evaluate its performance on the instrument and timeframe you are interested in before use.
* **Parameter Optimization:** Don't hesitate to experiment with the signal parameters, especially `ATR Period`, `ATR Multiplier`, and `RSI Length`, to find the optimal settings for your trading style.
* **Market Conditions:** This strategy is, by its nature, a trend-following system. It tends to perform best in markets with clear, sustained trends and may be less effective in choppy, sideways markets.

#### Disclaimer

This script has been developed for educational and research purposes only and should not be considered financial advice. Always conduct your own research and adhere to your risk management rules before making any trading decisions. Past performance is not indicative of future results.

*This script was developed based on the logic of the "ATR Smoothed (By dysrupt)\_BuySell version" indicator and the v5 version by user "ikulahli".*
發行說明
### **Strategy Title:** Advanced Strategy with ATRsm & RSI EMA Combination (V3 - Multi-TP)

---

### Summary

This strategy combines two powerful concepts to generate trading signals: **ATR Trailing Stop (ATRsm)** for trend following and the **EMA of RSI** for momentum confirmation. The strategy goes beyond simple entry and exit signals by offering advanced position management features, including **multi-level partial take-profits** and a mechanism to **exit on a reverse signal**.

This tool is designed for traders who seek confirmed entries in the direction of the trend and want to manage risk by progressively realizing profits.

### Core Features

* **ATR Trailing Stop Based Trend Detection:** The core trend direction is determined by the ATR Trailing Stop. The price's position above or below this line indicates a potential long or short trend.
* **Momentum Confirmation with EMA of RSI:** After the ATRsm indicates a potential trend flip, the strategy does not enter a trade immediately. It waits for momentum confirmation by requiring the EMA of the RSI to cross predefined levels (defaulted to 55 for buys and 45 for sells). This helps filter out false signals.
* **Two-Stage Partial Take-Profit (Multi-TP):**
* **TP1:** Automatically closes 50% of the position when the first profit target (e.g., 0.9%) is reached.
* **TP2:** Closes an additional 25% of the *initial* position when the second profit target (e.g., 1.4%) is reached. This feature allows you to lock in profits while letting the remainder of your position run.
* **Exit on Reverse Signal:** The strategy automatically closes an open position if a valid signal in the opposite direction appears. For example, if a short signal is generated while in a long position, the long position will be closed.
* **Configurable Stop Loss:** You can set a percentage-based Stop Loss for every trade, calculated from the entry price. This provides an essential safety net for risk management.
* **Fully Customizable:** All parameters, from ATR periods and RSI lengths to take-profit levels and stop-loss percentages, are fully customizable by the user.

### How The Strategy Works

The logic of the strategy operates in the following steps:

1. **Identifying a Signal Candidate:** First, the `ATR Trailing Stop` line provides a bias for the market's direction. When the price crosses above this line, a potential "Buy" signal is flagged. When it crosses below, a potential "Sell" signal is flagged.
2. **Awaiting Confirmation:** After a potential signal is identified, the strategy monitors the `EMA of the RSI`.
* **For a Long Entry:** While the ATRsm is in a "Buy" state, the EMA of the RSI must cross *above* the 55 level.
* **For a Short Entry:** While the ATRsm is in a "Sell" state, the EMA of the RSI must cross *below* the 45 level.
3. **Trade Entry:** A trade is executed only when both conditions above are met simultaneously and there are no other open positions.
4. **Position Management:**
* As soon as a trade is opened, a **Stop Loss** order is placed based on the specified percentage.
* If the price reaches the **TP1** target, 50% of the position is closed.
* If the price continues in the profitable direction and hits the **TP2** target, another 25% of the initial position is closed.
* The remainder of the position stays open until it either hits the Stop Loss or a reverse signal triggers a full exit.

### Settings & Tips

* **Backtesting:** As with any strategy, performance can vary significantly across different assets and timeframes. Always use the **Strategy Tester** panel to evaluate its performance on the instrument and timeframe you are interested in before use.
* **Parameter Optimization:** Don't hesitate to experiment with the signal parameters, especially `ATR Period`, `ATR Multiplier`, and `RSI Length`, to find the optimal settings for your trading style.
* **Market Conditions:** This strategy is, by its nature, a trend-following system. It tends to perform best in markets with clear, sustained trends and may be less effective in choppy, sideways markets.

#### Disclaimer

This script has been developed for educational and research purposes only and should not be considered financial advice. Always conduct your own research and adhere to your risk management rules before making any trading decisions. Past performance is not indicative of future results.

*This script was developed based on the logic of the "ATR Smoothed (By dysrupt)\_BuySell version" indicator and the v5 version by user "ikulahli".*

免責聲明

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