OPEN-SOURCE SCRIPT

RSI + ATR Strategy for XAU/USD and Forex by Krylov

Description:
This strategy combines the RSI (Relative Strength Index) and ATR (Average True Range) indicators to identify trading opportunities on the XAU/USD and Forex markets. It is designed for intraday trading on the 5-minute timeframe, providing clear entry and exit signals based on volatility and trend filters.

How it works:
Indicators Used:

RSI: Detects oversold (<45) and overbought (>55) conditions and confirms entry signals when crossing its moving average.
ATR: Filters signals by ensuring sufficient volatility for trading.
Conditions for Entry:

Long (Buy):
RSI crosses above its moving average below the level of 45.
Volatility is above the ATR threshold.
Trading occurs only during active hours (8:00–21:00 Prague time).
Short (Sell):
RSI crosses below its moving average above the level of 55.
Volatility is above the ATR threshold.
Trading occurs only during active hours (8:00–21:00 Prague time).

Exit Conditions:
Trades are closed when a fixed take-profit (5000 ticks) or stop-loss (5000 ticks) level is reached.
Parameters for stop-loss and take-profit are customizable.
Why it’s unique:
This strategy combines trend and volatility filters for precision.
Users can customize key parameters like RSI length, ATR threshold, and risk levels.
It avoids trading during low-volatility periods by using ATR as a filter.
Backtesting Notes:
The default settings are optimized for XAU/USD on a $10,000 account with realistic slippage and commissions.

Results:
Win rate: 64.4%.
Profit factor: 1.1.
Over 100 trades to ensure statistical significance.
Users can adjust settings for other instruments or market conditions.
How to Use:
Apply the strategy to a 5-minute chart.
Customize parameters if necessary.
Monitor the strategy’s signals and adapt based on your trading style.
Chart Settings:
The chart is clean and includes:

RSI levels and moving average.
ATR line to visualize volatility.
Markers for trade entries and exits.
Relative Strength Index (RSI)Trend Analysis

Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının yazarı komut dosyasını açık kaynak olarak yayınlamıştır, böylece yatırımcılar betiği anlayabilir ve doğrulayabilir. Yazar çok yaşa! Ücretsiz olarak kullanabilirsiniz, ancak bu kodun yayında yeniden kullanımı Ev kurallarına tabidir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?

Feragatname