
これは,移動平均 (EMA),MACD指標,RSI指標,取引量分析などの複数の技術指標を組み合わせた,複数の指標に基づいたトレンド追跡取引システムである.この戦略は,短期,中期,および長期の移動平均の関係性を分析し,移動量指標と取引量確認を組み合わせて,市場傾向が明確である場合に取引を行う.このシステムは,サポートとレジスタンス分析を導入し,取引の正確性をさらに向上させる.
戦略は以下の要素に基づいています.
この戦略は,総合的なトレンド追跡システムであり,複数の技術指標の配合使用によって,取引の信頼性を保証しながら,ある程度のリスク管理能力も備えている.戦略の核心的な優点は,多次元的な分析方法にあるが,同時に,市場環境が戦略のパフォーマンスに与える影響にも注意する必要がある.継続的な最適化と改善により,この戦略は実際の取引でより良いパフォーマンスを期待される.
/*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)