ভেগাস চ্যানেল ক্রসওভার কৌশল সরানো

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

img

এই কৌশলটির মূল ধারণা হ'ল বিভিন্ন চক্রের সাথে ইএমএগুলির ভিত্তিতে স্টকগুলির স্বল্প, মাঝারি এবং দীর্ঘমেয়াদী প্রবণতা দিক নির্ধারণ করা যেমন 36, 143, 169, ক্রয় এবং বিক্রয় সংকেত ইস্যু করার জন্য এমএসিডি সূচকের সাথে একত্রিত। বিশেষত, স্বল্পমেয়াদে, 5 এবং 10 দিনের ইএমএগুলি বিচার করতে ব্যবহৃত হয়, মাঝারি মেয়াদে, 20 এবং 60 দিনের ইএমএগুলি বিচার করতে ব্যবহৃত হয়, দীর্ঘমেয়াদে, 120 এবং 250 দিনের ইএমএগুলি বিচার করতে ব্যবহৃত হয়, যখন স্বল্পমেয়াদী ইএমএ মাঝারি মেয়াদী ইএমএকে উপরে অতিক্রম করে, তখন এটি উত্থানমুখী, অন্যথায় এটি bearish; উত্থানমুখী এবং bearish সংকেতগুলির এমএসিডি সূচকটি ক্রয় এবং বিক্রয় সময় নির্ধারণ করতে ব্যবহৃত হয়।

ভেগাস টানেল কৌশলটির নির্দিষ্ট প্রক্রিয়াঃ

  1. EMA 36 এবং EMA 43 ব্যবহার করুন স্বল্পমেয়াদী প্রবণতা বিচার করতে, তারা লাল চ্যানেল গঠন;
  2. EMA 144 এবং EMA 169 ব্যবহার করুন মধ্যমেয়াদী প্রবণতা বিচার করতে, তারা সবুজ চ্যানেল গঠন;
  3. EMA576 এবং EMA676 ব্যবহার করুন দীর্ঘমেয়াদী প্রবণতা রায় গঠন করতে, তারা ধূসর চ্যানেল গঠন;
  4. যখন মূল্য উপরে উল্লিখিত EMA লাইনে থাকে, তখন ম্যাকডি সূচকটি ক্রয় সংকেত হিসাবে ০ অক্ষের মধ্য দিয়ে ঊর্ধ্বমুখী হয়;
  5. যখন মূল্য উপরে উল্লিখিত EMA লাইনের নিচে ভেঙে যায়, তখন বিক্রয় সংকেত হিসাবে MACD সূচকটি 0 অক্ষের মধ্য দিয়ে নেমে যাওয়ার সাথে সংযুক্ত হয়ে শর্ট যান;
  6. ইএমএ লাইন ব্রুকআউট অনুযায়ী, তিনটি কৌশল নির্ধারিত হয়েছে, স্বল্প, মাঝারি এবং দীর্ঘমেয়াদী, যথাক্রমে, বিভিন্ন হোল্ডিং সময়ের সাথে সামঞ্জস্যপূর্ণ।

এই কৌশলটির সুবিধাঃ

  1. ট্রেন্ডের দিকনির্দেশনা নির্ধারণের জন্য সংক্ষিপ্ত, মাঝারি এবং দীর্ঘ তিনটি চ্যানেল একত্রিত করা, তুলনামূলকভাবে স্থিতিশীল;
  2. ভেগাস টানেল প্রবণতা নির্ধারণ করার জন্য স্বজ্ঞাত;
  3. ম্যাকডি (MACD) কেনার এবং বিক্রির সময়কে আরও ভালভাবে ক্যাপচার করতে সাহায্য করে;
  4. আরও নমনীয় অপারেশনের জন্য স্বল্প, মাঝারি এবং দীর্ঘ তিনটি কৌশল বিভক্ত।

প্রধান ঝুঁকিঃ

  1. যখন দামের তীব্র ওঠানামা হয়, তখন ইএমএ লাইনগুলি বিলম্বিত হয়, যা ভুল বিচার করার সম্ভাবনা রয়েছে;
  2. যখন তিনটি চ্যানেলে অসঙ্গতিপূর্ণ সংকেত দেখা যায়, তখন ভুল অপারেশন হওয়ার ঝুঁকি থাকে।
  3. মিনিট চার্ট অপারেশনের জন্য আরও শক্তিশালী মানসিক সহনশীলতার প্রয়োজন।

মোকাবিলার পদ্ধতি:

  1. বর্তমান বাজারের বৈশিষ্ট্যগুলির সাথে আরও ভালভাবে মেলে EMA চক্রকে সামঞ্জস্য করা;
  2. একক ক্ষতি সীমাবদ্ধ করার জন্য পজিশনের আকার আগে থেকে সামঞ্জস্য করুন।

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

  1. ভেগাস টানেলের ট্রেন্ড বিচার ক্ষমতা উন্নত করা প্রয়োজন, বোলিংজার ব্যান্ড যোগ করা যেতে পারে;
  2. ম্যাকডি পার্শ্ববর্তী বাজারগুলির জন্য খারাপ কাজ করে, কেডি এবং আরএসআই এর মতো সূচকগুলি আরও ভাল বিকল্প হতে পারে;
  3. স্টপ লস পলিসি যোগ করুন, যেমন স্টপ লস যখন ক্লোজিং মূল্য মূল ইএমএ লাইন ভেঙে যায়;
  4. শর্ট ইটিএফ হেক্জ করার জন্য একটি শেয়ারের লিমিট-আপ এবং ডাউনস যা বৃহত্তর প্রভাব ফেলে।

/*backtest
start: 2022-12-26 00:00:00
end: 2024-01-01 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4

strategy("Vegas Tunnel strategy", overlay=true)
//-------------------------------------------
//-------------------------------------------
// Inputs
useCurrentRes = input(true, title="Use Current Chart Resolution?")
resCustom = input(title="Use Different Timeframe? Uncheck Box Above", type=input.resolution, defval="D")
//tfSet = input(title = "Time Frame", options=["Current","120", "240", "D", "W"], defval="D")
tfSet = useCurrentRes ? timeframe.period : resCustom
maPeriods2 = input(12, "12 EMA")
maPeriods6 = input(240, "240 SMA")
BBlength = input(20, title="BB Length", minval=1)
BBsrc = input(close, title="BB Source")
mult = input(2.0, minval=0.001, maxval=50, title="BB StdDev")
sm2 = security(syminfo.tickerid, tfSet, ema(close, maPeriods2))
sm6 = security(syminfo.tickerid, tfSet, sma(close, maPeriods6))
p2 = plot(sm2, color=color.green, transp=30,  linewidth=2, title="SMA2")
p6 = plot(sm6, color=color.white, transp=30,  linewidth=2, title="SMA6")
//BB
basis = sma(BBsrc, BBlength)
dev = mult * stdev(BBsrc, BBlength)
upper = basis + dev
lower = basis - dev
offset = input(0, "BB Offset", type = input.integer, minval = -500, maxval = 500)
//plot(basis, "Basis", color=color.blue,linewidth, offset = offset)
pBB1 = plot(upper, "Upper", color=color.blue, offset = offset)
pBB2= plot(lower, "Lower", color=color.blue, offset = offset)

//MACD
fast_ma = ema(close, 48)
slow_ma = ema(close, 56)
macd = fast_ma - slow_ma

//vagas隧道
f1=ema(close, 36)
f2=ema(close, 43)
f3=ema(close, 144)
f4=ema(close, 169)
f5=ema(close, 576)
f6=ema(close, 676)
f7=ema(close,2304)
z1=plot(f1,color=color.red, title="ema36",transp=100)
z2=plot(f2,color=color.red, title="ema43",transp=100)
z3=plot(f3,color=color.green, title="ema144",transp=100)
z4=plot(f4,color=color.green, title="ema169",transp=100)
z5=plot(f5,color=color.white, title="ema576",transp=100)
z6=plot(f6,color=color.white, title="ema676",transp=100)
fill(z1, z2, color=color.red,transp=60)
fill(z3, z4, color=color.green,transp=60)
fill(z5, z6, color=color.gray,transp=60)

// Make input options that configure backtest date range
startDate = input(title="Start Date", type=input.integer,
     defval=1, minval=1, maxval=31)
startMonth = input(title="Start Month", type=input.integer,
     defval=1, minval=1, maxval=12)
startYear = input(title="Start Year", type=input.integer,
     defval=2018, minval=1800, maxval=2100)
endDate = input(title="End Date", type=input.integer,
     defval=1, minval=1, maxval=31)
endMonth = input(title="End Month", type=input.integer,
     defval=11, minval=1, maxval=12)
endYear = input(title="End Year", type=input.integer,
     defval=2030, minval=1800, maxval=2100)
// Look if the close time of the current bar
// falls inside the date range
inDateRange =  true

//波段多
if (inDateRange and crossunder(f3,f1))// 
    strategy.entry("buy", strategy.long,1, when=macd>0, comment = "買Long-term")
buyclose=crossunder(f3,f5) 
strategy.close("buy", when = buyclose, comment = "關Long-term")
//多策略1
if (inDateRange and crossover(low , f3) and macd>0 and f3>f6)
    strategy.entry("buy1", strategy.long,100, comment = "買Mid-term")
buyclose1=crossunder(close,upper*0.999) 
if (macd<0 or f3<f6)
    strategy.close("buy1", comment = "關Mid-term")
//strategy.close("buy1",when=cross(basis,close), comment = "關M",qty_percent=50)
strategy.close("buy1", when = buyclose1, comment = "關Mid-term",qty_percent=100)
//多策略3
if (inDateRange and  (macd>0) and crossunder(low,f1) and f1>f4) // 
    strategy.entry("buy3", strategy.long,1, comment = "買Short-term")
buyclose3=crossunder(close,upper*0.999)
if (macd<0 or f1<f4)
    strategy.close("buy3", comment = "關Short-term")
strategy.close("buy3", when = buyclose3, comment = "關Short-term")
//多策略4
if (inDateRange and  (macd>0) and crossunder(low,f5) and f4>f5) // 
    strategy.entry("buy4", strategy.long,1, comment = "買Long-term")
buyclose4=crossunder(close,upper*0.999)
if (macd<0 or f4<f6)
    strategy.close("buy4", comment = "關Long-term")
strategy.close("buy4", when = buyclose4, comment = "關Long-term")
    
//空策略1
if (inDateRange and  (macd<0) and crossunder(high,f1) and f1<f3 and f3<f6) // 
    strategy.entry("sell1", strategy.short,1, comment = "空Short-term")
sellclose1=crossunder(lower*0.999,close)
if (macd>0 or f1>f4)
    strategy.close("sell1", comment = "關空Short-term")
strategy.close("sell1", when = sellclose1, comment = "關空Short-term")
//空策略2
if (inDateRange and  (macd<0) and crossunder(high,f4) and f4<f6) // 
    strategy.entry("sell2", strategy.short,1, comment = "空Mid-term")
sellclose2=crossunder(lower,close)
if (macd>0 or f4>f6)
    strategy.close("sell2", comment = "關空Mid-term")
strategy.close("sell2", when = sellclose2, comment = "關Mid-term")
//空策略3
if (inDateRange and (macd<0) and crossunder(high,f6)) // 
    strategy.entry("sell3", strategy.short,1, comment = "空Long-term")
sellclose3=crossunder(lower,close)
if (macd>0 or f6>f7)
    strategy.close("sell3", comment = "關空Long-term")
strategy.close("sell3", when = sellclose3, comment = "關空Long-term")

আরো