
이 전략은 양평선 시스템과 RSI 지표에 기반한 트렌드 추적 거래 시스템이다. 이 전략은 평평선 교차 신호, RSI 초매상 판단 및 가격 돌파 확인을 결합하여 다중 필터링 된 거래 의사 결정 프레임워크를 구축한다. 전략은 6주기 및 82주기 지수 이동 평균 (EMA) 을 통해 중단기 트렌드를 포착하고, 상대적으로 강한 지수 (RSI) 를 사용하여 시장의 과열과 과냉을 필터링하고, 마지막으로 가격 돌파를 통해 거래 신호를 확인한다.
전략의 핵심 논리는 세 차원의 신호 필터링을 포함합니다:
이 전략은 평형 시스템과 RSI 지표의 교묘한 결합을 통해 논리적으로 엄격한 트렌드 추적 시스템을 구축합니다. 전략의 여러 필터링 메커니즘은 위험을 효과적으로 제어하지만 일부 거래 기회를 놓칠 수도 있습니다. 전략은 지속적인 최적화 및 개선으로 다양한 시장 환경에서 안정적인 성능을 유지할 수 있습니다.
/*backtest
start: 2024-02-17 00:00:00
end: 2025-02-15 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("EMA RSI Strategy", overlay=true)
// Input Parameters
emaShortLength = input.int(6, title="EMA Short Length")
emaLongLength = input.int(82, title="EMA Long Length")
rsiLength = input.int(14, title="RSI Length")
rsiOverbought = input.float(70, title="RSI Overbought Level")
rsiOversold = input.float(22, title="RSI Oversold Level")
// Calculations
emaShort = ta.ema(close, emaShortLength)
emaLong = ta.ema(close, emaLongLength)
rsi = ta.rsi(close, rsiLength)
// Conditions
emaBuyCondition = ta.crossover(emaShort, emaLong)
emaSellCondition = ta.crossunder(emaShort, emaLong)
higherHighCondition = close > ta.highest(close[1], 1)
lowerLowCondition = close < ta.lowest(close[1], 1)
rsiNotOverbought = rsi < rsiOverbought
rsiNotOversold = rsi > rsiOversold
// Entry Signals
buySignal = emaBuyCondition and rsiNotOverbought and higherHighCondition
sellSignal = emaSellCondition and rsiNotOversold and lowerLowCondition
// Execute Trades
if (buySignal)
strategy.entry("Buy", strategy.long)
if (sellSignal)
strategy.entry("Sell", strategy.short)
// Plotting
plot(emaShort, color=color.green, title="EMA Short")
plot(emaLong, color=color.red, title="EMA Long")
plot(rsi, title="RSI", color=color.blue, linewidth=1)
hline(rsiOverbought, title="RSI Overbought", color=color.red, linestyle=hline.style_dotted)
hline(rsiOversold, title="RSI Oversold", color=color.green, linestyle=hline.style_dotted)