OANDA:GBPJPY   Livre sterling / Yen japonais

//@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

// Mendeteksi low baru terbentuk
new_low = low_1h < low_1h

// 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)
Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.