
Se trata de un sistema de comercio de seguimiento de tendencias basado en múltiples indicadores, que combina varios indicadores técnicos, como el promedio móvil (EMA), el indicador MACD, el indicador RSI y el análisis de la transacción. La estrategia analiza la relación entre las medias móviles a corto, medio y largo plazo, combinando el indicador de movimiento y la confirmación de la transacción, para negociar cuando la tendencia del mercado es clara.
La estrategia se basa en los siguientes elementos centrales:
La estrategia es un sistema integrado de seguimiento de tendencias, mediante el uso combinado de múltiples indicadores técnicos, que garantiza la fiabilidad de las operaciones y al mismo tiempo tiene cierta capacidad de control de riesgos. La estrategia tiene una ventaja central en su método de análisis multidimensional, pero también requiere atención al impacto del entorno del mercado en el rendimiento de la estrategia.
/*backtest
start: 2022-02-09 00:00:00
end: 2025-02-06 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Advanced EMA + MACD + RSI Strategy with Support/Resistance", overlay=true)
// Parametreler
shortEMA = input(5, title="Kısa Vadeli EMA (5)")
mediumEMA = input(14, title="Orta Vadeli EMA (14)")
longEMA = input(34, title="Uzun Vadeli EMA (34)")
extraLongEMA = input(55, title="Ekstra Uzun Vadeli EMA (55)")
rsiLength = input(14, title="RSI Periyodu")
macdShortLength = input(12, title="MACD Kısa Periyot")
macdLongLength = input(26, title="MACD Uzun Periyot")
macdSignalLength = input(9, title="MACD Signal Periyot")
volumeMultiplier = input(1.5, title="Hacim Çarpanı")
// EMA Hesaplamaları
ema5 = ta.ema(close, shortEMA)
ema14 = ta.ema(close, mediumEMA)
ema34 = ta.ema(close, longEMA)
ema55 = ta.ema(close, extraLongEMA)
// MACD Hesaplamaları
[macdLine, signalLine, _] = ta.macd(close, macdShortLength, macdLongLength, macdSignalLength)
macdHist = macdLine - signalLine
// RSI Hesaplaması
rsi = ta.rsi(close, rsiLength)
// Destek ve Direnç Hesaplamaları (en yüksek ve en düşük değerler)
highestHigh = ta.highest(high, 20)
lowestLow = ta.lowest(low, 20)
// Hacim Kontrolü
avgVolume = ta.sma(volume, 20)
volumeCondition = volume > avgVolume * volumeMultiplier
// Alım ve Satım Koşulları
longCondition = ema5 > ema14 and ema14 > ema34 and ema34 > ema55 and close > ema34 and macdHist > 0 and rsi > 50 and volumeCondition
shortCondition = ema5 < ema14 and ema14 < ema34 and ema34 < ema55 and close < ema34 and macdHist < 0 and rsi < 50 and volumeCondition
// Alım ve Satım İşlemleri
if (longCondition)
strategy.entry("Long", strategy.long)
if (shortCondition)
strategy.entry("Short", strategy.short)
// Grafik Üzerinde Göstergeler
plot(ema5, color=color.blue, title="5 EMA")
plot(ema14, color=color.green, title="14 EMA")
plot(ema34, color=color.red, title="34 EMA")
plot(ema55, color=color.purple, title="55 EMA")
hline(50, "RSI 50", color=color.gray, linestyle=hline.style_dotted)
plot(highestHigh, color=color.orange, title="Direnç", linewidth=2)
plot(lowestLow, color=color.red, title="Destek", linewidth=2)