FX:GBPUSD   Brittiska pund/Amerikanska dollar
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)
Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.