OPEN-SOURCE SCRIPT
Gold Power Hours Strategy

๐ Gold Power Hours Trading Strategy
Trade XAUUSD (Gold) or XAUEUR during the most volatile hours of the New York session, using momentum and trend confirmation, with session-specific risk/reward profiles.
โ Strategy Rules
๐ Valid Trading Times ("Power Hours"):
Trades are only taken during high-probability time windows on Tuesdays, Wednesdays, and Thursdays, corresponding to key New York session activity:
Morning Session:
08:00 โ 11:00 (NY time)
Afternoon Session:
12:30 โ 16:00
19:00 โ 22:00
These times align with institutional activity and economic news releases.
๐ Technical Indicators Used:
50-period Simple Moving Average (SMA50):
Identifies the dominant market trend.
14-period Relative Strength Index (RSI):
Measures market momentum with session-adjusted thresholds.
๐ฉ Buy Signal Criteria:
Price is above the 50-period SMA (bullish trend)
RSI is greater than:
60 during Morning Session
55 during Afternoon Session
Must be during a valid day (TueโThu) and Power Hour session
๐ฅ Sell Signal Criteria:
Price is below the 50-period SMA (bearish trend)
RSI is less than:
40 during Morning Session
45 during Afternoon Session
Must be during a valid day and Power Hour session
๐ฏ Trade Management Rules:
Morning Session (08:00โ11:00)
Stop Loss (SL): 50 pips
Take Profit (TP): 150 pips
RiskโReward Ratio: 1:3
Afternoon Session (12:30โ16:00 & 19:00โ22:00)
Stop Loss (SL): 50 pips
Take Profit (TP): up to 100 pips
RiskโReward Ratio: up to 1:2
โ ๏ธ TP is slightly reduced in the afternoon due to typically lower volatility compared to the morning session.
๐บ Visuals & Alerts:
Buy signals: Green triangle plotted below the bar
Sell signals: Red triangle plotted above the bar
SMA50 line: Orange
Valid session background: Light pink
Alerts: Automatic alerts for buy/sell signals
Trade XAUUSD (Gold) or XAUEUR during the most volatile hours of the New York session, using momentum and trend confirmation, with session-specific risk/reward profiles.
โ Strategy Rules
๐ Valid Trading Times ("Power Hours"):
Trades are only taken during high-probability time windows on Tuesdays, Wednesdays, and Thursdays, corresponding to key New York session activity:
Morning Session:
08:00 โ 11:00 (NY time)
Afternoon Session:
12:30 โ 16:00
19:00 โ 22:00
These times align with institutional activity and economic news releases.
๐ Technical Indicators Used:
50-period Simple Moving Average (SMA50):
Identifies the dominant market trend.
14-period Relative Strength Index (RSI):
Measures market momentum with session-adjusted thresholds.
๐ฉ Buy Signal Criteria:
Price is above the 50-period SMA (bullish trend)
RSI is greater than:
60 during Morning Session
55 during Afternoon Session
Must be during a valid day (TueโThu) and Power Hour session
๐ฅ Sell Signal Criteria:
Price is below the 50-period SMA (bearish trend)
RSI is less than:
40 during Morning Session
45 during Afternoon Session
Must be during a valid day and Power Hour session
๐ฏ Trade Management Rules:
Morning Session (08:00โ11:00)
Stop Loss (SL): 50 pips
Take Profit (TP): 150 pips
RiskโReward Ratio: 1:3
Afternoon Session (12:30โ16:00 & 19:00โ22:00)
Stop Loss (SL): 50 pips
Take Profit (TP): up to 100 pips
RiskโReward Ratio: up to 1:2
โ ๏ธ TP is slightly reduced in the afternoon due to typically lower volatility compared to the morning session.
๐บ Visuals & Alerts:
Buy signals: Green triangle plotted below the bar
Sell signals: Red triangle plotted above the bar
SMA50 line: Orange
Valid session background: Light pink
Alerts: Automatic alerts for buy/sell signals
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.