Dies ist eine kurzfristige Handelsstrategie, die auf dem Indikator RSI (Relative Strength Index) basiert.
Die Strategie verwendet einen 5-Perioden-RSI, um die kurzfristige Kursdynamik zu erfassen.
Lange Einstiegsbedingungen: bisherige Candle
Ausstiegsbedingungen: Wenn die RSI-Kurve niedrigere Tiefststände erreicht, was auf eine Schwächung hinweist, werden Longpositionen geschlossen.
Optimierung:
Die Strategie nutzt das Umkehrmuster von RSI-Gipfeln und -Tropfen, um klare Long-Entry- und Stop-Loss-Regeln festzulegen.
/*backtest start: 2024-01-14 00:00:00 end: 2024-01-21 00:00:00 period: 30m basePeriod: 15m exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}] */ //@version=5 strategy("*RSI 5 - Long only- Daily charts & above*", overlay = false) // Define inputs rsi_length = input(5, "RSI Length") // Calculate indicators rsi = ta.rsi(close, rsi_length) // Entry conditions long = rsi[1] < 50 and rsi > 60 // Exit conditions longExit = rsi < rsi[1] // Execute trade with adjusted position size if (long) strategy.entry("Long", strategy.long) if (longExit) strategy.close("LongExit") // Close long position if long exit condition is met if (longExit) strategy.close("Long", comment="Long exit") rsiPlot = plot(rsi, "RSI", color=#7E57C2) rsiUpperBand = hline(60, "RSI Upper Band", color=#787B86) midline = hline(50, "RSI Middle Band", color=color.new(#787B86, 50)) rsiLowerBand = hline(40, "RSI Lower Band", color=#787B86) fill(rsiUpperBand, rsiLowerBand, color=color.rgb(126, 87, 194, 90), title="RSI Background Fill")