
Die Strategie ist ein Handelssystem, das auf Trendkanälen, Preisumkehrformeln und Dynamikindikatoren basiert. Es kombiniert ein Gleichgewichtssystem (EMA) zur Bestimmung der Trendrichtung, verwendet einen relativ starken Indikator (RSI) zur Identifizierung von Korrekturbereichen und sucht nach exakten Einstiegsmomenten durch Verschlucken von Formen. Die Strategie verwaltet das Risiko durch dynamische Volatilitätsindikatoren (ATR) und erzielt schnelle Gewinne.
Die Kernlogik der Strategie basiert auf der synergetischen Validierung von mehreren technischen Kennzahlen:
Die Strategie baut ein systematisches Handelssystem auf, indem sie technische Analyse-Tools kombiniert verwendet. Sie konzentriert sich sowohl auf Trends als auch auf Preisumkehrungen und erhöht die Erfolgsrate der Transaktionen durch Multiple-Indikator-Verifizierung. Obwohl es einige Einschränkungen gibt, bietet sie den Händlern durch kontinuierliche Optimierung und Risikomanagement eine zuverlässige Handelsreferenz.
/*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")