बुल फ्लैग ब्रेकआउट रणनीति

लेखक:चाओझांग, दिनांकः 2024-02-22 16:41:04
टैगः

img

अवलोकन

बुल फ्लैग ब्रेकआउट रणनीति एक तकनीकी विश्लेषण रणनीति है जो बुल फ्लैग चार्ट पैटर्न की पहचान करती है और ब्रेकआउट बिंदु पर प्रवेश करती है, जिसका उद्देश्य एक प्रवृत्ति की शुरुआत को पकड़ना है। यह रणनीति एक स्पष्ट ध्वजपोत के बाद ध्वज रेंज निर्धारित करने में मदद करने के लिए औसत सच्ची सीमा (एटीआर) संकेतक का उपयोग करती है, प्रवेश के अवसरों को फ़िल्टर करती है।

रणनीति तर्क

इस रणनीति के मुख्य चरण इस प्रकार हैंः

  1. ध्वज के खंभे का निर्धारण करें: मूल्य में नए उच्च और एटीआर चैनल के ब्रेकआउट की आवश्यकता होती है।
  2. पोल ऊंचाई निर्धारित करें: पोल शीर्ष और पिछले SMA के बीच दूरी मापें।
  3. ध्वज की सीमा निर्धारित करेंः ध्वज के नीचे न्यूनतम सीमा के रूप में ध्रुव ऊंचाई का 33% है।
  4. झंडे के पैटर्न की पहचान करें: अंतिम 3 बार सभी झंडे के दायरे में हैं या नहीं।
  5. प्रवेशः जब झंडा पैटर्न दिखाई देता है तो लंबे समय तक जाएं।
  6. बाहर निकलनाः 6 बार तय करने के बाद बंद स्थिति।

जब ध्वज के खंभे और ध्वज का न्याय करते हैं, तो रणनीति महत्वपूर्ण ब्रेकआउट निर्धारित करने के लिए एटीआर संकेतक का चतुराई से उपयोग करती है और अत्यधिक झूठे संकेतों से बचने के लिए ध्रुव की ऊंचाई को ध्रुव की ऊंचाई के 33% के भीतर सख्ती से सीमित करती है। इसके अलावा, ध्वज बनाने के लिए 3 लगातार सलाखों की आवश्यकता होने से विश्वसनीयता में सुधार होता है। कुल मिलाकर, रणनीति नियम कठोर रूप से डिज़ाइन किए गए हैं और शुरुआती प्रवृत्ति ब्रेकआउट को पकड़ने में कुछ लाभ है।

लाभ विश्लेषण

इस रणनीति के मुख्य लाभों में निम्नलिखित शामिल हैंः

  1. प्रवृत्ति की शुरुआत निर्धारित करने के लिए ध्वज पैटर्न का उपयोग उच्च सफलता दर के साथ एक क्लासिक तकनीकी विश्लेषण विधि है।
  2. एटीआर और सख्त रेंज सीमाएं बहुत सारे झूठे संकेतों से बचती हैं और प्रवेश सटीकता में सुधार करती हैं।
  3. कुछ मुनाफे में 6 बार के निकास ताले फिक्स्ड और रिवर्स जोखिमों से बचा जाता है।
  4. लागू करने, समझने और पालन करने में आसान स्पष्ट नियम।
  5. विभिन्न बाजार स्थितियों में अवसर पा सकता है, लचीला हो सकता है।

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

इस रणनीति के प्रमुख जोखिम निम्नलिखित हैंः

  1. झंडे पूरी तरह से रुझानों को निर्धारित नहीं कर सकते, विफलताएं अभी भी मौजूद हैं।
  2. 6 बार से बाहर निकलना समय से पहले हो सकता है और बाहर निकलना बहुत जल्दी हो सकता है।
  3. हलचलपूर्ण बाजार आसानी से झूठे झंडे पैदा कर सकते हैं।
  4. एकल हानि राशि को प्रभावी ढंग से नियंत्रित करने में असमर्थ।

उपरोक्त जोखिमों को दूर करने के लिए, हम स्टॉप लॉस सेट कर सकते हैं, एक निश्चित लाभ अनुपात तक पहुंचने पर लाभ को लॉक करने के लिए निकास तंत्र को अनुकूलित कर सकते हैं। हम अन्य संकेतकों के साथ फ़िल्टर भी कर सकते हैं ताकि चंचल बाजारों में झूठे संकेतों से बचा जा सके।

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

रणनीति को अनुकूलित करने के लिए कुछ दिशाएंः

  1. अस्थिर बाजारों में झूठे संकेतों से बचने के लिए एमएसीडी, केडी जैसे संकेतकों को मिलाएं।
  2. अनुकूलन क्षमता में सुधार के लिए बाजार व्यवस्था के आधार पर एटीआर गुणक, बाहर निकलने की अवधि को पैरामीटर करें।
  3. गतिशील निकासों के लिए स्टॉप लॉस सेट करें या लाभ निकासी अनुपात पर विचार करें।
  4. झंडे की ऊंचाई निर्धारित करने के लिए बेहतर सुविधाओं को खोजने के लिए मशीन लर्निंग दृष्टिकोण का प्रयास करें।
  5. वास्तविक जीत दर और लाभ अनुपात का मूल्यांकन करें, गतिशील रूप से स्थिति आकार समायोजित करें।

निष्कर्ष

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


/*backtest
start: 2024-01-22 00:00:00
end: 2024-02-21 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// © smith26
//This strategy enters on a bull flag and closes position 6 bars later.  Average true range is used instead of a moving average.
//The reason for ATR instead of MA is because with volatile securities, the flagpole must stand up a noticable "distance" above the trading range---which you can't determine with a MA alone.
//This is broken up into multiple parts: Defining a flagpole, defining the pole height, and defining the flag, which will be constrained to the top third (33%) of the pole height to be considered a flag.
//@version=4
strategy("Bull Flag v1.00", overlay=true)

ATR = atr(10) //Average True Range over last 10 bars.

upperATR = ohlc4[1] + ATR[1]  //Open + High + Low + Close divided by 4, + prior ATR.  Just used here for visually plotting the ATR upper channel.
lowerATR = ohlc4[1] - ATR[1] //Open + High + Low + Close divided by 4, - prior ATR.  Just used here for visually plotting the ATR lower channel.

//uncomment these two lines to see ATR channels
plot(upperATR, color=color.orange)
plot (lowerATR, color=color.orange)

//Current close higher than previous close, and current close minus current open is greater than 3 times the previous ATR.  "3x ATR" is chosen because any less was not a noticeable distance above the trading range.
flagpole1 = close>close[1] and (close-open) > (ATR[1] * 3)
plotshape(flagpole1, text="flagpole1", style=shape.arrowdown, size=size.huge) //Plots an arrow for flagpole1 for QA testing

//Two consecutive close higer than their previous close, and current close minus PREVIOUS open is greater than 3 times the previous ATR.
flagpole2 = close>close[1] and close[1]>close[2] and (close-open[1]) > (ATR[1] * 3)
plotshape(flagpole2, text="flagpole2", style=shape.arrowdown, size=size.huge, color=color.yellow) //Plots an arrow for flagpole2 for QA testing

//Three consecutive close higer than their previous close, and current close minus open from 2 bars ago is greater than 3 times the previous ATR.
flagpole3 = close>close[1] and close[1]>close[2] and close[2]>close[3] and (close-open[2]) > (ATR[1] * 3)
plotshape(flagpole3, text="flagpole3", style=shape.arrowdown, size=size.huge, color=color.white) //Plots an arrow for flagpole3 for QA testing

//A flagpole can be any of the three definitions of flagpole.
flagpole = flagpole1 or flagpole2 or flagpole3

//This will return the number of bars since "flagpole" was true.  Not being used, but could be useful.
//since_flagpole = barssince(flagpole)

after_pole_1 = flagpole[1] //This marks the bar directly after a flagpole.  
//plotshape(after_pole_1, text="after_pole_1", style=shape.cross, size=size.large, color=color.white) //Plots a cross for after_pole_1 for QA testing
after_pole_2 = flagpole[2] //This marks the bar two bars after a flagpole.  
after_pole_3 = flagpole[3] //This marks the bar three bars after a flagpole.  

//This returns the price at the "top" of the flagpole (using close price) at the most recent occurence, 0.
pole_top = valuewhen(flagpole, close, 0)
//plot(pole_top, trackprice=true)  //plots a horizontal line at the most recent pole_top

//Measures the distance between last pole top and the previous SMA.
pole_height = pole_top - sma(close, 10)[1] 
//plot(pole_height)

//This marks 33% below the pole_top, which will be the lowest point a flag can be.
flag_bottom = pole_top - (.33 * pole_height)
//plot(flag_bottom)

//The first, second, and third bars after the pole are considered part of a flag when open and close are between the pole_top and flag_bottom
flag1 = after_pole_1 and (open >= flag_bottom) and (open <= pole_top) and (close >= flag_bottom) and (close <= pole_top)
//plotshape(flag1, text="flag1", style=shape.flag, size=size.large, color=color.teal)
flag2 = after_pole_2 and (open >= flag_bottom) and (open <= pole_top) and (close >= flag_bottom) and (close <= pole_top)
//plotshape(flag2, text="flag2", style=shape.flag, size=size.large, color=color.teal)
flag3 = after_pole_3 and (open >= flag_bottom) and (open <= pole_top) and (close >= flag_bottom) and (close <= pole_top)
//plotshape(flag3, text="flag3", style=shape.flag, size=size.large, color=color.teal)

//When all three bars after a flagpole are a flag, the criteria are met and we have a "bull_flag"
//Specifically, when current bar is flag3, previous bar is flag2, and 2 bars ago is flag1, we have a bull_flag.
bull_flag = flag3 and flag2[1] and flag1[2]
plotshape(bull_flag, text="bull_flag", style=shape.flag, size=size.large, color=color.white) //Plots a flag for bull_flag for QA testing


if (bull_flag)
    strategy.entry("Long", strategy.long)

if barssince(bull_flag) == 6 //close 6 bars after entry.
    strategy.close("Long")

अधिक