
이 전략은 다중 기술 지표에 기반한 트렌드 추적 거래 시스템으로, 평평선 교차, 동력 지표, 거래량 확인의 3 차원을 결합하여 높은 확률의 거래 기회를 식별합니다. 합리적인 중지 손실 및 수익 목표를 설정하여, 이 전략은 위험을 제어하면서 높은 수익률을 추구합니다. 이 전략은 주로 더 큰 시간 주기 트렌드 거래에 적합하며, 암호화폐, 외환 및 주식 등 여러 시장에 적용됩니다.
전략의 핵심 논리는 다음과 같은 핵심 요소에 기초합니다.
이 전략은 평행선 교차, RSI 동력 및 거래량 삼중 확인 메커니즘을 통해 안정적인 트렌드 추적 시스템을 구축한다. 3 배의 수익 위험 비율이 전략에 좋은 수익 공간을 제공하며, ATR 기반의 동적 중단 메커니즘은 필요한 위험 보호를 제공합니다. 전략은 가로 시장에서 부실하게 수행 할 수 있지만, 제안된 최적화 방향으로 전략의 적응성과 안정성을 더욱 향상시킬 수 있다.
/*backtest
start: 2024-02-10 00:00:00
end: 2025-02-08 08:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("EMA Crossover Strategy", overlay=true)
// Inputs
emaShortLength = input(50, title="Short EMA Length")
emaLongLength = input(200, title="Long EMA Length")
rsiLength = input(14, title="RSI Length")
rsiOverbought = input(70, title="RSI Overbought Level")
rsiOversold = input(30, title="RSI Oversold Level")
// Calculate EMAs
emaShort = ta.ema(close, emaShortLength)
emaLong = ta.ema(close, emaLongLength)
// Calculate RSI
rsi = ta.rsi(close, rsiLength)
// Volume Confirmation
volThreshold = ta.sma(volume, 20) * 1.5
// Calculate ATR
atrValue = ta.atr(14)
// Buy Condition
buyCondition = ta.crossover(emaShort, emaLong) and rsi > 50 and volume > volThreshold
if (buyCondition)
strategy.entry("Long", strategy.long)
// Sell Condition
sellCondition = ta.crossunder(emaShort, emaLong) and rsi < 50 and volume > volThreshold
if (sellCondition)
strategy.close("Long")
// Stop Loss & Take Profit
sl = low - atrValue * 1.5 // Stop loss below recent swing low
tp = close + (close - sl) * 3 // Take profit at 3x risk-reward ratio
strategy.exit("Take Profit", from_entry="Long", limit=tp, stop=sl)
// Plot EMAs
plot(emaShort, title="50 EMA", color=color.blue)
plot(emaLong, title="200 EMA", color=color.red)