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

লেখক:চাওঝাং, তারিখঃ ২০২৪-০২-২৭
ট্যাগঃ

img

সারসংক্ষেপ

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

নীতিমালা

এই কৌশল দুটি অংশ নিয়ে গঠিত:

  1. 123 বিপরীতমুখী কৌশলঃ যদি পূর্ববর্তী দুই দিনের জন্য বন্ধের মূল্য হ্রাস পায় এবং আজ বৃদ্ধি পায় এবং 9-দিনের ধীর K লাইন 50 এর নিচে থাকে তবে দীর্ঘ যান; যদি পূর্ববর্তী দুই দিনের জন্য বন্ধের মূল্য বৃদ্ধি পায় এবং আজ কমে যায় এবং 9-দিনের দ্রুত K লাইন 50 এর উপরে থাকে তবে সংক্ষিপ্ত যান।

  2. রেইনবো অ্যাসিললেটর সূচক: এই সূচকটি চলমান গড়ের তুলনায় দামের বিচ্যুতির মাত্রা প্রতিফলিত করে। যখন সূচকটি ৮০ এর বেশি হয়, তখন এটি নির্দেশ করে যে বাজারটি অস্থির হওয়ার প্রবণতা রয়েছে। যখন সূচকটি ২০ এর নীচে থাকে, তখন এটি নির্দেশ করে যে বাজারটি বিপরীতমুখী হওয়ার প্রবণতা রয়েছে।

এই কৌশলটি যখন লং এবং শর্ট উভয় সংকেত উপস্থিত হয় তখন অবস্থানগুলি খোলে, অন্যথায় অবস্থানগুলি সমতল করে।

সুবিধা বিশ্লেষণ

এই কৌশলটির সুবিধাগুলো হল:

  1. ডাবল ফিল্টার সিগন্যালের গুণমান উন্নত করে এবং ভুল বিচার হ্রাস করে।
  2. ডায়নামিক পজিশন অ্যাডজাস্টমেন্ট একমুখী বাজারে ক্ষতি হ্রাস করে।
  3. স্থিতিশীলতা বৃদ্ধির জন্য স্বল্প ও মধ্যমেয়াদী সূচক একত্রিত করা।

ঝুঁকি বিশ্লেষণ

এই কৌশলের ঝুঁকিগুলির মধ্যে রয়েছেঃ

  1. অনুপযুক্ত প্যারামিটার অপ্টিমাইজেশান ওভারফিটিং হতে পারে।
  2. ডাবল ওপেনিং বাণিজ্য খরচ বৃদ্ধি করে।
  3. যখন দাম তীব্রভাবে পরিবর্তিত হয় তখন স্টপ লস পয়েন্ট খুবই ঝুঁকিপূর্ণ।

প্যারামিটারগুলি সামঞ্জস্য করে, পজিশন ম্যানেজমেন্টকে অনুকূল করে এবং স্টপ লসকে যুক্তিসঙ্গতভাবে সেট করে এই ঝুঁকিগুলি হ্রাস করা যেতে পারে।

অপ্টিমাইজেশান নির্দেশাবলী

এই কৌশলটি নিম্নলিখিত দিকগুলিতে অনুকূলিত করা যেতে পারেঃ

  1. সর্বোত্তম প্যারামিটার সমন্বয় খুঁজে পেতে প্যারামিটার অপ্টিমাইজ করুন।
  2. পজিশন ম্যানেজমেন্ট মডিউল যোগ করা হয়েছে, যা ভোল্টেবিলিটি এবং ড্রাউনডাউন-এর ভিত্তিতে পজিশনকে গতিশীলভাবে সামঞ্জস্য করে।
  3. স্টপ লস মডিউল বাড়ান এবং যুক্তিসঙ্গত চলমান স্টপ লস সেট করুন।
  4. মেশিন লার্নিং অ্যালগরিদম বাড়িয়ে ফ্লেক্স পয়েন্ট বিচার করতে সাহায্য করবে।

সিদ্ধান্ত

এই কৌশলটি দ্বিগুণ প্রবণতা ট্র্যাকিং অর্জনের জন্য 123 বিপরীত কৌশল এবং রেইনবো দোলক সূচককে সংহত করে। উচ্চ স্থিতিশীলতা বজায় রেখে এটি অতিরিক্ত রিটার্নের সম্ভাবনা রয়েছে। কৌশলটির লাভজনকতা উন্নত করতে আরও অপ্টিমাইজেশন করা যেতে পারে।


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

//@version=4
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 25/05/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
// Ever since the people concluded that stock market price movements are not 
// random or chaotic, but follow specific trends that can be forecasted, they 
// tried to develop different tools or procedures that could help them identify 
// those trends. And one of those financial indicators is the Rainbow Oscillator 
// Indicator. The Rainbow Oscillator Indicator is relatively new, originally 
// introduced in 1997, and it is used to forecast the changes of trend direction.
// As market prices go up and down, the oscillator appears as a direction of the 
// trend, but also as the safety of the market and the depth of that trend. As 
// the rainbow grows in width, the current trend gives signs of continuity, and 
// if the value of the oscillator goes beyond 80, the market becomes more and more 
// unstable, being prone to a sudden reversal. When prices move towards the rainbow 
// and the oscillator becomes more and more flat, the market tends to remain more 
// stable and the bandwidth decreases. Still, if the oscillator value goes below 20, 
// the market is again, prone to sudden reversals. The safest bandwidth value where 
// the market is stable is between 20 and 80, in the Rainbow Oscillator indicator value. 
// The depth a certain price has on a chart and into the rainbow can be used to judge 
// the strength of the move.
//
// 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


RO(Length, LengthHHLL) =>
    pos = 0.0
    xMA1 = sma(close, Length)
    xMA2 = sma(xMA1, Length)
    xMA3 = sma(xMA2, Length)
    xMA4 = sma(xMA3, Length)
    xMA5 = sma(xMA4, Length)
    xMA6 = sma(xMA5, Length)
    xMA7 = sma(xMA6, Length)
    xMA8 = sma(xMA7, Length)
    xMA9 = sma(xMA8, Length)
    xMA10 = sma(xMA9, Length)
    xHH = highest(close, LengthHHLL)
    xLL = lowest(close, LengthHHLL)
    xHHMAs = max(xMA1,max(xMA2,max(xMA3,max(xMA4,max(xMA5,max(xMA6,max(xMA7,max(xMA8,max(xMA9,xMA10)))))))))
    xLLMAs = min(xMA1,min(xMA2,min(xMA3,min(xMA4,min(xMA5,min(xMA6,min(xMA7,min(xMA8,min(xMA9,xMA10)))))))))
    xRBO = 100 * ((close - ((xMA1+xMA2+xMA3+xMA4+xMA5+xMA6+xMA7+xMA8+xMA9+xMA10) / 10)) / (xHH - xLL))
    xRB = 100 * ((xHHMAs - xLLMAs) / (xHH - xLL))
    pos:= iff(xRBO > 0, 1,
           iff(xRBO < 0, -1, nz(pos[1], 0))) 
    pos

strategy(title="Combo Backtest 123 Reversal & Rainbow Oscillator", 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, "---- Rainbow Oscillator ----")
LengthRO = input(2, minval=1)
LengthHHLL = input(10, minval=2, title="HHV/LLV Lookback")
reverse = input(false, title="Trade reverse")
posReversal123 = Reversal123(Length, KSmoothing, DLength, Level)
posRO = RO(LengthRO, LengthHHLL)
pos = iff(posReversal123 == 1 and posRO == 1 , 1,
	   iff(posReversal123 == -1 and posRO == -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 )

আরো