
इस रणनीति में दो तकनीकी संकेतकों को शामिल किया गया है, एक संशोधित हल चलती औसत ((HMA) और एक दृष्टि संतुलन ((Ichimoku Kinko Hyo) बाजार के मध्यम और दीर्घकालिक रुझानों को पकड़ने के लिए। रणनीति का मुख्य विचार एचएमए का उपयोग करना है और एक दृष्टि संतुलन में एक आधार रेखा ((किजुन सेन) के साथ क्रॉस सिग्नल का उपयोग करना है, जबकि एक दृष्टि संतुलन के बादल ((कुमो) को फ़िल्टर शर्त के रूप में जोड़ना है, ताकि बाजार की प्रवृत्ति की दिशा का आकलन किया जा सके और व्यापार किया जा सके।
इस रणनीति में एक संशोधित हल चलती औसत और एक दृष्टि संतुलन के साथ एक अपेक्षाकृत मजबूत प्रवृत्ति ट्रैक ट्रेडिंग प्रणाली का निर्माण किया गया है। रणनीति तर्क स्पष्ट है, इसे लागू करना आसान है, लेकिन इसके कुछ फायदे भी हैं। हालांकि, रणनीति का प्रदर्शन अभी भी बाजार की स्थितियों और पैरामीटर सेटिंग्स से प्रभावित है, और आगे अनुकूलन और सुधार की आवश्यकता है। वास्तविक अनुप्रयोगों में, रणनीति को विशिष्ट बाजार विशेषताओं और जोखिम वरीयताओं के साथ उचित रूप से समायोजित और प्रबंधित किया जाना चाहिए ताकि बेहतर व्यापार परिणाम प्राप्त किए जा सकें।
/*backtest
start: 2024-04-20 00:00:00
end: 2024-04-27 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=4
strategy("Hull MA_X + Ichimoku Kinko Hyo Strategy", shorttitle="HMX+IKHS", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100, pyramiding=0)
// Hull Moving Average Parameters
keh = input(12, title="Double HullMA")
n2ma = 2 * wma(close, round(keh/2)) - wma(close, keh)
sqn = round(sqrt(keh))
hullMA = wma(n2ma, sqn)
// Ichimoku Kinko Hyo Parameters
tenkanSenPeriods = input(9, title="Tenkan Sen Periods")
kijunSenPeriods = input(26, title="Kijun Sen Periods")
senkouSpanBPeriods = input(52, title="Senkou Span B Periods")
displacement = input(26, title="Displacement")
// Ichimoku Calculations
highestHigh = highest(high, max(tenkanSenPeriods, kijunSenPeriods))
lowestLow = lowest(low, max(tenkanSenPeriods, kijunSenPeriods))
tenkanSen = (highest(high, tenkanSenPeriods) + lowest(low, tenkanSenPeriods)) / 2
kijunSen = (highestHigh + lowestLow) / 2
senkouSpanA = ((tenkanSen + kijunSen) / 2)
senkouSpanB = (highest(high, senkouSpanBPeriods) + lowest(low, senkouSpanBPeriods)) / 2
// Plot Ichimoku
p1 = plot(tenkanSen, color=color.blue, title="Tenkan Sen")
p2 = plot(kijunSen, color=color.red, title="Kijun Sen")
p3 = plot(senkouSpanA, color=color.green, title="Senkou Span A", offset=displacement)
p4 = plot(senkouSpanB, color=color.orange, title="Senkou Span B", offset=displacement)
fill(p3, p4, color=color.gray, title="Kumo Shadow")
// Trading Logic
longCondition = crossover(hullMA, kijunSen) and close > senkouSpanA[displacement] and close > senkouSpanB[displacement]
shortCondition = crossunder(hullMA, kijunSen) and close < senkouSpanA[displacement] and close < senkouSpanB[displacement]
// Strategy Execution
if (longCondition)
strategy.entry("Long", strategy.long)
if (shortCondition)
strategy.entry("Short", strategy.short)
// Exit Logic - Exit if HullMA crosses KijunSen in the opposite direction
exitLongCondition = crossunder(hullMA, kijunSen)
exitShortCondition = crossover(hullMA, kijunSen)
if (exitLongCondition)
strategy.close("Long")
if (exitShortCondition)
strategy.close("Short")