INVITE-ONLY SCRIPT

XAU-USD - OANDA - Updated Jan 2025 - by PB ver 5

393
Script Title: XAU-USD - OANDA - Updated Jan 2025 - by PB ver 5

Description:
This strategy is designed for trading XAU/USD (Gold) on the OANDA platform, optimized with a session-based filter and Renko bar indicators for enhanced price action analysis. The script utilizes trailing stop loss functionality to manage risk effectively and allows flexibility for both long and short trades.

Key Features:
Date Filter: This strategy includes a time filter to backtest the performance from January 1st, 2025 to December 31st, 2025. Users can enable or disable the filter based on their preference.
Session Filter: Customizable session inputs allow the user to define the active trading session using a time range (default is 09:20-15:16) and the days of the week (default is all days, 1-7). The strategy will only enter trades during the active session, ensuring more controlled and focused trading.
Renko Bar Strategy: This strategy uses Renko charts, a popular price action tool, to detect buy and sell signals based on the crossover of Renko close and open prices. Users can adjust the Renko block size and the Renko value used for detecting price action shifts.
Trailing Stops: The script applies a trailing stop loss mechanism for both long and short trades. The trailing stop is dynamically updated to follow the market as prices move in favor of the trade. It uses a 5000-point trailing stop (adjustable by the user).
Flexible Trade Settings: Users can enable or disable long and short positions through simple toggle switches. The strategy allows for full control over trade entry and exit.
How It Works:
Long Trades: A long position is entered when the Renko close crosses above the Renko open. The position will be exited using a trailing stop, which follows the price in the market.
Short Trades: A short position is entered when the Renko close crosses below the Renko open. The position will also exit using a trailing stop.
The strategy will automatically close positions if the session ends or if the user manually exits the trades.
Customization Options:
Backtest Date Range: Set the start and end dates to backtest the strategy over a specific time period.
Session and Days: Adjust the session time and which days of the week the strategy is active.
Renko Block Size: Customize the Renko block size for finer control over price action signals.
Trailing Stop Distance: Adjust the trailing stop loss to your preferred risk levels.
Limitations and Considerations:
Renko Charting: Renko charts may not suit every trading style, as they are based on price movement rather than time. This strategy is designed for traders who prefer this style of charting.
Backtest Results: Always review the strategy's backtest results with realistic parameters. The strategy uses historical data, and past performance is not indicative of future results. Be aware of slippage and commission costs in real-world trading scenarios.
Manual Intervention: Users should monitor active trades and intervene manually if required.
Ideal Usage:
This strategy is suited for traders looking to use price action-based strategies with Renko charts for XAU/USD on the OANDA platform.
Ideal for those who want to automate their entry and exit points with trailing stop mechanisms while having control over the session time and backtesting period.

Disclaimer:
Past performance does not guarantee future results. Always use caution when using trading strategies and adjust parameters based on market conditions. The strategy is provided for educational purposes and should be tested on paper before live trading.

Pernyataan Penyangkalan

Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.