
이 전략은 47주기 및 95주기 지수 이동 평균 ((EMA) 을 주로 사용하여 시장의 추세를 포착하고, 평행선 교차 신호를 통해 거래를 수행합니다. 이 전략은 15분 시간 주기에서 작동하며, 기술 분석과 동적 거래의 핵심 심리를 통합하여 안정적인 거래 수익을 달성하기 위해 고안되었습니다.
전략의 핵심은 단기 EMA ((47주기) 와 장기 EMA ((95주기) 의 교차를 사용하여 트렌드 변화를 식별하는 것입니다. 단기 EMA가 상향으로 장기 EMA를 통과하면, 시스템은 여러 신호를 생성합니다. 단기 EMA가 하향으로 장기 EMA를 통과하면, 시스템은 평평합니다. 이 디자인은 가격 동력과 트렌드 연속성 원칙에 기반하여, 동선 교차를 통해 트렌드 전환점을 확인하여 시장의 주요 움직임을 파악합니다.
이것은 명확한 구조와 논리적으로 엄격한 트렌드 추적 전략이다. 쌍평선 교차를 통해 시장 추세를 포착하고, 더 나은 조작성과 확장성을 가지고 있다. 비록 일정 한계가 있지만, 지속적인 최적화와 개선을 통해 안정적이고 신뢰할 수 있는 거래 시스템으로 발전할 가능성이 있다.
/*backtest
start: 2019-12-23 08:00:00
end: 2024-11-27 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("EMA Crossover Strategy", overlay=true)
// Define the EMA periods
shortEmaPeriod = 47
longEmaPeriod = 95
// Calculate EMAs
ema11 = ta.ema(close, shortEmaPeriod)
ema21 = ta.ema(close, longEmaPeriod)
// Plot EMAs on the chart
plot(ema11, title="11 EMA", color=color.blue, linewidth=2)
plot(ema21, title="21 EMA", color=color.red, linewidth=2)
// Generate trading signals
longSignal = ta.crossover(ema11, ema21)
shortSignal = ta.crossunder(ema11, ema21)
// Execute trades based on signals
if (longSignal)
strategy.entry("Buy", strategy.long)
if (shortSignal)
strategy.close("Buy")
// Optional: Plot buy and sell signals on the chart
plotshape(series=longSignal, location=location.belowbar, color=color.green, style=shape.labelup, text="Buy")
plotshape(series=shortSignal, location=location.abovebar, color=color.red, style=shape.labeldown, text="Sell")
// Plot buy/sell signals on the main chart
plotshape(series=longSignal, location=location.belowbar, color=color.green, style=shape.labelup, text="Buy")
plotshape(series=shortSignal, location=location.abovebar, color=color.red, style=shape.labeldown, text="Sell")