
이 전략은 평균선, 운동, 그리고 충격 지표를 결합한 통합 거래 시스템이다. 이 전략은 이동 평균의 수렴 분산 지표 ((MACD), 지수 이동 평균 ((EMA) 및 상대적으로 강한 지표 ((RSI) 의 조화 작용을 통해 시장 추세가 명확하고 충분한 동력을 가진 경우에 거래한다. 이 전략은 주로 상승 추세에 초점을 맞추고, 다중 기술 지표의 교차 검증을 통해 거래의 신호 신뢰성을 보장한다.
이 전략은 트레이드 시기를 결정하기 위해 세 가지 필터링 메커니즘을 사용합니다.
평점 조건은 다음과 같은 조건 중 하나만 충족하면 트리거할 수 있습니다.
이 전략은 여러 가지 기술 지표를 통합하여 비교적 안정적인 거래 시스템을 구축한다. 전략의 핵심 장점은 거짓 신호의 영향을 효과적으로 줄일 수 있는 여러 가지 확인 메커니즘에 있다. 합리적인 최적화와 위험 통제의 개선을 통해 이 전략은 다양한 시장 환경에서 안정적인 성능을 유지할 수 있을 것으로 보인다.
/*backtest
start: 2019-12-23 08:00:00
end: 2024-12-10 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Simplified SOL/USDT Strategy", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
// Input parameters
fast_length = input(12, "MACD Fast Length")
slow_length = input(26, "MACD Slow Length")
signal_length = input(9, "MACD Signal Length")
ema_length = input(200, "EMA Length")
rsi_length = input(14, "RSI Length")
// Calculate indicators
[macd, signal, hist] = ta.macd(close, fast_length, slow_length, signal_length)
ema200 = ta.ema(close, ema_length)
rsi = ta.rsi(close, rsi_length)
// Entry conditions
long_entry = close > ema200 and
macd > signal and
rsi > 50 and rsi < 70
// Exit conditions
long_exit = macd < signal or close < ema200 or rsi > 70
// Strategy execution
if (long_entry)
strategy.entry("Long", strategy.long)
if (long_exit)
strategy.close("Long")
// Plot indicators
plot(ema200, color=color.blue, title="EMA 200")
plot(macd, color=color.blue, title="MACD")
plot(signal, color=color.orange, title="Signal")
// Plot entry and exit points
plotshape(long_entry, title="Long Entry", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small)
plotshape(long_exit, title="Long Exit", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small)