BYBIT:BNBUSDT.P   BNBUSDT Perpetual Contract
//@version=4
strategy("5-Minute Chart Strategy", overlay=true)

// Input parameters
rsiLength = input(14, title="RSI Length")
overbought = input(70, title="Overbought Level")
oversold = input(30, title="Oversold Level")
emaLength = input(20, title="EMA Length")

// Calculate RSI
rsi = rsi(close, rsiLength)

// Calculate EMA
ema = ema(close, emaLength)

// Define entry and exit conditions
if crossover(close, ema) and rsi < oversold
strategy.entry("Buy", strategy.long)
if crossunder(close, ema) and rsi > overbought
strategy.entry("Sell", strategy.short)

// Plot EMA
plot(ema, color=color.blue)

// Plot RSI
plot(rsi, color=color.red)

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.