
이 전략은 트렌드 채널, 가격 반전 형태, 그리고 동력 지표에 기반한 거래 시스템이다. 그것은 동향 방향을 결정하기 위해 평평선 시스템 (EMA) 을 결합하고, 비교적 강한 지표 (RSI) 를 사용하여 정리 범위를 식별하고, 침수 형태를 통해 정확한 입문 시기를 찾는다. 전략은 동적인 변동성 지표 (ATR) 를 통해 위험을 관리하고, 빠른 수익을 달성한다.
이 전략의 핵심 논리는 다층적인 기술 지표의 공동 검증에 기반을 두고 있습니다.
이 전략은 기술 분석 도구를 통합하여 체계화된 거래 체계를 구축한다. 이는 트렌드 추적과 가격 반동에 중점을 두며, 다중 지표 검증을 통해 거래 성공률을 높인다. 제한이 있기는 하지만, 지속적인 최적화와 위험 관리를 통해 거래자에게 신뢰할 수 있는 거래 참고 자료를 제공할 수 있다.
/*backtest
start: 2019-12-23 08:00:00
end: 2024-12-09 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Gold Scalping Strategy with Precise Entries", overlay=true)
// Inputs for EMAs and ATR
ema50 = ta.ema(close, 50)
ema200 = ta.ema(close, 200)
atr = ta.atr(14)
rsi = ta.rsi(close, 14)
// Set 50 pips for gold (assuming 1 pip = 0.10 movement in XAU/USD)
pip_target = 20 * 0.10
// Bullish/Bearish Engulfing Pattern
bullish_engulfing = close > open and close[1] < open[1] and close > close[1] and open < close[1]
bearish_engulfing = close < open and close[1] > open[1] and close < close[1] and open > close[1]
// Define trend and exact entry conditions
longCondition = (ema50 > ema200) and (rsi >= 45 and rsi <= 55) and (bullish_engulfing) and (close > ema50)
shortCondition = (ema50 < ema200) and (rsi >= 45 and rsi <= 55) and (bearish_engulfing) and (close < ema50)
// ATR-based stop loss
longStopLoss = close - atr
shortStopLoss = close + atr
// Entry Conditions with precise points
if (longCondition)
strategy.entry("Long", strategy.long)
strategy.exit("Take Profit/Stop Loss", "Long", limit=close + pip_target, stop=longStopLoss)
if (shortCondition)
strategy.entry("Short", strategy.short)
strategy.exit("Take Profit/Stop Loss", "Short", limit=close - pip_target, stop=shortStopLoss)
// Plot EMAs
plot(ema50, color=color.green, title="50 EMA")
plot(ema200, color=color.red, title="200 EMA")
// Plot Buy/Sell Signals
plotshape(series=longCondition, location=location.belowbar, color=color.green, style=shape.labelup, title="Buy Signal", text="BUY")
plotshape(series=shortCondition, location=location.abovebar, color=color.red, style=shape.labeldown, title="Sell Signal", text="SELL")