FX:GBPUSD   Funt Brytyjski/Dolar USA
Here is an example of an RSI trading script for TradingView:

scss
Copy code
//@version=4
strategy("RSI Trading", overlay=true)

// RSI parameters
rsiLength = input(title="RSI Length", type=input.integer, defval=14)
overbought = input(title="Overbought Level", type=input.integer, defval=70)
oversold = input(title="Oversold Level", type=input.integer, defval=30)

// Define long and short conditions
longCondition = crossover(rsi(close, rsiLength), oversold)
shortCondition = crossunder(rsi(close, rsiLength), overbought)

// Plot RSI
plot(rsi(close, rsiLength), color=color.blue, title="RSI")

// Execute long and short trades
if (longCondition)
strategy.entry("Long", strategy.long)
if (shortCondition)
strategy.entry("Short", strategy.short)
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.