ইম্পোমেন্টাম পলব্যাক কৌশল

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

img

সারসংক্ষেপ

মোমেন্টাম পুলব্যাক কৌশল একটি মাঝারি মেয়াদী ট্রেডিং কৌশল যা ব্রেকআউট এবং পুলব্যাক সনাক্ত করে ট্রেডিং সুযোগগুলি সনাক্ত করতে চলমান গড় এবং মোমবাতি নিদর্শনগুলিকে একত্রিত করে। এটি বিকল্প এবং ফিউচারগুলির মতো উচ্চ লিভারেজযুক্ত আর্থিক পণ্যগুলির ব্যবসায়ের জন্য উপযুক্ত।

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

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

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

একটি ঐচ্ছিক ফিল্টার প্রদান করা হয় যেখানে বর্তমান মোমবাতি s বন্ধ অতিরিক্ত নিশ্চিতকরণের জন্য ফাঁক মোমবাতি s বন্ধের চেয়ে সামান্য কম বা উচ্চতর হওয়া উচিত, মিথ্যা সংকেত এড়ানো।

সুবিধা বিশ্লেষণ

  • স্পষ্ট এবং সহজ কৌশল যুক্তি, সহজ বুঝতে এবং বাস্তবায়ন
  • চলমান গড় ব্যবহার করে প্রবণতা এবং পল্টগুলি সনাক্ত করে
  • ক্যান্ডেলস্টিক প্যাটার্ন সংযুক্ত করে আরও সুনির্দিষ্ট ট্রেডিং টাইমিং
  • ঝুঁকি এবং পুরস্কারের সাথে মিলে যায়, বিচক্ষণ ট্রেডিংয়ের সাথে সামঞ্জস্যপূর্ণ
  • বিভিন্ন পণ্য এবং সময়সীমার জন্য সামঞ্জস্যযোগ্য পরামিতি
  • ঐচ্ছিক ফিল্টার কিছু মিথ্যা সংকেত এড়ায়

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

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

যুক্তিসঙ্গত স্টপ লস, পজিশনের আকার, কম ঘন ঘন ট্রেডিং ইত্যাদির মাধ্যমে ঝুঁকি হ্রাস করা যায়। সংকেত ফিল্টার করার জন্য অন্যান্য সূচকগুলির সংমিশ্রণও একটি বিকল্প।

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

  • সেরা পারফরম্যান্সের জন্য বিভিন্ন প্যারামিটার সেট পরীক্ষা করুন
  • ফিল্টার সংকেতগুলিতে অন্যান্য সূচক বা চার্ট প্যাটার্ন যুক্ত করুন
  • ডায়নামিক, ট্রেলিং স্টপ লস বর্ধিতকরণগুলি অন্বেষণ করুন
  • স্বয়ংক্রিয়ভাবে প্যারামিটার অপ্টিমাইজ করার জন্য মেশিন লার্নিং প্রয়োগ করুন
  • স্বয়ংক্রিয় স্টপ লস / লাভের প্লাগইন বিকাশ
  • পণ্য এবং সময়সীমার উপর নির্ভরশীলতা পরীক্ষা

সিদ্ধান্ত

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


/*backtest
start: 2024-01-18 00:00:00
end: 2024-01-25 00:00:00
period: 15m
basePeriod: 5m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © TradingInsights2

//@version=5
strategy("Ultimate 5EMA Strategy By PowerOfStocks", overlay=true)

Eusl = input.bool(false, title="Enable the Extra SL shown below")
usl = input.int(defval=5, title='Value to set SL number of points below-low or above-high', minval=1, maxval=100)
RiRe = input.int(defval=3, title='Risk to Reward Ratio', minval=1, maxval=25)
ShowSell = input.bool(true, 'Show Sell Signals')
ShowBuy = input.bool(false, 'Show Buy Signals')
BSWCon = input.bool(defval=false, title='Buy/Sell with Extra Condition - candle close')

// Moving Average 

ema5 = ta.ema(close, 5)
pema5 = plot(ema5, '5 Ema', color=color.new(#da1a1a, 0), linewidth=2)

var bool Short = na
var bool Long = na
var shortC = 0
var sslhitC = 0
var starhitC = 0
var float ssl = na
var float starl = na
var float star = na
var float sellat = na
var float alert_shorthigh = na
var float alert_shortlow = na
var line lssl = na
var line lstar = na
var line lsell = na
var label lssllbl = na
var label lstarlbl = na
var label lselllbl = na
var longC = 0
var lslhitC = 0
var ltarhitC = 0
var float lsl = na
var float ltarl = na
var float ltar = na
var float buyat = na
var float alert_longhigh = na
var float alert_longlow = na
var line llsl = na
var line lltar = na
var line lbuy = na
var label llsllbl = na
var label lltarlbl = na
var label lbuylbl = na

ShortWC = low[1] > ema5[1] and low[1] > low and shortC == 0 and close < close[1]
ShortWOC = low[1] > ema5[1] and low[1] > low and shortC == 0
Short := BSWCon ? ShortWC : ShortWOC
sslhit = high > ssl and shortC > 0 and sslhitC == 0
starhit = low < star and shortC > 0 and starhitC == 0
LongWC = high[1] < ema5[1] and high[1] < high and longC == 0 and close > close[1]
LongWOC = high[1] < ema5[1] and high[1] < high and longC == 0
Long := BSWCon ? LongWC : LongWOC
lslhit = low < lsl and longC > 0 and lslhitC == 0
ltarhit = high > ltar and longC > 0 and ltarhitC == 0

if Short and ShowSell
    shortC := shortC + 1
    sslhitC := 0
    starhitC := 0
    alert_shorthigh := high[1]
    if Eusl
        ssl := high[1] + usl
        starl := BSWCon ? ((high[1] - close) + usl) * RiRe : ((high[1] - low[1]) + usl) * RiRe
    else
        ssl := high[1]
        starl := BSWCon ? (high[1] - close) * RiRe : (high[1] - low[1]) * RiRe
    star := BSWCon ? close - starl : low[1] - starl
    sellat := BSWCon ? close : low[1]
    // lssl := line.new(bar_index, ssl, bar_index, ssl, color=color.new(#fc2d01, 45), style=line.style_dashed)
    // lstar := line.new(bar_index, star, bar_index, star, color=color.new(color.green, 45), style=line.style_dashed)
    // lsell := line.new(bar_index, sellat, bar_index, sellat, color=color.new(color.orange, 45), style=line.style_dashed)
    // lssllbl := label.new(bar_index, ssl, style=label.style_none, text='Stop Loss - Short' + ' (' + str.tostring(ssl) + ')', textcolor=color.new(#fc2d01, 35), color=color.new(#fc2d01, 35))
    // lstarlbl := label.new(bar_index, star, style=label.style_none, text='Target - Short' + ' (' + str.tostring(star) + ')', textcolor=color.new(color.green, 35), color=color.new(color.green, 35))
    // lselllbl := label.new(bar_index, sellat, style=label.style_none, text='Sell at' + ' (' + str.tostring(sellat) + ')', textcolor=color.new(color.orange, 35), color=color.new(color.orange, 35))

if sslhit == false and starhit == false and shortC > 0
    // line.set_x2(lssl, bar_index)
    // line.set_x2(lstar, bar_index)
    // line.set_x2(lsell, bar_index)
    sslhitC := 0
    starhitC := 0
else
    if sslhit
        shortC := 0
        sslhitC := sslhitC + 1
    else
        if starhit
            shortC := 0
            starhitC := starhitC + 1

if Long and ShowBuy
    longC := longC + 1
    lslhitC := 0
    ltarhitC := 0
    alert_longlow := low[1]
    if Eusl
        lsl := low[1] - usl
        ltarl := BSWCon ? ((close - low[1]) + usl) * RiRe : ((high[1] - low[1]) + usl) * RiRe
    else
        lsl := low[1]
        ltarl := BSWCon ? (close - low[1]) * RiRe : (high[1] - low[1]) * RiRe
    ltar := BSWCon ? close + ltarl : high[1] + ltarl
    buyat := BSWCon ? close : high[1]
    llsl := line.new(bar_index, lsl, bar_index, lsl, color=color.new(#fc2d01, 45), style=line.style_dotted)
    lltar := line.new(bar_index, ltar, bar_index, ltar, color=color.new(color.green, 45), style=line.style_dotted)
    lbuy := line.new(bar_index, buyat, bar_index, buyat, color=color.new(color.orange, 45), style=line.style_dotted)
    llsllbl := label.new(bar_index, lsl, style=label.style_none, text='Stop Loss - Long' + ' (' + str.tostring(lsl) + ')', textcolor=color.new(#fc2d01, 35), color=color.new(#fc2d01, 35))
    lltarlbl := label.new(bar_index, ltar, style=label.style_none, text='Target - Long' + ' (' + str.tostring(ltar) + ')', textcolor=color.new(color.green, 35), color=color.new(color.green, 35))
    lbuylbl := label.new(bar_index, buyat, style=label.style_none, text='Buy at' + ' (' + str.tostring(buyat) + ')', textcolor=color.new(color.orange, 35), color=color.new(color.orange, 35))

if lslhit == false and ltarhit == false and longC > 0
    // line.set_x2(llsl, bar_index)
    // line.set_x2(lltar, bar_index)
    // line.set_x2(lbuy, bar_index)
    lslhitC := 0
    ltarhitC := 0
else
    if lslhit
        longC := 0
        lslhitC := lslhitC + 1
    else
        if ltarhit
            longC := 0
            ltarhitC := ltarhitC + 1

strategy.entry("Buy", strategy.long, when=Long)
strategy.entry("Sell", strategy.short, when=Short)
strategy.close("ExitBuy", when=sslhit or starhit)
strategy.close("ExitSell", when=lslhit or ltarhit)

plotshape(ShowSell and Short, title='Sell', location=location.abovebar, offset=0, color=color.new(#e74c3c, 45), style=shape.arrowdown, size=size.normal, text='Sell', textcolor=color.new(#e74c3c, 55))
plotshape(ShowSell and sslhit, title='SL Hit - Short', location=location.abovebar, offset=0, color=color.new(#fc2d01, 25), style=shape.arrowdown, size=size.normal, text='SL Hit - Short', textcolor=color.new(#fc2d01, 25))
plotshape(ShowSell and starhit, title='Target Hit - Short', location=location.belowbar, offset=0, color=color.new(color.green, 45), style=shape.arrowup, size=size.normal, text='Target Hit - Short', textcolor=color.new(color.green, 55))
plotshape(ShowBuy and Long, title='Buy', location=location.belowbar, offset=0, color=color.new(#2ecc71, 45), style=shape.arrowup, size=size.normal, text='Buy', textcolor=color.new(#2ecc71, 55))
plotshape(ShowBuy and lslhit, title='SL Hit - Long', location=location.belowbar, offset=0, color=color.new(#fc2d01, 25), style=shape.arrowdown, size=size.normal, text='SL Hit - Long', textcolor=color.new(#fc2d01, 25))
plotshape(ShowBuy and ltarhit, title='Target Hit - Long', location=location.abovebar, offset=0, color=color.new(color.green, 45), style=shape.arrowup, size=size.normal, text='Target Hit - Long', textcolor=color.new(color.green, 55))

if ShowSell and Short
    alert("Go Short@ " + str.tostring(sellat) + " : SL@ " + str.tostring(ssl) + " : Target@ " + str.tostring(star) + " ", alert.freq_once_per_bar )

if ShowBuy and Long
    alert("Go Long@ " + str.tostring(buyat) + " : SL@ " + str.tostring(lsl) + " : Target@ " + str.tostring(ltar) + " ", alert.freq_once_per_bar )

///// End of code

আরো