ডাবল রিভার্সাল ট্রেন্ড ট্র্যাকিং কৌশল

লেখক:চাওঝাং, তারিখ: ২০২৩-১২-১৩ ১৮ঃ০১ঃ৫৩
ট্যাগঃ

img

সারসংক্ষেপ

এটি একটি প্রবণতা ট্র্যাকিং কৌশল যা দ্বৈত বিপরীত সংকেতকে একত্রিত করে। এটি আরও নির্ভরযোগ্য প্রবণতা বিচারের জন্য মূল্য বিপরীত পয়েন্টগুলি ট্র্যাক করার জন্য 123 বিপরীত কৌশল এবং পারফরম্যান্স সূচক কৌশলকে একীভূত করে।

কৌশল নীতি

এই কৌশল দুটি উপ-কৌশল নিয়ে গঠিতঃ

  1. 123 বিপরীতমুখী কৌশল

    বিপরীত সংকেত বিচার করতে 14 দিনের কে-লাইন ব্যবহার করুন। নির্দিষ্ট নিয়মগুলি হলঃ

    • ঊর্ধ্বমুখী সংকেতঃ পূর্ববর্তী দুই দিনে বন্ধের মূল্য কমেছে। বর্তমান কে-লাইন বন্ধের মূল্য পূর্ববর্তী দিনের বন্ধের মূল্যের তুলনায় বেশি। 9-দিনের স্টোক্যাস্টিক স্লো 50 এর নীচে
    • হ্রাস সংকেতঃ পূর্ববর্তী দুই দিনে বন্ধের মূল্য বেড়েছে। বর্তমান কে-লাইন বন্ধের মূল্য পূর্ববর্তী দিনের বন্ধের মূল্যের তুলনায় কম। 9-দিনের স্টোক্যাস্টিক ফাস্ট 50 এর বেশি
  2. পারফরম্যান্স ইনডেক্স কৌশল

    গত ১৪ দিনের মধ্যে বৃদ্ধির/হ্রাসের শতাংশকে সূচক হিসেবে গণনা করুন। নিয়মগুলি হলঃ

    • পারফরম্যান্স ইন্ডেক্স > (0), উত্থান সংকেত উৎপন্ন - পারফরম্যান্স ইনডেক্স <(0), হ্রাস সংকেত উৎপন্ন

চূড়ান্ত সংকেত হল উভয় সংকেতের সমন্বয়। অর্থাৎ, প্রকৃত ক্রয়/বিক্রয় ক্রিয়াকলাপ তৈরি করতে একই দিকের উত্থান/পতনের সংকেত প্রয়োজন।

এটি কিছু শব্দ ফিল্টার করতে পারে এবং সংকেতগুলিকে আরও নির্ভরযোগ্য করে তুলতে পারে।

কৌশলটির সুবিধা

এই দ্বৈত বিপরীতমুখী সিস্টেমের নিম্নলিখিত সুবিধা রয়েছেঃ

  1. ডুয়াল ফ্যাক্টরগুলির সংমিশ্রণ দ্বারা আরও নির্ভরযোগ্য সংকেত
  2. বাজারের গোলমালকে কার্যকরভাবে ফিল্টার করতে পারে এবং মিথ্যা সংকেত এড়াতে পারে
  3. 123 প্যাটার্ন ক্লাসিক এবং ব্যবহারিক, বিচার এবং পুনরুত্পাদন করা সহজ
  4. পারফরম্যান্স সূচক ভবিষ্যতের প্রবণতার দিক নির্ধারণ করতে পারে
  5. নমনীয় পরামিতি সমন্বয়, আরও অপ্টিমাইজ করা যেতে পারে

কৌশলটির ঝুঁকি

এই কৌশলের কিছু ঝুঁকিও রয়েছে:

  1. হঠাৎ বিপরীতমুখী ঘটনা মিস করতে পারে, প্রবণতা পুরোপুরি ধরতে পারে না
  2. ডাবল সিগন্যালের সংমিশ্রণগুলি কম সিগন্যালের দিকে পরিচালিত করে, যা লাভজনকতাকে প্রভাবিত করতে পারে
  3. ধারাবাহিক বিচার প্রয়োজন, সহজেই পৃথক স্টক ওঠানামা দ্বারা প্রভাবিত
  4. প্যারামিটার সেটিং সমস্যা সংকেত বিচ্যুতি হতে পারে

নিম্নলিখিত দিকগুলি অপ্টিমাইজেশনের জন্য বিবেচনা করা যেতে পারেঃ

  1. কে-লাইনের দৈর্ঘ্য, স্টোকাস্টিক চক্র ইত্যাদির মত প্যারামিটারগুলি সামঞ্জস্য করুন।
  2. ডুয়াল সিগন্যাল বিচারের জন্য লজিক অপ্টিমাইজ করুন
  3. ভলিউম ইত্যাদির মতো আরও কারণ অন্তর্ভুক্ত করুন।
  4. স্টপ লস মেকানিজম যোগ করুন

সংক্ষিপ্তসার

কৌশলটি কার্যকরভাবে দামের inflection পয়েন্ট আবিষ্কার করার জন্য দ্বৈত বিপরীত রায়কে একীভূত করে। যদিও সংকেত ঘটার সম্ভাবনা হ্রাস পায়, নির্ভরযোগ্যতা বেশি, মাঝারি এবং দীর্ঘমেয়াদী প্রবণতা ক্যাপচার করার জন্য উপযুক্ত। পরামিতি সমন্বয় এবং মাল্টি-ফ্যাক্টর অপ্টিমাইজেশনের মাধ্যমে কৌশল প্রভাব আরও বাড়ানো যেতে পারে।


/*backtest
start: 2023-11-12 00:00:00
end: 2023-12-12 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 15/04/2021
// 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
// The Performance indicator or a more familiar term, KPI (key performance indicator), 
// is an industry term that measures the performance. Generally used by organizations, 
// they determine whether the company is successful or not, and the degree of success. 
// It is used on a business’ different levels, to quantify the progress or regress of a 
// department, of an employee or even of a certain program or activity. For a manager 
// it’s extremely important to determine which KPIs are relevant for his activity, and 
// what is important almost always depends on which department he wants to measure the 
// performance for.  So the indicators set for the financial team will be different than 
// the ones for the marketing department and so on.
//
// Similar to the KPIs companies use to measure their performance on a monthly, quarterly 
// and yearly basis, the stock market makes use of a performance indicator as well, although 
// on the market, the performance index is calculated on a daily basis. The stock market 
// performance indicates the direction of the stock market as a whole, or of a specific stock 
// and gives traders an overall impression over the future security prices, helping them decide 
// the best move. A change in the indicator gives information about future trends a stock could 
// adopt, information about a sector or even on the whole economy. The financial sector is the 
// most relevant department of the economy and the indicators provide information on its overall 
// health, so when a stock price moves upwards, the indicators are a signal of good news. On the 
// other hand, if the price of a particular stock decreases, that is because bad news about its 
// performance are out and they generate negative signals to the market, causing the price to go 
// downwards. One could state that the movement of the security prices and consequently, the movement 
// of the indicators are an overall evaluation of a country’s economic trend.
//
// 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


PI(Period) =>
    pos = 0.0
    xKPI = (close - close[Period]) * 100 / close[Period]
    pos := iff(xKPI > 0, 1,
              iff(xKPI < 0, -1, nz(pos[1], 0))) 
    pos

strategy(title="Combo Backtest 123 Reversal & Perfomance index", shorttitle="Combo", overlay = true)
line1 = input(true, "---- 123 Reversal ----")
Length = input(14, minval=1)
KSmoothing = input(1, minval=1)
DLength = input(3, minval=1)
Level = input(50, minval=1)
//-------------------------
line2 = input(true, "---- Perfomance index ----")
Period = input(14, minval=1)
reverse = input(false, title="Trade reverse")
posReversal123 = Reversal123(Length, KSmoothing, DLength, Level)
posPI = PI(Period)
pos = iff(posReversal123 == 1 and posPI == 1 , 1,
	   iff(posReversal123 == -1 and posPI == -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 )

আরো