
रणनीति एक व्यापक मात्रात्मक व्यापार प्रणाली है जिसमें कई औसत रेखाएं, अपेक्षाकृत कमजोर संकेतकों (आरएसआई), औसत रुझान सूचक (एडीएक्स) और लेनदेन की मात्रा विश्लेषण शामिल हैं। रणनीति को कई तकनीकी संकेतकों के सामंजस्यपूर्ण संयोजन के माध्यम से ट्रेंड की पुष्टि के आधार पर व्यापार करने के लिए, लेनदेन की मात्रा और गतिशीलता के संकेतकों को फ़िल्टर करके व्यापार की विश्वसनीयता में सुधार करने के लिए।
रणनीति का मूल तर्क निम्नलिखित प्रमुख घटकों पर आधारित है:
मल्टीपल एवरेज लाइन सिस्टम कीमतों के रुझानों के लिए एक बेंचमार्क प्रदान करता है, एडीएक्स सुनिश्चित करता है कि ट्रेड केवल तब होता है जब रुझान पर्याप्त मजबूत होता है, आरएसआई को रोकने से बचने में मदद करता है, जबकि लेनदेन की मात्रा विश्लेषण यह सुनिश्चित करता है कि ट्रेड उच्च बाजार गतिविधि के दौरान होता है।
जोखिम को निम्न तरीकों से प्रबंधित करने की सलाह दी जाती हैः
इस रणनीति का मुख्य विशेषता यह है कि यह कई पुष्टि के माध्यम से ट्रेडों की विश्वसनीयता को बढ़ाता है, जबकि विभिन्न प्रकार के फ़िल्टरों के माध्यम से जोखिम को नियंत्रित करता है। हालांकि कुछ व्यापार के अवसरों को याद किया जा सकता है, लेकिन यह व्यापार की स्थिरता में सुधार करने में मदद करता है। इस रणनीति के लिए और भी सुधार के लिए जगह है।
/*backtest
start: 2024-11-11 00:00:00
end: 2024-12-10 08:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Optimized Multi-MA Strategy with Volume, ADX and RSI", overlay=true)
// Kullanıcı Parametreleri
keh = input.int(3, title="Double HullMA", minval=1)
teh = input.int(3, title="Volume-Weighted MA", minval=1)
yeh = input.int(75, title="Base Weighted MA", minval=1)
rsiPeriod = input.int(14, title="RSI Period", minval=1)
adxPeriod = input.int(14, title="ADX Period", minval=1)
volumeLookback = input.int(10, title="Volume Lookback Period", minval=1) // Son X mumun hacmi
adxThreshold = input.int(20, title="ADX Trend Strength Threshold", minval=1) // ADX için trend gücü eşiği
// Hareketli Ortalamalar
rvwma = ta.vwma(close, teh)
yma = ta.wma(close, yeh)
n2ma = 2 * ta.wma(close, math.round(keh / 2))
nma = ta.wma(close, keh)
diff = n2ma - nma
sqrtKeh = math.round(math.sqrt(keh))
n1 = ta.wma(diff, sqrtKeh)
n2 = ta.wma(diff[1], sqrtKeh)
// ADX Hesaplaması
trueRange = ta.rma(ta.tr, adxPeriod)
plusDM = ta.rma(math.max(high - high[1], 0), adxPeriod)
minusDM = ta.rma(math.max(low[1] - low, 0), adxPeriod)
plusDI = (plusDM / trueRange) * 100
minusDI = (minusDM / trueRange) * 100
dx = math.abs(plusDI - minusDI) / (plusDI + minusDI) * 100
adx = ta.rma(dx, adxPeriod)
trendIsStrong = adx > adxThreshold
// RSI Filtreleme
rsiValue = ta.rsi(close, rsiPeriod)
rsiFilter = rsiValue > 30 and rsiValue < 70 // Aşırı alım ve aşırı satım bölgelerinin dışında olmak
// Hacim Filtresi
volumeThreshold = ta.sma(volume, volumeLookback) // Ortalama hacim seviyesi
highVolume = volume > volumeThreshold
// Sinyal Şartları (Sadece güçlü trendler ve rsi'nın aşırı bölgelerde olmaması)
longCondition = n1 > n2 and close > rvwma and trendIsStrong and rsiFilter and highVolume
shortCondition = n1 < n2 and close < rvwma and trendIsStrong and rsiFilter and highVolume
// Hacim Filtresi ile İşaretler
plotshape(series=longCondition and highVolume ? close : na, style=shape.triangleup, location=location.belowbar, color=color.blue, size=size.small, title="High Volume Long Signal")
plotshape(series=shortCondition and highVolume ? close : na, style=shape.triangledown, location=location.abovebar, color=color.purple, size=size.small, title="High Volume Short Signal")
// Strateji Giriş ve Çıkış Şartları
if (longCondition)
strategy.entry("Long", strategy.long)
if (shortCondition)
strategy.entry("Short", strategy.short)
// Görsel Göstergeler
plot(n1, color=color.green, title="N1 Line")
plot(n2, color=color.red, title="N2 Line")
plot(rvwma, color=color.yellow, linewidth=2, title="VWMA")
plot(yma, color=color.orange, title="Base Weighted MA")