দিকনির্দেশক প্রবণতা সূচক ট্রেডিং কৌশল

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

সারসংক্ষেপ

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

কৌশলগত যুক্তি

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

সুবিধা

  • ডিটিআই সঠিকভাবে কম সংকেত দিয়ে প্রবণতা দিক নির্ধারণ করে
  • গোলমালের ব্যবসায় এড়ানোর জন্য প্রান্তিকগুলি অপ্রয়োজনীয় ব্রেকআউটগুলি ফিল্টার করে
  • স্বল্পমেয়াদী ওঠানামা দ্বারা প্রভাবিত না হয়ে ধারাবাহিকভাবে প্রবণতা অনুসরণ
  • প্রতিক্রিয়াশীলতা ভারসাম্য বজায় রাখার জন্য বড় প্যারামিটার টিউনিং স্পেস

ঝুঁকি

  • প্রবণতা বিপরীত পয়েন্ট সঠিকভাবে নির্ধারণ করা যাবে না, ক্ষতি ঝুঁকি
  • ডিটিআই পরামিতিগুলির দুর্বল সুরক্ষা হ্রাসের ঝুঁকি
  • দীর্ঘ সময় ধরে ধরে রাখার ফলে আরও বেশি পরিমাণে টানতে পারে
  • উচ্চ ফ্রিকোয়েন্সি ট্রেডিংয়ের জন্য অনুপযুক্ত কম ট্রেডিং ফ্রিকোয়েন্সি

হিসাবের সময়কাল কমিয়ে, প্রান্তিক সীমা সংশোধন করে বা বিপরীতমুখী সূচক যোগ করে ঝুঁকি হ্রাস করা যেতে পারে।

উন্নতি

  • ডিটিআই গণনার জন্য বিভিন্ন পরামিতি সমন্বয় পরীক্ষা করুন
  • দীর্ঘ/সংক্ষিপ্ত প্রান্তিক মাত্রা অনুকূল করা
  • ঝুঁকি নিয়ন্ত্রণের জন্য স্টপ লস কৌশল যুক্ত করার কথা বিবেচনা করুন
  • বিভিন্ন পণ্যের উপর নির্ভরশীলতা পরীক্ষা করুন

সিদ্ধান্ত

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


/*backtest
start: 2023-08-18 00:00:00
end: 2023-09-17 00:00:00
period: 4h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=2
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 29/03/2017
// 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. 
//
// You can change long to short in the Input Settings
// Please, use it only for learning or paper trading. Do not for real trading.
////////////////////////////////////////////////////////////
strategy(title="Directional Trend Index (DTI)", shorttitle="DTI")
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")
hline(0, color=green, linestyle=line)
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))) 
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)	   	    
barcolor(possig == -1 ? red: possig == 1 ? green : blue )
plot(DTI, color=maroon, title="DTI")
plot(OB, color=blue, title="OB")
plot(OS, color=red, title="OS")

আরো