মোমেন্টাম টিডি রিভার্সাল ট্রেডিং স্ট্র্যাটেজি

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

img

সারসংক্ষেপ

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

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

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

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

উপকারিতা বিশ্লেষণ

  • মূল্য বিপরীতমুখী হওয়ার সুযোগগুলি আগেই চিহ্নিত করতে TD সিকোয়েন্সিয়াল সূচক ব্যবহার করুন
  • মূল্য পরিবর্তনের বিষয়টি নিশ্চিত করার জন্য আরও সময়োপযোগীভাবে 'চ্যাজ-রাইজ-কিল-ড্রপ' প্রক্রিয়া চালু করা হবে।
  • তুলনামূলকভাবে ভাল এন্ট্রি পয়েন্ট পাওয়ার জন্য বিপরীতমুখী অবস্থানের গঠনের পর্যায়ে অবস্থান প্রবেশ করুন

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

  • TD ধারাবাহিক সূচক মিথ্যা ব্রেকআউট থাকতে পারে। সংকেত নিশ্চিত করার জন্য অন্যান্য কারণ প্রয়োজন
  • ঝুঁকি হ্রাস করার জন্য পজিশনের আকার নির্ধারণ এবং ধরে রাখার সময়সীমা যথাযথভাবে নিয়ন্ত্রণ করা

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

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

সিদ্ধান্ত

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


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

//@version=4
//This strategy is based on TD sequential study from glaz. 
//I made some improvement and modification to comply with pine script version 4.
//Basically, it is a strategy based on proce action, supports and resistance.

strategy("Sequential Up/Down", overlay=true )
source = input(close)
BarsCount = input(9, "Count of consecutive bars")
useLinearRegression = input(false)
LR_length = input(13,"Linear Regression length")
SR = input(true,"Shows Supports and Resistance lines")
Barcolor = input(true,"Color bars when there is a signal")
transp = input(0, "Transparency of triangle Up or Downs")
Numbers = input(true,"Plot triangle Up or Downs at signal")

//Calculation
src=useLinearRegression?linreg(source,LR_length,0):source
UP = 0
DW = 0
UP := src > src[4] ? nz(UP[1]) + 1 : 0
DW := src < src[4] ? nz(DW[1]) + 1 : 0

UPUp = UP - valuewhen(UP < UP[1], UP, 1)
DWDn = DW - valuewhen(DW < DW[1], DW, 1)

plotshape(Numbers ? UPUp == BarsCount ? true : na : na, style=shape.triangledown, text="", color=color.green, location=location.abovebar, transp=transp)
plotshape(Numbers ? DWDn == BarsCount ? true : na : na, style=shape.triangleup, text="", color=color.red, location=location.belowbar, transp=transp)


// S/R Code By johan.gradin
//------------//
// Sell Setup //
//------------//
priceflip = barssince(src < src[4])
sellsetup = src > src[4] and priceflip
sell = sellsetup and barssince(priceflip != BarsCount)
sellovershoot = sellsetup and barssince(priceflip != BarsCount+4)
sellovershoot1 = sellsetup and barssince(priceflip != BarsCount+5)
sellovershoot2 = sellsetup and barssince(priceflip != BarsCount+6)
sellovershoot3 = sellsetup and barssince(priceflip != BarsCount+7)

//----------//
// Buy setup//
//----------//
priceflip1 = barssince(src > src[4])
buysetup = src < src[4] and priceflip1
buy = buysetup and barssince(priceflip1 != BarsCount)
buyovershoot = barssince(priceflip1 != BarsCount+4) and buysetup
buyovershoot1 = barssince(priceflip1 != BarsCount+5) and buysetup
buyovershoot2 = barssince(priceflip1 != BarsCount+6) and buysetup
buyovershoot3 = barssince(priceflip1 != BarsCount+7) and buysetup

//----------//
// TD lines //
//----------//
TDbuyh = valuewhen(buy, high, 0)
TDbuyl = valuewhen(buy, low, 0)
TDsellh = valuewhen(sell, high, 0)
TDselll = valuewhen(sell, low, 0)

//----------//
//   Plots  //
//----------//

plot(SR ? TDbuyh ? TDbuyl : na : na, style=plot.style_circles, linewidth=1, color=color.red)
plot(SR ? TDselll ? TDsellh : na : na, style=plot.style_circles, linewidth=1, color=color.lime)
barcolor(Barcolor ? sell ? #FF0000 : buy ? #00FF00 : sellovershoot ? #FF66A3 : sellovershoot1 ? #FF3385 : sellovershoot2 ? #FF0066 : sellovershoot3 ? #CC0052 : buyovershoot ? #D6FF5C : buyovershoot1 ? #D1FF47 : buyovershoot2 ? #B8E62E : buyovershoot3 ? #8FB224 : na : na)

//  Strategy: (Thanks to JayRogers)
// === STRATEGY RELATED INPUTS ===
//tradeInvert     = input(defval = false, title = "Invert Trade Direction?")
// the risk management inputs
inpTakeProfit   = input(defval = 0, title = "Take Profit Points", minval = 0)
inpStopLoss     = input(defval = 0, title = "Stop Loss Points", minval = 0)
inpTrailStop    = input(defval = 100, title = "Trailing Stop Loss Points", minval = 0)
inpTrailOffset  = input(defval = 0, title = "Trailing Stop Loss Offset Points", minval = 0)

// === RISK MANAGEMENT VALUE PREP ===
// if an input is less than 1, assuming not wanted so we assign 'na' value to disable it.
useTakeProfit   = inpTakeProfit  >= 1 ? inpTakeProfit  : na
useStopLoss     = inpStopLoss    >= 1 ? inpStopLoss    : na
useTrailStop    = inpTrailStop   >= 1 ? inpTrailStop   : na
useTrailOffset  = inpTrailOffset >= 1 ? inpTrailOffset : na

// === STRATEGY - LONG POSITION EXECUTION ===
enterLong() => buy or buyovershoot or buyovershoot1 or buyovershoot2 or buyovershoot3// functions can be used to wrap up and work out complex conditions
//exitLong() => oscillator <= 0
strategy.entry(id = "Buy", long = true, when = enterLong() )// use function or simple condition to decide when to get in
//strategy.close(id = "Buy", when = exitLong() )// ...and when to get out

// === STRATEGY - SHORT POSITION EXECUTION ===
enterShort() => sell or sellovershoot or sellovershoot2 or sellovershoot3
//exitShort() => oscillator >= 0
strategy.entry(id = "Sell", long = false, when = enterShort())
//strategy.close(id = "Sell", when = exitShort() )

// === STRATEGY RISK MANAGEMENT EXECUTION ===
// finally, make use of all the earlier values we got prepped
strategy.exit("Exit Buy", from_entry = "Buy", profit = useTakeProfit, loss = useStopLoss, trail_points = useTrailStop, trail_offset = useTrailOffset)
strategy.exit("Exit Sell", from_entry = "Sell", profit = useTakeProfit, loss = useStopLoss, trail_points = useTrailStop, trail_offset = useTrailOffset)



আরো