
এই কৌশলটি একটি পরিমাপযোগ্য ট্রেডিং সিস্টেম যা Z- স্কোরের পরিসংখ্যানগত পদ্ধতি, তুলনামূলকভাবে দুর্বল সূচক (RSI) এবং সুপারট্রেন্ডের সূচক (সুপারট্রেন্ড) এর সমন্বয় করে। এই কৌশলটি মূল্যের পরিসংখ্যানগত বিচ্যুতি পর্যবেক্ষণ করে, গতিশীলতা সূচক এবং প্রবণতা নিশ্চিতকরণের সাথে মিলিত হয়, বাজারে উচ্চ সম্ভাব্যতার সুযোগগুলি সন্ধান করে। এই কৌশলটি কেবলমাত্র বাজারের ওভার-বিক্রয় ওভার-বিক্রয় সুযোগগুলিই ধরতে পারে না, তবে এটি প্রবণতা সনাক্তকরণের মাধ্যমে ভুয়া সংকেতগুলি ফিল্টার করতে পারে এবং বহু-বিভাগীয় দ্বি-মুখী বাণিজ্য অর্জন করতে পারে।
কৌশলটির কেন্দ্রীয় যুক্তিটি তিনটি প্রধান প্রযুক্তিগত সূচকের সমন্বয়মূলক কার্যকারিতার উপর ভিত্তি করে তৈরি করা হয়েছেঃ প্রথমত, 75-চক্রের চলমান গড় এবং স্ট্যান্ডার্ড ডিফারেনশিয়াল ব্যবহার করে দামের Z স্কোর গণনা করে বর্তমান দামের ঐতিহাসিক গড়ের থেকে বিচ্যুতি পরিমাপ করা হয়। যখন Z স্কোর 1.1 এর বেশি বা -1 .1 এর চেয়ে কম হয়, তখন দামের একটি উল্লেখযোগ্য পরিসংখ্যানগত বিচ্যুতি দেখা দেয়। দ্বিতীয়ত, RSI সূচকটি গতিশীলতা হিসাবে প্রবর্তন করা হয়, যা নিশ্চিত করে যে অবস্থান খোলার সময় RSI- এর সাথে সমন্বয় করা প্রয়োজন ((RSI> 60 মাল্টিহেডের সময়, RSI <40 শূন্য সময়ে) । অবশেষে, সুপার ট্রেন্ডিং সূচকটি ট্রেন্ডিং ফিল্টার হিসাবে ব্যবহৃত হয়, যা 11-চক্রের ATR এবং 2.0 এর গুণিতক গণনা করে। এই কৌশলটি কেবলমাত্র যখন তিনটি শর্ত পূরণ করে তখনই একটি ট্রেডিং সিগন্যাল দেয়।
এটি একটি পরিসংখ্যানগত পদ্ধতি এবং প্রযুক্তিগত বিশ্লেষণের সমন্বিত একটি পরিমাণগত ট্রেডিং কৌশল যা একাধিক সংকেত নিশ্চিতকরণের মাধ্যমে লেনদেনের নির্ভরযোগ্যতা বাড়ায়। কৌশলটির মূল সুবিধাটি এর উদ্দেশ্যমূলক গাণিতিক মডেল এবং একটি উন্নত ঝুঁকি নিয়ন্ত্রণ ব্যবস্থা, তবে একই সাথে প্যারামিটার অপ্টিমাইজেশন এবং বাজার অভিযোজনযোগ্যতার বিষয়েও মনোযোগ দেওয়া দরকার। প্রস্তাবিত অপ্টিমাইজেশন দিকনির্দেশের মাধ্যমে, কৌশলটির আরও উন্নতির জন্য আরও জায়গা রয়েছে, বিশেষত বাজারের পরিবেশ এবং ঝুঁকি নিয়ন্ত্রণের সাথে গতিশীল অভিযোজন। এই কৌশলটি বড় অস্থিরতা এবং সুস্পষ্ট প্রবণতা সহ বাজারে ব্যবহারের জন্য উপযুক্ত।
/*backtest
start: 2024-01-01 00:00:00
end: 2024-11-26 00:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Z-Score Long and Short Strategy with Supertrend", overlay=true)
// Inputs for Z-Score
len = input.int(75, "Z-Score Lookback Length")
z_long_threshold = 1.1 // Threshold for Z-Score to open long
z_short_threshold = -1.1 // Threshold for Z-Score to open short
// Z-Score Calculation
z = (close - ta.sma(close, len)) / ta.stdev(close, len)
// Calculate Driver RSI
driver_rsi_length = input.int(14, "Driver RSI Length") // Input for RSI Length
driver_rsi = ta.rsi(close, driver_rsi_length) // Calculate the RSI
// Supertrend Parameters
atrPeriod = input.int(11, "ATR Length", minval=1)
factor = input.float(2.0, "Factor", minval=0.01, step=0.01)
// Supertrend Calculation
[supertrend, direction] = ta.supertrend(factor, atrPeriod)
// Conditions for Long and Short based on Z-Score
z_exceeds_long = z >= z_long_threshold and driver_rsi > 60
z_exceeds_short = z <= z_short_threshold and driver_rsi < 40
// Entry Conditions
if (z_exceeds_long and direction < 0) // Enter Long if Z-Score exceeds threshold and Supertrend is down
strategy.entry("Long", strategy.long)
label.new(bar_index, low, text="Open Long", style=label.style_label_up, color=color.green, textcolor=color.white, size=size.small)
alert("Open Long", alert.freq_once_per_bar) // Alert for Long entry
if (z_exceeds_short and direction > 0) // Enter Short if Z-Score exceeds threshold and Supertrend is up
strategy.entry("Short", strategy.short)
label.new(bar_index, high, text="Open Short", style=label.style_label_down, color=color.red, textcolor=color.white, size=size.small)
alert("Open Short", alert.freq_once_per_bar) // Alert for Short entry
// Plot Supertrend
upTrend = plot(direction < 0 ? supertrend : na, "Up Trend", color=color.green, style=plot.style_linebr)
downTrend = plot(direction > 0 ? supertrend : na, "Down Trend", color=color.red, style=plot.style_linebr)
fill(upTrend, downTrend, color=color.new(color.green, 90), fillgaps=false)
// Alert conditions for Supertrend changes (optional)
alertcondition(direction[1] > direction, title='Downtrend to Uptrend', message='The Supertrend value switched from Downtrend to Uptrend')
alertcondition(direction[1] < direction, title='Uptrend to Downtrend', message='The Supertrend value switched from Uptrend to Downtrend')