गति दोलनकर्ता और 123 पैटर्न रणनीति

लेखक:चाओझांग, दिनांकः 2024-01-25 14:27:29
टैगः

img

अवलोकन

यह रणनीति मुनाफे में सुधार के लिए संचयी ट्रेडिंग सिग्नल में मोमेंटम ऑसिलेटर इंडेक्स और 123 पैटर्न को जोड़ती है। मोमेंटम ऑसिलेटर बाजार की अस्थिरता को ट्रैक करता है और अल्पकालिक रुझानों को पकड़ने के लिए आरएसआई मापदंडों को समायोजित करता है। 123 पैटर्न अल्पकालिक में कीमतों के मामूली उच्च और निम्न की पहचान करके व्यापार संकेत बनाता है। दोनों रणनीतियों का संयोजन रणनीति को विभिन्न बाजार वातावरण में प्रदर्शन बनाए रखने की अनुमति देता है।

रणनीति तर्क

123 पैटर्न

123 पैटर्न में तीन चरण होते हैं। पहला, कीमत लगातार दो दिनों तक गिरती है। दूसरा, कीमत अगले दो दिनों तक बढ़ती है। अंत में, तीसरे दिन कीमत फिर से गिरती है। इस पैटर्न के अनुसार, हम निर्धारित कर सकते हैं कि दूसरे चरण में कीमतों में वृद्धि होने पर एक लंबी स्थिति स्थापित करें, और तीसरे चरण में कीमतों में गिरावट आने पर एक छोटी स्थिति।

विशेष रूप से, यदि समापन मूल्य दो दिनों की गिरावट के बाद लगातार दो दिनों के लिए पिछले समापन से अधिक है, और 9-दिवसीय स्टोकेस्टिक स्लो 50 से नीचे है, तो यह एक खरीद संकेत है। यदि समापन मूल्य दो दिनों की वृद्धि के बाद लगातार दो दिनों के लिए पिछले समापन से कम है, और 9-दिवसीय स्टोकेस्टिक फास्ट 50 से ऊपर है, तो यह एक बिक्री संकेत है।

गति दोलनकर्ता

मोमेंटम ऑसिलेटर का निर्माण आरएसआई के समान है, मुख्य अंतर मोमेंटम ऑसिलेटर की चर अवधि है। अवधि की संख्या हाल की मूल्य अस्थिरता पर निर्भर करती है - उच्च अस्थिरता कम अवधि के लिए अग्रणी है, जिससे संकेतक अधिक संवेदनशील हो जाता है, जबकि स्थिर कीमतें झूठे संकेतों को कम करने के लिए लंबी अवधि का नेतृत्व करती हैं।

गणना सूत्र हैः

DMI = RSI(DTime)  

Where:  
DTime = 14 / 10-day SMA of standard deviation of close over past 5 days

यह आरएसआई के समान ओवरबॉट/ओवरसोल्ड सीमाओं को साझा करता हैः

अधिक खरीदा गयाः डीएमआई > 30 ओवरसोल्डः डीएमआई < 70

जब डीएमआई इन सीमाओं को पार करता है तो खरीद और बिक्री संकेत उत्पन्न होते हैं।

लाभ विश्लेषण

  1. 123 पैटर्न सरल और प्रभावी है। यह अल्पकालिक उलट पैटर्न का उपयोग करता है ताकि यह मामूली निचले स्तरों पर प्रवेश कर सके और मामूली ऊंचाइयों पर बाहर निकल सके, जिससे प्रवृत्ति के खिलाफ स्थिति लेने से बचा जा सके।

  2. मोमेंटम ऑसिलेटर अधिक संवेदनशील होता है। इसकी परिवर्तनीय अवधि उसे बाजार के अनुकूल होने और उच्च अस्थिरता के दौरान भी समय पर मोड़ बिंदुओं को पकड़ने की अनुमति देती है।

  3. दोनों रणनीतियाँ प्रभावी ढंग से झूठे संकेतों को फ़िल्टर करने में मदद करती हैं। जब 123 संकेत होते हैं तो बाजार के संदर्भ के लिए डीएमआई की जांच करने से प्रवृत्ति के खिलाफ व्यापार से नुकसान कम हो सकता है।

  4. दोनों रणनीतियों की ताकतों को जोड़ती है। 123 पैटर्न के साथ एक फिल्टर के रूप में डीएमआई का उपयोग करने से सिस्टम की स्थिरता में काफी वृद्धि होती है।

जोखिम विश्लेषण

  1. दोनों डीएमआई और 123 पैटर्न झूठे संकेत उत्पन्न कर सकते हैं जब कीमतें पलटने के बजाय अस्थायी रूप से उतार-चढ़ाव कर रही हैं।

  2. संभावित रूप से उच्च व्यापार आवृत्ति। डीएमआई की चर अवधि इसे बाजार शोर के लिए अत्यंत संवेदनशील बनाती है। व्यापार आवृत्ति को नियंत्रित करने के लिए मापदंडों को उचित रूप से समायोजित करने की आवश्यकता होती है।

  3. 123 पैटर्न मध्यम अवधि के रुझान के अवसरों को याद कर सकता है। यह मुख्य रूप से अल्पकालिक उलटफेर को पकड़ता है और मध्यम दीर्घकालिक रुझानों से लगातार लाभ नहीं उठा सकता है।

  4. अधिकतम ट्रेडों को सीमित करने की आवश्यकता है. बहुत अधिक ट्रेडों के परिणामस्वरूप भारी कमीशन शुल्क और फिसलने की लागत हो सकती है.

अनुकूलन दिशाएँ

  1. डीएमआई मापदंडों को अनुकूलित करें. सबसे अच्छा संयोजन खोजने के लिए विभिन्न आरएसआई अवधि, सीमा मानों का परीक्षण कर सकते हैं.

  2. 123 पैटर्न फ़िल्टर अनुकूलित करें. विभिन्न स्टोच पैरामीटर या अन्य फ़िल्टर जैसे एमएसीडी का परीक्षण कर सकते हैं.

  3. स्टॉप लॉस तंत्र जोड़ें. उचित स्टॉप लॉस आकार खोने वाले ट्रेडों पर गिरावट को सीमित करने में मदद करते हैं.

  4. स्थिति आकार के नियम जोड़ें। निश्चित मात्रा या निश्चित अंश स्थिति आकार जोखिम नियंत्रण में सुधार करता है।

निष्कर्ष

यह रणनीति ट्रेड सिग्नल प्रदर्शन में सुधार के लिए मोमेंटम ऑसिलेटर और 123 पैटर्न दोनों से विश्लेषण को जोड़ती है। हालांकि, कोई भी एकल रणनीति बदलती बाजार स्थितियों के लिए पूरी तरह से अनुकूल नहीं हो सकती है। निवेशकों को जोखिमों को नियंत्रित करने, लगातार बैकटेस्ट करने और लाइव परिणामों के आधार पर मापदंडों को अपडेट करने पर ध्यान केंद्रित करना चाहिए ताकि लाभप्रदता बनाए रखी जा सके।


/*backtest
start: 2024-01-17 00:00:00
end: 2024-01-24 00:00:00
period: 1m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 18/03/2020
// This is combo strategies for get a cumulative signal. 
//
// First strategy
// This System was created from the Book "How I Tripled My Money In The 
// Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
// The strategy buys at market, if close price is higher than the previous close 
// during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50. 
// The strategy sells at market, if close price is lower than the previous close price 
// during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
//
// Second strategy
// This indicator plots Dynamic Momentum Index indicator. The Dynamic Momentum 
// Index (DMI) was developed by Tushar Chande and Stanley Kroll. The indicator 
// is covered in detail in their book The New Technical Trader.
// The DMI is identical to Welles Wilder`s Relative Strength Index except the 
// number of periods is variable rather than fixed. The variability of the time 
// periods used in the DMI is controlled by the recent volatility of prices. 
// The more volatile the prices, the more sensitive the DMI is to price changes. 
// In other words, the DMI will use more time periods during quiet markets, and 
// less during active markets. The maximum time periods the DMI can reach is 30 
// and the minimum is 3. This calculation method is similar to the Variable 
// Moving Average, also developed by Tushar Chande.
// The advantage of using a variable length time period when calculating the RSI 
// is that it overcomes the negative effects of smoothing, which often obscure short-term moves.
// The volatility index used in controlling the time periods in the DMI is based 
// on a calculation using a five period standard deviation and a ten period average 
// of the standard deviation.
//
// WARNING:
// - For purpose educate only
// - This script to change bars colors.
////////////////////////////////////////////////////////////
Reversal123(Length, KSmoothing, DLength, Level) =>
    vFast = sma(stoch(close, high, low, Length), KSmoothing) 
    vSlow = sma(vFast, DLength)
    pos = 0.0
    pos := iff(close[2] < close[1] and close > close[1] and vFast < vSlow and vFast > Level, 1,
	         iff(close[2] > close[1] and close < close[1] and vFast > vSlow and vFast < Level, -1, nz(pos[1], 0))) 
	pos

DMI(RSILen, BuyZone,SellZone,UpLimit,LoLimit) =>
    pos = 0
    xStdDev = stdev(close, 5) 
    xSMAStdDev = sma(xStdDev, 10)
    DTime = round(14 / xSMAStdDev - 0.5)
    xDMI = iff(DTime > UpLimit, UpLimit,
             iff(DTime < LoLimit, LoLimit, DTime))
    xRSI = rsi(xDMI, RSILen)
    pos := iff(xRSI > BuyZone, 1,
             iff(xRSI < SellZone, -1, nz(pos[1], 0))) 
    pos

strategy(title="Combo Backtest 123 Reversal & Dynamic Momentum Index", shorttitle="Combo", overlay = true)
Length = input(14, minval=1)
KSmoothing = input(1, minval=1)
DLength = input(3, minval=1)
Level = input(50, minval=1)
//-------------------------
RSILen = input(14, minval=1)
BuyZone = input(30, minval=1)
SellZone = input(70, minval=1)
UpLimit = input(30, minval=1)
LoLimit = input(5, minval=1)
reverse = input(false, title="Trade reverse")
posReversal123 = Reversal123(Length, KSmoothing, DLength, Level)
posDMI = DMI(RSILen, BuyZone,SellZone,UpLimit,LoLimit)
pos = iff(posReversal123 == 1 and posDMI == 1 , 1,
	   iff(posReversal123 == -1 and posDMI == -1, -1, 0)) 
possig = iff(reverse and pos == 1, -1,
          iff(reverse and pos == -1 , 1, pos))	   
if (possig == 1) 
    strategy.entry("Long", strategy.long)
if (possig == -1)
    strategy.entry("Short", strategy.short)	 
if (possig == 0) 
    strategy.close_all()
barcolor(possig == -1 ? #b50404: possig == 1 ? #079605 : #0536b3 )

अधिक