
동적 하락 트리플 운행 이동 평균 트렌드 트레이딩 전략은 다단계 이동 평균 시스템을 기반으로 한 양적 거래 방법이며, 이 전략은 시장의 추세 방향을 판단하고 거래 기회를 식별하기 위해 세 개의 다른 주기의 운행 이동 평균 (RMA) 을 사용합니다. 이 전략은 또한 상대적으로 강한 지표 (RSI) 와 도표 구조 분석을 결합하여 더 높은 확률의 진입 신호를 제공합니다. 이 전략은 특히 다른 시장 유형 (외환, 금 및 암호화폐) 에 따라 자동으로 조정되는 동적 하락 시스템을 설계하여 다른 자산 클래스의 변동 특성에 맞게 조정할 수 있습니다.
이 전략의 핵심은 3단계 RMA 시스템과 동적 하락 판단 메커니즘입니다.
삼중 RMA 시스템:
동향 판단:
동적 경량 시스템:
입학 조건:
스톱 스톱 손실 설정:
시장 유형:
다단계 인증 메커니즘:
추세 강도를 측정합니다.:
트렌드 상태를 시각화합니다.:
합리적인 제지장치:
위기 시장의 잘못된 신호:
매개변수 민감도:
고정 손실 위험:
역사 재검토 변수 의존:
신호 지연성:
적응적 절댓값 최적화:
손해 방지 장치 강화:
시장 상태 분류 최적화:
시간 필터:
일부 수익이 잠금되어 있습니다.:
필터 조정:
동적 하락 트리플 운용 이동 평균 트렌드 거래 전략은 세 층의 RMA 시스템과 동적 하락 판단을 통해 지능적인 시장 적응 메커니즘을 제공하는 구조화된 정량 거래 시스템입니다. 이 전략은 트렌드 추적, 동적 확인 및 가격 구조 분석의 장점을 결합하고 다양한 자산 클래스의 변동 특성에 최적화됩니다.
전략의 주요 장점은 여러 계층의 확증 메커니즘과 시장 적응성이므로 가짜 신호를 효과적으로 줄이고 다양한 시장 조건에서 안정성을 유지할 수 있습니다. 그러나, 그것은 또한 흔들림 시장의 가짜 신호와 변수 민감성 등의 위험에 직면합니다.
자율적 인 마이너스 계산, 강화 된 손실 메커니즘 및 시장 상태 분류 최적화와 같은 개선 조치를 구현함으로써이 전략에 큰 개선 공간이 있습니다. 특히 ATR의 동적 손실 및 이익 잠금 기능을 결합하면 위험 관리 능력을 크게 개선하여 다양한 시장 환경에서 전략이 안정성을 유지할 수 있습니다.
이 전략은 트렌드 트레이딩을 추구하는 양적 투자자에게 개인 위험 선호도와 펀드 관리 원칙에 따라 추가적으로 맞춤화 및 최적화 할 수있는 견고한 프레임 워크를 제공합니다.
/*backtest
start: 2025-03-18 00:00:00
end: 2025-04-02 00:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"TRX_USD"}]
*/
//@version=5
strategy("RMA Strategy - Weekly Dynamic Thresholds", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
// === User Inputs ===
fastLen = input.int(9, title="Fast RMA")
midLen = input.int(21, title="Mid RMA")
slowLen = input.int(50, title="Slow RMA")
rsiLen = input.int(8, title="RSI Length")
slPoints = input.float(10, title="Stop Loss (Points)")
// === Weekly Threshold Inputs ===
forexThreshold = input.float(0.12, title="Forex Weekly Avg RMA Distance (%)", step=0.01)
goldThreshold = input.float(0.15, title="Gold Weekly Avg RMA Distance (%)", step=0.01)
cryptoThreshold = input.float(0.25, title="Crypto Weekly Avg RMA Distance (%)", step=0.01)
// === Select Current Market Type ===
marketType = input.string("FOREX", title="Asset Class", options=["FOREX", "GOLD", "CRYPTO"])
// === Use appropriate threshold based on selected market
weeklyThreshold = marketType == "FOREX" ? forexThreshold :
marketType == "GOLD" ? goldThreshold :
cryptoThreshold // Default to crypto if somehow not matched
// === RMA Calculations ===
fastRMA = ta.rma(close, fastLen)
midRMA = ta.rma(close, midLen)
slowRMA = ta.rma(close, slowLen)
// === RSI Calculation ===
rsi = ta.rsi(close, rsiLen)
// === Trend Structure ===
bullish = fastRMA > midRMA and midRMA > slowRMA
bearish = fastRMA < midRMA and midRMA < slowRMA
// === Candle Break Conditions ===
longCandleBreak = close > high[1]
shortCandleBreak = close < low[1]
// === Distance and Trend Strength Check ===
distance = math.abs(fastRMA - midRMA)
distancePct = distance / midRMA * 100
isTrending = distancePct >= weeklyThreshold
// === Entry Conditions ===
longSignal = bullish and ta.crossover(close, midRMA) and rsi > 50 and longCandleBreak
shortSignal = bearish and ta.crossunder(close, midRMA) and rsi < 50 and shortCandleBreak
// === TP and SL Setup ===
takeProfitPriceLong = slowRMA
stopLossPriceLong = close - slPoints * syminfo.mintick
takeProfitPriceShort = slowRMA
stopLossPriceShort = close + slPoints * syminfo.mintick
// === Trade Execution ===
if (longSignal)
strategy.entry("Long", strategy.long)
strategy.exit("TP/SL Long", from_entry="Long", limit=takeProfitPriceLong, stop=stopLossPriceLong)
if (shortSignal)
strategy.entry("Short", strategy.short)
strategy.exit("TP/SL Short", from_entry="Short", limit=takeProfitPriceShort, stop=stopLossPriceShort)
// === Highlight RMAs Based on Trending Strength ===
fastColor = isTrending ? color.green : color.blue
midColor = isTrending ? color.red : color.blue
slowColor = color.orange
// === Plot RMAs ===
plot(fastRMA, color=fastColor, title="Fast RMA")
plot(midRMA, color=midColor, title="Mid RMA")
plot(slowRMA, color=slowColor, title="Slow RMA")