
यह रणनीति गतिशील मार्क रेव के संकेतकों पर आधारित है, और बुलिन बैंड और आरएसआई के साथ ट्रेडिंग सिग्नल फ़िल्टर करता है, जिससे एक ट्रेंड फॉलोइंग रणनीति प्राप्त होती है, जिसमें केवल अधिक और खाली नहीं होता है। यह रणनीति हेकर लाइन समापन मूल्य की गतिशील मार्क रेव में परिवर्तन की गणना करके ट्रेंड को निर्धारित करती है, और बुलिन बैंड की तुलना में ट्रेडिंग सिग्नल भेजती है। आरएसआई फ़िल्टर के साथ संयोजन में, ट्रेंड के विस्फोट को प्रभावी ढंग से पहचानने के लिए, ट्रेंड फॉलोइंग प्राप्त करें।
इस रणनीति का केंद्र है हेकर लाइन के समापन मूल्य के लिए गतिशील मार्क्स की औसत रेखा में परिवर्तन की गणना करना। विशेष रूप से, मार्क्स की औसत रेखा के अंतर की गणना करें जो वर्तमान K लाइन और पहले दो K लाइनों के बीच है, और फिर एक संवेदनशीलता गुणांक से गुणा करें जो मार्क्स की औसत रेखा में परिवर्तन के सटीक मूल्य को प्राप्त करता है।
इसके बाद, इस परिवर्तन को ब्रिन बैंड के अपर-रेल और डाउन-रेल के अंतर से तुलना की जाती है। यदि मार्क्स की औसत रेखा में परिवर्तन ब्रिन बैंड के अंतर से अधिक है, तो यह माना जाता है कि प्रवृत्ति में एक फ्यूज फ्यूज है। जब फ्यूज सकारात्मक होता है, तो मार्क्स की औसत रेखा में सकारात्मक परिवर्तन होता है, जो एक बहुसंकेतक और एक हरी स्तंभ रेखा उत्पन्न करता है। जब फ्यूज नकारात्मक होता है, तो मार्क्स की औसत रेखा में नकारात्मक परिवर्तन होता है, जो एक समतल स्थिति संकेत और एक लाल स्तंभ रेखा उत्पन्न करता है।
इसके अलावा, रणनीति में एक आरएसआई फ़िल्टर है, जो केवल आरएसआई के निचले स्तर से ऊपर होने पर ही अधिक संकेत देता है, जिससे रुझान में बदलाव का जोखिम होता है।
जोखिम को कम करने के उपायों में शामिल हैंः पैरामीटर को उचित रूप से समायोजित करें ताकि यह अधिक स्थिर हो, अन्य संकेतकों के साथ मिलकर प्रवृत्ति को उलट दें, केवल लंबी रेखा स्पष्ट प्रवृत्ति में उपयोग करें, आदि।
इस रणनीति में कुछ अनुकूलन के लिए भी जगह हैः
विभिन्न मूल्य स्रोतों का प्रयोग करें, जैसे कि समापन मूल्य, औसत, आदि, बेहतर स्मूदीकरण के लिए
विभिन्न किस्मों के लिए अनुकूलित करने के लिए मार्क समानांतर और ब्रिन बैंड के आवधिक मापदंडों को समायोजित करें
अनुपातिक संबंधों को संवेदनशीलता गुणांक के स्थान पर रखने की कोशिश करें, जिससे सूचकांक परिणाम अधिक सहज हों
अन्य फ़िल्टर जोड़ें, जैसे कि प्रवृत्ति औसत रेखा, लेनदेन की मात्रा आदि, सिग्नल की गुणवत्ता में सुधार करें
सूचक आकृति के आधार पर उलटा संचालन के लिए एक खाली सिर रणनीति विकसित करना
स्टॉपलॉस में शामिल होकर जोखिम को बेहतर तरीके से नियंत्रित करें
इस रणनीति के लिए कुल मिलाकर एक अधिक स्थिर प्रवृत्ति ट्रैकिंग रणनीति है. यह एक गतिशील औसत रेखा प्रवृत्ति दिशा का फैसला करने के लिए, बुरीन बैंड विस्फोट की पहचान, आरएसआई फ़िल्टर झूठे संकेतों का उपयोग करता है, एक प्रवृत्ति प्रणाली है कि केवल अधिक करता है. लेकिन वहाँ भी कुछ जोखिम है, विभिन्न किस्मों और चक्रों के लिए पैरामीटर अनुकूलन की आवश्यकता है, और गिरावट की स्थिति से लाभ नहीं ले सकता है. इस रणनीति के अलावा और भी बेहतर प्रदर्शन के लिए संकेत की गुणवत्ता में सुधार, हवाई जहाज रणनीति का विकास, जोड़ा गया है, आदि के लिए अनुकूलन अंतरिक्ष.
/*backtest
start: 2022-11-08 00:00:00
end: 2023-11-14 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
///////////Original Script Courtesy of Lazy_Bear.... Absolute Legend\\\\\\\\\\\\\\\
strategy('SmoothedWaddah', overlay=false, initial_capital=1)
sensitivity = input(150, title='Sensitivity')
fastLength = input(20, title='MacD FastEMA Length')
slowLength = input(40, title='MacD SlowEMA Length')
channelLength = input(20, title='BB Channel Length')
mult = input(1.5, title='BB Stdev Multiplier')
RSI14filter = input(40, title='RSI Value trade filter')
////////////MacD Calculation of price//////////////////////////////
calc_macd(source, fastLength, slowLength) =>
fastMA = ta.ema(source, fastLength)
slowMA = ta.ema(source, slowLength)
fastMA - slowMA
/////////BolingerBand Calculation of Price///////////////////////
calc_BBUpper(source, length, mult) =>
basis = ta.sma(source, length)
dev = mult * ta.stdev(source, length)
basis + dev
calc_BBLower(source, length, mult) =>
basis = ta.sma(source, length)
dev = mult * ta.stdev(source, length)
basis - dev
//////heinkenashi chart call for closing price "smoothing mechanism"\\\\\\\\\\\\\\\\\\\\\\\\\\\
point = request.security(ticker.heikinashi(syminfo.tickerid), timeframe.period, close)
////////////////////T1 is change in MacD current candle from previous candle Sensitivy amplifies calculation/////////////////////
t1 = (calc_macd(point, fastLength, slowLength) - calc_macd(point[1], fastLength, slowLength)) * sensitivity
//////////////////////T2 is T1 from two candles prior\\\\\\\\\\\\\\\\\\\\\\\\\\\
t2 = (calc_macd(point[2], fastLength, slowLength) - calc_macd(point[3], fastLength, slowLength)) * sensitivity
////////////////E1 is difference in bolinger band upper and lower...E2 is E1 from one candle prior not needed//////////////
e1 = calc_BBUpper(ohlc4, channelLength, mult) - calc_BBLower(ohlc4, channelLength, mult)
//e2 = (calc_BBUpper(close[1], channelLength, mult) - calc_BBLower(close[1], channelLength, mult))
//////signal bar printing.. Up if MacD positive .. Down if MacD negative//////////
trendUp = t1 >= 0 ? t1 : 0
trendDown = t1 < 0 ? -1 * t1 : 0
///////plots difference in macD*Sensitivity, color change if increasing or decreasing.
//////color is green/lime if explosion is up \ color is red/orange if explosion is down/////////
plot(trendUp, style=plot.style_columns, linewidth=1, color=trendUp < trendUp[1] ? color.new(color.lime,45) : color.new(color.green,45), title='UpTrend')
plot(trendDown, style=plot.style_columns, linewidth=1, color=trendDown < trendDown[1] ? color.new(color.orange,45) : color.new(color.red,45), title='DownTrend')
plot(e1, style=plot.style_line, linewidth=2, color=color.new(#A0522D, 0), title='ExplosionLine')
////////////Entry conditions and Concept/////////////////////
////////////Long Only System. T1 is measuring the distance between MACD EMA's. This is Multiplied
////////////by the sensitivity so that it can be compared to the difference between BollingerBand.
/////////////{this could have been a ratio maybe i will work with that in a different script.}
/////////////I found that 135-175 sensitivy allows for values to be compared on most charts.....
////////////If the (difference between the EMA)*(Sensitivity) is greater than (BB upper line- BB lower line)
////////////it is considered an explosion in either the downside or the upside.The indicator will print
///////////a bar higher than the trigger line either green or red (up or down respectively)//////////////////
longCondition = trendUp > e1 and ta.rsi(close, 14) > RSI14filter
if longCondition
strategy.entry('up', strategy.long)
strategy.close('up', trendDown > e1)