XAUUSD GoldScalper Pro v8+Session — Strategy by hwarang11

By version

Performance Metrics

Description

1. Script Title & CategoryField Recommended ValueScript Title XAUUSD GoldScalper Pro v8 | EMA + MACD + Asymmetric R:RCategory StrategiesSymbol XAUUSD, GOLDTimeframe 5 (5-minute, optimized)Language Pine Script v5Visibility PublicLicense Mozilla Public License 2.0Tags gold, xauusd, scalping, ema, macd, atr, breakeven, session-filter, risk-management2. Script Description Text (paste into TradingView) Copy the text below directly into the Description field when publishing your script on TradingView.XAUUSD GoldScalper Pro is a scalping strategy developed specifically for Gold (XAUUSD) on the 5-minute timeframe. Built through 11 rounds of iterative backtesting, it achieves a Profit Factor of 1.8+ with a 40~48% win rate by using an asymmetric Risk:Reward structure rather than relying on high win rate alone.STRATEGY LOGICEntry requires all 7 conditions to be met simultaneously:1. EMA Alignment: EMA8 > EMA21 > EMA55 (Long) / reversed (Short)2. EMA55 Direction: Slope confirmed over last 10 bars3. MACD Cross: Golden cross (Long) / Death cross (Short)4. MACD Zero Filter: MACD line position relative to zero line5. RSI Range: 50~68 for Long entries / 32~50 for Short entries6. ADX >= 20: Confirms sufficient trend strength7. Candle Direction: Entry bar must be bullish (Long) or bearish (Short)EXIT STRUCTURE• TP1: ATR x 2.0 — closes 50% of position (quick profit lock)• TP2: ATR x 5.0 — closes remaining 50% (trend continuation target)• Breakeven Stop: After TP1 is hit, Stop Loss automatically moves to entry price• Stop Loss: ATR x 1.0 below/above entry• Signal Exit: EMA8 crosses EMA21 in opposite directionKST SESSION FILTERBlocks new entry signals during user-defined hours in Korean Standard Time (Asia/Seoul). Default block: 00:00 to 06:00 KST. Active positions continue to run with all exit conditions intact — no forced close. The exclusion time can be changed in the settings.SETTINGS GUIDE• To increase signal frequency: lower ADX Min (20 to 15), reduce EMA55 Slope Bars (10 to 5), or lower RSI Long Min (50 to 45)• To improve signal quality: raise ADX Min, increase RSI Long Min, or tighten EMA55 Slope Bars• Adjust KST Block Start/End to match your trading scheduleDISCLAIMERFor educational and research purposes only. Past backtesting results do not guarantee future performance. All trading decisions and their consequences are solely the responsibility of the user.3. Pine Script Header Comment Add this comment block to the very top of your Pine Script code, above the //version=5 line.// ================================================================// description// XAUUSD GoldScalper Pro v8// Gold (XAUUSD) 5-minute scalping strategy.// Developed through 11 backtesting iterations.//// Asset XAUUSD (Gold)// timeframe 5-minute (primary), 15-minute (compatible)// signals 30 to 85 per month// winrate 40 to 48 percent// profitfactor 1.76 to 2.24//// Entry EMA alignment + MACD cross + 5 confirmation filters// Exit Partial close TP1 (2x ATR) + TP2 (5x ATR) + Breakeven// Session KST (Asia/Seoul) block filter — default 00:00 to 06:00//// Disclaimer For educational purposes only.// Past results do not guarantee future performance.// ================================================================4. Pre-Publication ChecklistStep Task Done1 Test on XAUUSD 5-minute chart — verify signals appear correctly [ ]2 Run Strategy Tester for at least 3 months of data [ ]3 Confirm Profit Factor > 1.5 on recent 1-month backtest [ ]4 Add header comment block to top of script [ ]5 Set correct title, tags, and category on TradingView [ ]6 Write description using the text in Section 2 above [ ]7 Set license to Mozilla Public License 2.0 [ ]8 Publish as Public script [ ]5. Full Disclaimer This script is provided for educational and research purposes only. It does not constitute financial advice. Past backtesting performance does not guarantee future results. Trading leveraged instruments such as Gold (XAUUSD) involves significant risk of loss and may not be suitable for all investors. The author accepts no liability for any financial losses incurred from the use of this script. Always conduct your own due diligence and consult a qualified financial adviser before trading.

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView