
이 전략은 평행선 교차, RSI 필터링 및 ATR 기반의 동적 스톱 손실을 결합한 양적 거래 시스템입니다. 전략은 빠른 및 느린 지수 이동 평균 (EMA) 의 교차로 트렌드 전환점을 확인하고, 상대적으로 강한 지수 (RSI) 를 필터로 도입하여 과도한 구매 또는 판매 영역에서 거래를 피합니다. 특히 실제 파장을 사용하여 ATR 동적 스톱 손실 위치를 조정하여 시장의 변동성에 따라 위험 관리 매개 변수를 조정할 수 있습니다.
전략의 핵심 논리는 다음과 같은 핵심 구성 요소를 기반으로 합니다.
이 전략은 평행 시스템 트렌드 식별, RSI 필터 가짜 신호, ATR 동적 리스크 관리, 완전한 거래 시스템을 구축한다. 전략의 주요 특징은 시장의 변동에 따라 거래 매개 변수를 조정할 수 있는 자율성이 높다. 최적화 방향을 구현함으로써 전략의 안정성과 수익성을 더욱 향상시킬 수 있다. 실전 거래 전에 충분한 역사적 데이터 회귀와 매개 변수 최적화를 권장한다.
//@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")