
Die Strategie ist ein quantitatives Handelssystem, das ein Gleichgewichtskreuz, eine RSI-Filterung und einen ATR-basierten dynamischen Stop-Loss kombiniert. Die Strategie bestätigt die Trendwendepunkte durch die Kreuzung von schnellen und langsamen Index-Moving Averages (EMA), während der relativ starke Index (RSI) als Filter eingeführt wird, um zu vermeiden, dass in übermäßigen Kauf- oder Verkaufszonen gehandelt wird. Besonders wichtig ist die Verwendung von echten Wellenlängen (ATR), die die Stop-Loss-Position dynamisch anpassen, um die Risikomanagementparameter entsprechend der Marktvolatilität anzupassen.
Die Kernlogik der Strategie basiert auf den folgenden Schlüsselkomponenten:
Die Strategie baut ein vollständiges Handelssystem auf, indem sie durch die Identifizierung von Trends, RSI-Filterfalschsignalen und ATR-Dynamikrisiken ein Gleichgewichtssystem erstellt. Die Hauptmerkmale der Strategie sind die hohe Anpassungsfähigkeit und die Fähigkeit, die Handelsparameter an die Marktfluktuation anzupassen. Durch die Implementierung der Optimierungsrichtung kann die Stabilität und Profitabilität der Strategie weiter verbessert werden.
//@version=6
strategy("High Win Rate Dogecoin Strategy", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
// Input Parameters
fastLength = input(9, title="Fast EMA Length")
slowLength = input(21, title="Slow EMA Length")
atrLength = input(14, title="ATR Length")
atrMultiplier = input(2.5, title="ATR Multiplier")
rsiLength = input(14, title="RSI Length")
rsiOverbought = input(70, title="RSI Overbought")
rsiOversold = input(30, title="RSI Oversold")
// Indicators
fastEMA = ta.ema(close, fastLength)
slowEMA = ta.ema(close, slowLength)
atr = ta.atr(atrLength)
rsi = ta.rsi(close, rsiLength)
// Entry Conditions
longCondition = ta.crossover(fastEMA, slowEMA) and rsi > rsiOversold
shortCondition = ta.crossunder(fastEMA, slowEMA) and rsi < rsiOverbought
// Stop Loss & Take Profit
longStopLoss = close - (atr * atrMultiplier)
longTakeProfit = close + (atr * atrMultiplier * 2)
shortStopLoss = close + (atr * atrMultiplier)
shortTakeProfit = close - (atr * atrMultiplier * 2)
// Strategy Entries
if longCondition
strategy.entry("Long", strategy.long)
strategy.exit("TakeProfitLong", from_entry="Long", limit=longTakeProfit, stop=longStopLoss)
if shortCondition
strategy.entry("Short", strategy.short)
strategy.exit("TakeProfitShort", from_entry="Short", limit=shortTakeProfit, stop=shortStopLoss)
// Plot Signals
plotshape(series=longCondition, location=location.belowbar, color=color.green, style=shape.labelup, title="Buy Signal")
plotshape(series=shortCondition, location=location.abovebar, color=color.red, style=shape.labeldown, title="Sell Signal")
// Plot EMAs for visualization
plot(fastEMA, color=color.blue, title="Fast EMA")
plot(slowEMA, color=color.orange, title="Slow EMA")