
Đây là một hệ thống giao dịch theo dõi xu hướng dựa trên nhiều chỉ số, kết hợp nhiều chỉ số kỹ thuật như đường trung bình di chuyển (EMA), chỉ số MACD, chỉ số RSI và phân tích khối lượng giao dịch. Chiến lược này thực hiện giao dịch khi xu hướng thị trường rõ ràng bằng cách phân tích mối quan hệ giữa đường trung bình di chuyển ngắn hạn, trung hạn và dài hạn, kết hợp chỉ số động lượng và xác nhận khối lượng giao dịch. Hệ thống cũng giới thiệu phân tích vị trí hỗ trợ và kháng cự, tiếp tục cải thiện độ chính xác của giao dịch.
Chiến lược này dựa trên các yếu tố cốt lõi sau:
Chiến lược này là một hệ thống theo dõi xu hướng tổng hợp, sử dụng nhiều chỉ số kỹ thuật kết hợp, đồng thời có khả năng kiểm soát rủi ro để đảm bảo độ tin cậy của giao dịch. Điểm mạnh cốt lõi của chiến lược là phương pháp phân tích đa chiều của nó, nhưng cũng cần chú ý đến tác động của môi trường thị trường đối với hiệu suất của chiến lược.
/*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)