मासिक रुझान ब्रेकआउट रणनीति

लेखक:चाओझांग, दिनांक: 2023-10-24 16:08:33
टैगः

img

अवलोकन

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

रणनीति तर्क

  1. पिछले प्रविष्टि महीने को ट्रैक करने के लिए चर lastEntryMonth को परिभाषित करें. currentMonth को वर्तमान महीना मिलता है.

  2. TRAMA अनुकूली एमए मापदंडों को सेट करें लंबाई=99 कीमत को सुचारू करने और प्रवृत्ति निर्धारित करने के लिए।

  3. लंबाई_ट्रेंड=14 सेट करें ट्रेंडलाइन ऊपरी प्लॉट करने के लिए पिवोट उच्च के आधार पर. जब मूल्य ट्रेंडलाइन से ऊपर टूटता है तो लंबा।

  4. ओवरबॉट/ओवरसोल्ड निर्धारित करने के लिए आरएसआई सूचक की गणना करें।

  5. प्रवेश तर्कः यदि बंद हो > TRAMA और पिछले महीने कोई प्रवेश नहीं होने पर ऊपर की प्रवृत्ति रेखा से ऊपर के ब्रेक को बंद करें।

  6. बाहर निकलने का तर्कः यदि आरएसआई > 70 (ओवरबॉट) है तो लॉन्ग बंद करें।

  7. ग्राफ ट्रामा लाइन और आरएसआई 70 स्तर से अधिक खरीदे गए।

रणनीति में तीन प्रमुख तकनीकी संकेतकों को मिलाकर कम जोखिम वाली लंबी प्रविष्टियों को हर महीने एक बार पाया जाता है। प्रविष्टियां केवल रुझान ब्रेक तक ही सीमित होती हैं, जिससे रेंज में विप्सॉव से बचा जा सकता है।

लाभ

  1. मजबूत बाजार विश्लेषण और उच्च सटीकता के लिए कई संकेतकों को जोड़ती है।

  2. ओवरट्रेडिंग से बचने के लिए मासिक समय सीमा में प्रविष्टियों को सीमित करें।

  3. अनुकूलनशील एमए तेजी से रुझान परिवर्तनों के अनुकूल होता है।

  4. ओवरसोल्ड आरएसआई बाजार के शीर्ष पर खरीदने से बचता है और जोखिम को नियंत्रित करता है।

  5. प्रवेश/निकास के सरल नियम लागू करना आसान है।

  6. अनुकूलन योग्य पैरामीटर रणनीति अनुकूलन की अनुमति देते हैं।

जोखिम

  1. यदि ब्रेकआउट विफल हो जाता है तो जोखिम को रोकें। यदि मूल्य प्रवृत्ति रेखा से नीचे टूट जाता है तो हानि को रोकें।

  2. खराब समय सीमा के कारण शीर्ष के पास प्रविष्टियां होती हैं।

  3. खराब संकेतक पैरामीटर भ्रामक संकेत का कारण बनते हैं।

  4. ब्रेकआउट बाजार की हालिया अस्थिरता को दर्शा सकता है। अनुकूलन स्टॉप/पोजीशन साइजिंग पर विचार करें।

  5. जोखिम/लाभ की निगरानी करें। केवल ट्रेडिंग पॉलबैक या अन्य पुष्टिकरण फ़िल्टर जोड़ने पर विचार करें।

  6. कई समय सीमाओं पर संकेतकों को मान्य करें। प्रवृत्ति की पहचान करने के लिए उच्च समय सीमाओं का उपयोग करें और प्रवेश के लिए कम करें।

  7. विभिन्न बाजार स्थितियों पर बैकटेस्ट करें। बाजार के प्रकार के लिए रणनीति से मेल खाने के लिए मापदंडों का अनुकूलन करें।

अनुकूलन

  1. कम वॉल्यूम के साथ झूठे ब्रेकआउट से बचने के लिए वॉल्यूम इंडिकेटर जोड़ें।

  2. आंशिक लाभ लेने पर विचार करें आरएसआई ओवरबॉट आउट, आंशिक स्थिति को बनाए रखते हुए।

  3. प्रवृत्ति परिवर्तनों के अनुकूल एमए मापदंडों का अनुकूलन करना।

  4. रिवर्स के समय सही खरीदने से बचने के लिए ब्रेकआउट प्वाइंट से पहले/बाद के ज़ोन जोड़ें.

  5. अधिक फ़िल्टर जोड़ें जैसे चैनल, अधिक सटीकता के लिए अस्थिरता।

  6. नए प्रतिरोध स्तरों पर अतिरिक्त ब्रेकआउट के साथ स्केल करें।

निष्कर्ष

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


/*backtest
start: 2022-10-17 00:00:00
end: 2023-10-23 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=5
strategy('Bannos Strategy', shorttitle='Bannos', overlay=true)

//The provided script is an indicator for TradingView written in Pine Script version 5. The indicator is used to determine entry and exit points for a trading strategy. Here's a detailed breakdown of what the script does:

// Strategy Definition:

// Bannos Strategy is the full name, with a short title Bannos.
// The overlay=true option indicates that the strategy will be overlayed on the price chart.
// Tracking Entry Month:

// A variable lastEntryMonth is set up to track the month of the last entry.
// currentMonth identifies the current month.
// Trend Regularity Adaptive Moving Average (TRAMA):

// It takes an input of length 99 as default.
// It uses adaptive calculations to track trend changes.
// Trendlines with Breaks:

// Identifies local peaks over a given period (in this case, 14) and calculates a slope based on these peaks.
// Relative Strength Index (RSI):

// Uses a length of 14 (default) to calculate the RSI.
// RSI is an oscillation indicator that indicates overbought or oversold conditions.
// Strategy Logic for Long Entry:

// A long position is opened if:
// The close price is above the TRAMA.
// There's a crossover of the close price and the upper trendline.
// The position is taken only once per month.
// Strategy Logic for Long Exit:

// The long position is closed if the RSI exceeds 70, indicating an overbought condition.
// Plotting:

// The TRAMA is plotted in red on the chart.
// A horizontal line is also drawn at 70 to indicate the RSI's overbought zone.
// In summary, this strategy aims to enter a long position when certain trend and crossover conditions are met, and close the position when the market is considered overbought as per the RSI. Additionally, it ensures entries only occur once a month.
//



// Variable pour suivre le mois de la dernière entrée
var float lastEntryMonth = na
currentMonth = month(time)

// Parameters for Trend Regularity Adaptive Moving Average (TRAMA)
length_trama = input(99)
src_trama = close
ama = 0.
hh = math.max(math.sign(ta.change(ta.highest(length_trama))), 0)
ll = math.max(math.sign(ta.change(ta.lowest(length_trama)) * -1), 0)
tc = math.pow(ta.sma(hh or ll ? 1 : 0, length_trama), 2)
ama := nz(ama[1] + tc * (src_trama - ama[1]), src_trama)

// Parameters for Trendlines with Breaks
length_trend = 14
mult = 1.0
ph = ta.pivothigh(length_trend, length_trend)
upper = 0.
slope_ph = 0.
slope_ph := ph ? mult : slope_ph
upper := ph ? ph : upper - slope_ph

// Parameters for RSI
rsiLength = 14
up = ta.rma(math.max(ta.change(close), 0), rsiLength)
down = ta.rma(-math.min(ta.change(close), 0), rsiLength)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))

// Strategy Logic for Long Entry
longCondition = close > ama and ta.crossover(close, upper) and (na(lastEntryMonth) or lastEntryMonth != currentMonth)
if (longCondition)
    lastEntryMonth := currentMonth
    strategy.entry('Long', strategy.long)

// Strategy Logic for Long Exit
exitCondition = rsi > 70
if (exitCondition)
    strategy.close('Long')

// Plotting
plot(ama, 'TRAMA', color=color.red)
hline(70, 'Overbought', color=color.red)


अधिक