ভোল্টেবিলিটি ইনডেক্স এবং স্টোকাস্টিক অস্কিলেটর ভিত্তিক মাল্টি-পিরিয়ড ট্রেডিং কৌশল

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

img

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

নীতিমালা

  1. ভিআইএক্স অস্থিরতা সূচক গণনা করুনঃ গত ২০ দিনের মধ্যে সর্বোচ্চ এবং সর্বনিম্ন দামগুলি নিয়ে অস্থিরতা গণনা করুন। উচ্চ ভিআইএক্স বাজারের আতঙ্ককে নির্দেশ করে যখন কম ভিআইএক্স বাজারের স্বচ্ছন্দতার পরামর্শ দেয়।

  2. আরএসআই দোলক গণনা করুনঃ গত ১৪ দিনের দামের পরিবর্তনগুলি নিন। ৭০ এর উপরে আরএসআই অতিরিক্ত ক্রয়ের শর্ত এবং ৩০ এর নিচে আরএসআই অতিরিক্ত বিক্রয়ের শর্তকে নির্দেশ করে।

  3. দুইটি সূচক একত্রিত করুন। যখন VIX উপরের ব্যান্ড বা সর্বোচ্চ পার্সেন্টাইল লঙ্ঘন করে তখন লম্বা যান। যখন RSI 70 এর উপরে যায় তখন দীর্ঘ বন্ধ করুন।

সুবিধা

  1. মার্কেট টাইমিংয়ের ব্যাপক মূল্যায়নের জন্য একাধিক সূচক একত্রিত করা হয়েছে।
  2. সময়সীমার মধ্যে নির্দেশকগুলি একে অপরকে যাচাই করে এবং সিদ্ধান্তের নির্ভুলতা উন্নত করে।
  3. বিভিন্ন ট্রেডিং যন্ত্রের জন্য কাস্টমাইজযোগ্য পরামিতিগুলি অপ্টিমাইজ করা যেতে পারে।

ঝুঁকি

  1. অনুপযুক্ত প্যারামিটার টিউনিং একাধিক মিথ্যা সংকেত সৃষ্টি করতে পারে।
  2. একটি একক প্রস্থান সূচক মূল্য বিপরীতমুখী হতে পারে।

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

  1. সময় এন্ট্রিগুলিতে চলমান গড় এবং বোলিংজার ব্যান্ডের মতো আরও নিশ্চিতকারী সূচক অন্তর্ভুক্ত করুন।
  2. আরও কিছু প্রস্থান সূচক যোগ করুন যেমন বিপরীতমুখী মোমবাতি প্যাটার্ন।

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


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

//@version=5
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © timj

strategy('Vix FIX / StochRSI Strategy', overlay=true, pyramiding=9, margin_long=100, margin_short=100)

Stochlength = input.int(14, minval=1, title="lookback length of Stochastic")
StochOverBought = input.int(80, title="Stochastic overbought condition")
StochOverSold = input.int(20, title="Stochastic oversold condition")
smoothK = input(3, title="smoothing of Stochastic %K ")
smoothD = input(3, title="moving average of Stochastic %K")
k = ta.sma(ta.stoch(close, high, low, Stochlength), smoothK)
d = ta.sma(k, smoothD)

///////////// RSI 
RSIlength = input.int( 14, minval=1 , title="lookback length of RSI")
RSIOverBought = input.int( 70  , title="RSI overbought condition")
RSIOverSold = input.int( 30  , title="RSI oversold condition")
RSIprice = close
vrsi = ta.rsi(RSIprice, RSIlength)

///////////// Double strategy: RSI strategy + Stochastic strategy

pd = input(22, title="LookBack Period Standard Deviation High")
bbl = input(20, title="Bolinger Band Length")
mult = input.float(2.0    , minval=1, maxval=5, title="Bollinger Band Standard Devaition Up")
lb = input(50  , title="Look Back Period Percentile High")
ph = input(.85, title="Highest Percentile - 0.90=90%, 0.95=95%, 0.99=99%")
new = input(false, title="-------Text Plots Below Use Original Criteria-------" )
sbc = input(false, title="Show Text Plot if WVF WAS True and IS Now False")
sbcc = input(false, title="Show Text Plot if WVF IS True")
new2 = input(false, title="-------Text Plots Below Use FILTERED Criteria-------" )
sbcFilt = input(true, title="Show Text Plot For Filtered Entry")
sbcAggr = input(true, title="Show Text Plot For AGGRESSIVE Filtered Entry")
ltLB = input.float(40, minval=25, maxval=99, title="Long-Term Look Back Current Bar Has To Close Below This Value OR Medium Term--Default=40")
mtLB = input.float(14, minval=10, maxval=20, title="Medium-Term Look Back Current Bar Has To Close Below This Value OR Long Term--Default=14")
str = input.int(3, minval=1, maxval=9, title="Entry Price Action Strength--Close > X Bars Back---Default=3")
//Alerts Instructions and Options Below...Inputs Tab
new4 = input(false, title="-------------------------Turn On/Off ALERTS Below---------------------" )
new5 = input(false, title="----To Activate Alerts You HAVE To Check The Boxes Below For Any Alert Criteria You Want----")
sa1 = input(false, title="Show Alert WVF = True?")
sa2 = input(false, title="Show Alert WVF Was True Now False?")
sa3 = input(false, title="Show Alert WVF Filtered?")
sa4 = input(false, title="Show Alert WVF AGGRESSIVE Filter?")

//Williams Vix Fix Formula
wvf = ((ta.highest(close, pd)-low)/(ta.highest(close, pd)))*100
sDev = mult * ta.stdev(wvf, bbl)
midLine = ta.sma(wvf, bbl)
lowerBand = midLine - sDev
upperBand = midLine + sDev
rangeHigh = (ta.highest(wvf, lb)) * ph

//Filtered Bar Criteria
upRange = low > low[1] and close > high[1]
upRange_Aggr = close > close[1] and close > open[1]
//Filtered Criteria
filtered = ((wvf[1] >= upperBand[1] or wvf[1] >= rangeHigh[1]) and (wvf < upperBand and wvf < rangeHigh))
filtered_Aggr = (wvf[1] >= upperBand[1] or wvf[1] >= rangeHigh[1]) and not (wvf < upperBand and wvf < rangeHigh)

//Alerts Criteria
alert1 = wvf >= upperBand or wvf >= rangeHigh ? 1 : 0
alert2 = (wvf[1] >= upperBand[1] or wvf[1] >= rangeHigh[1]) and (wvf < upperBand and wvf < rangeHigh) ? 1 : 0
alert3 = upRange and close > close[str] and (close < close[ltLB] or close < close[mtLB]) and filtered ? 1 : 0
alert4 = upRange_Aggr and close > close[str] and (close < close[ltLB] or close < close[mtLB]) and filtered_Aggr ? 1 : 0

//Coloring Criteria of Williams Vix Fix
col = wvf >= upperBand or wvf >= rangeHigh ? color.lime : color.gray

isOverBought = (ta.crossover(k,d) and k > StochOverBought) ? 1 : 0
isOverBoughtv2 = k > StochOverBought ? 1 : 0
filteredAlert = alert3 ? 1 : 0
aggressiveAlert = alert4 ? 1 : 0


if (filteredAlert or aggressiveAlert)
    strategy.entry("Long", strategy.long)

if (isOverBought)
    strategy.close("Long")

আরো