মোমেন্টাম দর কষাকষির কৌশল


সৃষ্টির তারিখ: 2024-01-26 11:07:47 অবশেষে সংশোধন করুন: 2024-01-26 11:07:47
অনুলিপি: 16 ক্লিকের সংখ্যা: 570
1
ফোকাস
1617
অনুসারী

মোমেন্টাম দর কষাকষির কৌশল

ওভারভিউ

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

কৌশল নীতি

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

যখন দাম 5 দিনের গড়কে অতিক্রম করে এবং বন্ধ হয়ে যায়, তখন পূর্ববর্তী লাফানো কে লাইনের সর্বোচ্চ দামটি স্টপ লস হয়, সর্বনিম্ন দামটি একটি নির্দিষ্ট রিটার্ন রেঞ্জকে হ্রাস করে এবং রিস্ক রিটার্ন রেসিটি হিসাবে স্টপ টার্গেট হিসাবে। যখন দাম 5 দিনের গড়কে অতিক্রম করে এবং বন্ধ হয়ে যায়, তখন পূর্ববর্তী লাফানো কে লাইনের সর্বনিম্ন দামটি স্টপ লস হয়, সর্বোচ্চ দামটি একটি নির্দিষ্ট রিটার্ন রেঞ্জকে হ্রাস করে এবং রিস্ক রিটার্ন রেসিটি হিসাবে স্টপ টার্গেট হিসাবে।

এই কৌশলটি একটি অপশনাল ফিল্টারিং শর্তও সরবরাহ করে যে বর্তমান K-লাইনটির বন্ধের দামটি উড়ন্ত K-লাইনটির তুলনায় কিছুটা কম বা কিছুটা বেশি হওয়া উচিত, যাতে আংশিক ভুল সংকেত এড়ানো যায়।

কৌশলগত শক্তি বিশ্লেষণ

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

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

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

যুক্তিসঙ্গত স্টপ লস, যথাযথ শিথিল পজিশন হোল্ডিং এবং নিম্ন-ফ্রিকোয়েন্সি ট্রেডিংয়ের বিকল্পের মাধ্যমে ঝুঁকি হ্রাস করা যেতে পারে। অন্যান্য সূচকগুলির সাথে সংযুক্ত সংকেত ফিল্টারিং বিবেচনা করা যেতে পারে।

কৌশল অপ্টিমাইজেশনের দিকনির্দেশনা

  • বিভিন্ন প্যারামিটারের সমন্বয় পরীক্ষা করে সেরা প্যারামিটার নির্বাচন করা যায়
  • সংকেত ফিল্টারিং অপ্টিমাইজেশান অন্যান্য সূচক বা গ্রাফ সঙ্গে একত্রিত করা যেতে পারে
  • ডায়নামিক স্টপ, মোশন স্টপ ইত্যাদি বিবেচনা করা যেতে পারে
  • মেশিন লার্নিং মডেলের সাথে স্বয়ংক্রিয় অপ্টিমাইজেশান প্যারামিটার
  • স্বয়ংক্রিয় ক্ষতি বন্ধ, বন্ধ প্লাগইন বিকাশ
  • বিভিন্ন প্রজাতি এবং বিভিন্ন সময়কালের মধ্যে দৃঢ়তা যাচাই করার কৌশলগুলি ব্যবহার করা যেতে পারে

সারসংক্ষেপ

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

কৌশল সোর্স কোড
/*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