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

লেখক:চাওঝাং, তারিখঃ 2024-01-02 10:41:30
ট্যাগঃ

img

সারসংক্ষেপ

কম্বো ট্রেন্ড ট্র্যাকিং কৌশল একটি পরিমাণগত ট্রেডিং কৌশল যা প্রবণতা বিচার করার জন্য ডাবল সূচকগুলিকে একত্রিত করে। এটি প্রথমে মূল্য বিপরীত সংকেতগুলি নির্ধারণের জন্য 123 বিপরীত সূচক ব্যবহার করে এবং তারপরে ডাবল নিশ্চিতকরণ অর্ডার সংকেতগুলি অর্জনের জন্য মূল্য প্রবণতা দিকটি বিচার করার জন্য দিকনির্দেশক প্রবণতা সূচক (ডিটিআই) একত্রিত করে।

কৌশল নীতি

এই কৌশল দুটি প্রধান অংশ নিয়ে গঠিতঃ

  1. 123 বিপরীতমুখী সূচক

    123 বিপরীতমুখী সূচকের মূলনীতি হলঃ

    • যখন ক্লোজিং মূল্য ২ দিন ধরে অবিচ্ছিন্নভাবে বৃদ্ধি পায় এবং ৯ দিনের ধীর K-লাইন ৫০ এর নিচে থাকে, তখন লং যান;

    • যখন ক্লোজিংয়ের দাম ২ দিন ধরে ক্রমাগত কমে যায় এবং ৯ দিনের ফাস্ট কে-লাইন ৫০ এর বেশি হয়, তখন শর্ট হয়ে যায়।

    এটি মূল্য বিপরীতের সময়কে ক্যাপচার করতে পারে।

  2. দিকনির্দেশক প্রবণতা সূচক (ডিটিআই)

    ডিটিআই সূচক মূল্যায়নের নীতিটি হলঃ একটি নির্দিষ্ট সময়ের মধ্যে পরম মূল্য হ্রাসের চলমান গড় গণনা করুন এবং তারপরে এটি গড় মূল্যের উদ্বায়িততার দ্বারা ভাগ করুন।

    • যখন ডিটিআই ওভারকোপড লাইনের চেয়ে বেশি হয়, এর অর্থ হল বর্তমানটি নেমে যাচ্ছে;

    • যখন ডিটিআই ওভারসোল্ড লাইনের নিচে থাকে, তখন এর মানে হচ্ছে বর্তমানের প্রবণতা বাড়ছে।

  3. সংমিশ্রণ

    প্রথমে, 123 বিপরীতমুখী সূচকটি ব্যবহার করে নির্ধারণ করুন যে দামের বিপরীতমুখী সংকেত ঘটেছে কিনা। তারপর, বিপরীতমুখী হওয়ার পরে সামগ্রিক প্রবণতা দিক নির্ধারণ করতে DTI সূচকের সাথে মিলিত।

    এটি কেবলমাত্র বিপরীত সংকেতগুলির উপর নির্ভর করে মিথ্যা বিপরীতের সমস্যা এড়ায়, যার ফলে কৌশলগুলির স্থিতিশীলতা এবং লাভজনকতা উন্নত হয়।

সুবিধা

  1. ডাবল ইন্ডিকেটর নিশ্চিতকরণ মিথ্যা বিপরীতের কারণে ঝুঁকি এড়ায়

  2. বিপরীতমুখী এবং প্রবণতার সমন্বয় অপারেশনাল নমনীয়তা এবং স্থিতিশীলতার মধ্যে ভারসাম্য বজায় রাখে

  3. বড় প্যারামিটার অপ্টিমাইজেশান স্থান, নমনীয়ভাবে বিভিন্ন জাতের মানিয়ে নিতে সামঞ্জস্য করা যেতে পারে

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

  1. ডিটিআই পরামিতি নির্ধারণের জন্য অভিজ্ঞতা প্রয়োজন, অনুপযুক্ত প্রবণতা দিক ভুল বিচার করবে

  2. বিপরীতমুখী পরিবর্তন নতুন প্রবণতাকে প্রতিনিধিত্ব করে না, পরিসীমা সীমাবদ্ধ দোলগুলি থাকতে পারে

  3. একক ক্ষতি নিয়ন্ত্রণের জন্য কার্যকর স্টপ লস প্রয়োজন

    সমাধানঃ পরামিতি অপ্টিমাইজেশান পরীক্ষা + যুক্তিসঙ্গত স্টপ লস + অন্যান্য সূচকগুলির সমন্বয়

অপ্টিমাইজেশান দিক

  1. সর্বোত্তম প্যারামিটার সমন্বয় খুঁজে পেতে ডিটিআই পরামিতি পরীক্ষা করুন

  2. মিথ্যা বিপরীত সংকেত ফিল্টার করার জন্য অন্যান্য সূচক ব্যবহার করুন

  3. স্টপ লস কৌশলগুলি অপ্টিমাইজ করুন এবং সর্বোত্তম স্টপ লস পয়েন্টগুলি সন্ধান করুন

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

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


/*backtest
start: 2023-12-25 00:00:00
end: 2024-01-01 00:00:00
period: 15m
basePeriod: 5m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 19/02/2020
// 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
// This technique was described by William Blau in his book "Momentum,
// Direction and Divergence" (1995). His book focuses on three key aspects 
// of trading: momentum, direction and divergence. Blau, who was an electrical 
// engineer before becoming a trader, thoroughly examines the relationship between 
// price and momentum in step-by-step examples. From this grounding, he then looks 
// at the deficiencies in other oscillators and introduces some innovative techniques, 
// including a fresh twist on Stochastics. On directional issues, he analyzes the 
// intricacies of ADX and offers a unique approach to help define trending and 
// non-trending periods.
// Directional Trend Index is an indicator similar to DM+ developed by Welles Wilder. 
// The DM+ (a part of Directional Movement System which includes both DM+ and 
// DM- indicators) indicator helps determine if a security is "trending." William 
// Blau added to it a zeroline, relative to which the indicator is deemed positive or 
// negative. A stable uptrend is a period when the DTI value is positive and rising, a 
// downtrend when it is negative and falling. 
//
// 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

TDI(r,s,u,OS,OB) =>
    pos = 0.0
    xHMU = iff(high - high[1] > 0, high - high[1], 0)
    xLMD = iff(low - low[1] < 0, -(low - low[1]), 0)
    xPrice = xHMU - xLMD
    xPriceAbs = abs(xPrice)
    xuXA = ema(ema(ema(xPrice, r),s),u)
    xuXAAbs = ema(ema(ema(xPriceAbs, r),s),u)
    Val1 = 100 * xuXA
    Val2 = xuXAAbs
    DTI = iff(Val2 != 0, Val1 / Val2, 0)
    pos := iff(DTI > OS, -1,
    	     iff(DTI < OB, 1, nz(pos[1], 0))) 
    pos

strategy(title="Combo Backtest 123 Reversal & Directional Trend Index (DTI)", shorttitle="Combo", overlay = true)
Length = input(14, minval=1)
KSmoothing = input(1, minval=1)
DLength = input(3, minval=1)
Level = input(50, minval=1)
//-------------------------
r = input(14, minval=1)
s = input(10, minval=1)
u = input(5, minval=1)
OS = input(45, minval=1)
OB = input(-45, maxval=-1)
reverse = input(false, title="Trade reverse")
posReversal123 = Reversal123(Length, KSmoothing, DLength, Level)
posTDI = TDI(r,s,u,OS,OB)
pos = iff(posReversal123 == 1 and posTDI == 1 , 1,
	   iff(posReversal123 == -1 and posTDI == -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 )

আরো