Search
Products
Community
Markets
News
Brokers
More
IN
Black Friday sale
Up to 70% OFF
Community
/
Ideas
/
buy sell xauusd
British Pound / Japanese Yen
buy sell xauusd
By M_Firdaus_Sugara
Follow
Follow
Jun 29
4
Jun 29
//
version
=4
study("High Low Breakout Strategy", shorttitle="HL Breakout", overlay=true)
// Menghitung high dan low pada time frame satu jam
high_1h = request.security("XAUUSD", "60", high)
low_1h = request.security("XAUUSD", "60", low)
// Mendeteksi high baru terbentuk
new_high = high_1h > high_1h[1]
// Mendeteksi low baru terbentuk
new_low = low_1h < low_1h[1]
// Buy signal saat high baru terbentuk
strategy.entry("Buy", strategy.long, when=new_high)
// Sell signal saat low baru terbentuk
strategy.entry("Sell", strategy.short, when=new_low)
Trend Analysis
M_Firdaus_Sugara
Follow
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the
Terms of Use
.