দিকনির্দেশনামূলক ট্রেন্ড সূচক ট্রেডিং কৌশল


সৃষ্টির তারিখ: 2023-09-18 17:07:55 অবশেষে সংশোধন করুন: 2023-09-18 17:07:55
অনুলিপি: 1 ক্লিকের সংখ্যা: 759
1
ফোকাস
1617
অনুসারী

ওভারভিউ

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

কৌশল নীতি

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

সামর্থ্য বিশ্লেষণ

  • DTI সঠিকভাবে ট্রেন্ডের দিক নির্ণয় করে, কম সংকেত দেয়
  • থ্রেশহোল্ডিং ফিল্টার ব্যবহার করে অকার্যকর বিঘ্নিত করুন, নয়েজ লেনদেন এড়ান
  • প্রবণতা অনুসরণ করে, স্বল্পমেয়াদী ওঠানামা দ্বারা প্রভাবিত নয়
  • প্রতিক্রিয়া সংবেদনশীলতা ভারসাম্য করতে প্যারামিটার সামঞ্জস্যের জন্য বড় স্থান

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

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

প্রবণতা বিপরীত হওয়ার জন্য প্রাসঙ্গিকভাবে হিসাবের সময়কালকে সংক্ষিপ্ত করা, প্রান্তিককরণ প্যারামিটারগুলিকে সমন্বয় করা বা অন্যান্য সূচকগুলির সাথে মিলিত করা যেতে পারে।

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

  • DTI এর বিভিন্ন প্যারামিটার সমন্বয় পরীক্ষা করুন
  • ডিটিআই-এর জন্য আরও খালি করার জন্য অনুকূলিতকরণ
  • ঝুঁকি নিয়ন্ত্রণে স্টপ লস কৌশল বিবেচনা করুন
  • বিভিন্ন জাতের মধ্যে দৃঢ়তা পরামিতি পরীক্ষা

সারসংক্ষেপ

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

কৌশল সোর্স কোড
/*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")