মাল্টি ইন্ডিকেটর ট্রেন্ড ট্র্যাকিং কৌশল

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

img

সারসংক্ষেপ

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

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

  1. ফিশার ট্রান্সফর্ম মূল্য পরিবর্তনের প্রবণতা এবং গতি সনাক্ত করতে। ট্রেডিং সংকেত উত্পন্ন হয় যখন চারটি ফিশার লাইন সিঙ্ক্রোনভাবে রঙ পরিবর্তন করে।
  2. ডব্লিউএমএ প্রধান প্রবণতা দিক নির্ধারণ করতে পারে। আরএসআই মিথ্যা সংকেত ফিল্টার করে।
  3. প্রবণতা নিশ্চিত করতে OBV.

বিশেষত, ফিশার ট্রান্সফর্মটিতে চারটি লাইন রয়েছে - 1x, 2x, 4x এবং 8x। যখন চারটি লাইন একসাথে সবুজ হয়ে যায়, তখন একটি দীর্ঘ সংকেত উত্পন্ন হয়। যখন চারটি লাইন একসাথে লাল হয়ে যায়, তখন একটি সংক্ষিপ্ত সংকেত উত্পন্ন হয়। ডাব্লুএমএ নির্ধারণ করে যে প্রধান প্রবণতাটি উত্থান বা bearish। ওবিভি প্রবণতার দিকটি নিশ্চিত করে। আরএসআই মিথ্যা সংকেতগুলি ফিল্টার করে।

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

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

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

একাধিক সূচকের সংমিশ্রণের মাধ্যমে, এটি ট্রেডিং সংকেতগুলির নির্ভুলতা এবং নির্ভরযোগ্যতা নিশ্চিত করে এবং প্রবণতা ধরতে সক্ষম, যা একটি ভাল কৌশল কর্মক্ষমতা নিয়ে আসে।

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

এই কৌশলের ঝুঁকি:

  1. যদি বাজার একত্রীকরণে থাকে তবে ফিশার লাইনগুলি মিথ্যা সংকেত তৈরি করতে পারে। এই ক্ষেত্রে RSI মিথ্যা সংকেতগুলি ফিল্টার করতে সহায়তা করে।
  2. ডব্লিউএমএ পরামিতির ভুল সেটিং ট্রেন্ডের নির্ভুলতাকে প্রভাবিত করতে পারে।
  3. ফিশার ট্রান্সফর্ম অতি স্বল্পমেয়াদী প্রবণতায় ভালো পারফর্ম করে না।
  4. জলপ্রপাতের পতন বিশাল ক্ষতির কারণ হতে পারে।

ঝুঁকি হ্রাস করার জন্য, আরএসআই পরামিতি যথাযথভাবে সামঞ্জস্য করা যেতে পারে। ডাব্লুএমএ সময়কাল অপ্টিমাইজ করা যেতে পারে। বিশাল ক্ষতি এড়ানোর জন্য স্টপ লসও সেট করা যেতে পারে।

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

এই কৌশল নিম্নলিখিত দিক থেকে আরও অপ্টিমাইজ করা যেতে পারেঃ

  1. সর্বোত্তম প্যারামিটার সমন্বয় খুঁজে পেতে বিভিন্ন সময়সীমার মধ্যে কার্যকারিতা পরীক্ষা করুন।
  2. স্টপ লস মেকানিজম যোগ করুন। স্টপ লস সেট করুন যখন লস একটি নির্দিষ্ট স্তরে পৌঁছায়।
  3. সর্বোত্তম নির্ভুলতার সাথে সর্বোত্তম প্যারামিটার সমন্বয় খুঁজে পেতে ব্যাকটেস্টের ফলাফলের উপর ভিত্তি করে ফিশার ট্রান্সফর্ম পরামিতিগুলি আরও সামঞ্জস্য করুন।
  4. অন্যান্য ফিল্টারিং সূচক যেমন শক্তি সূচক, পক্ষপাত সূচক ইত্যাদি যোগ করার চেষ্টা করুন।
  5. অবস্থান আকার নির্ধারণের জন্য বিভিন্ন কৌশল পরীক্ষা করুন।

সিদ্ধান্ত

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


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

//@version=5
//author Sdover0123
strategy(title='FTR, WMA, OBV & RSI Strat', shorttitle='FTR WMA, OBV, RSI',overlay=false, default_qty_type=strategy.percent_of_equity, initial_capital = 100, default_qty_value=100, commission_value = 0.06, pyramiding = 3)
Len = input.int(10, minval=1, group ="Fisher Transform")
mult1 = input.int(1, minval=1, group ="Fisher Transform")
mult2 = input.int(2, minval=1, group ="Fisher Transform")
mult3 = input.int(4, minval=1, group ="Fisher Transform")
mult4 = input.int(8, minval=1, group ="Fisher Transform")
fish(Length, timeMultiplier) =>
    var nValue1 = 0.0
    var nValue2 = 0.0
    var nFish = 0.0
    xHL2 = hl2
    xMaxH = ta.highest(xHL2, Length * timeMultiplier)
    xMinL = ta.lowest(xHL2, Length * timeMultiplier)
    nValue1 := 0.33 * 2 * ((xHL2 - xMinL) / (xMaxH - xMinL) - 0.5) + 0.67 * nz(nValue1[1])
    if nValue1 > .99
        nValue2 := .999
        nValue2
    else if nValue1 < -.99
        nValue2 := -.999
        nValue2
    else
        nValue2 := nValue1
        nValue2
    nFish := 0.5 * math.log((1 + nValue2) / (1 - nValue2)) + 0.5 * nz(nFish[1])
    nFish
Fisher1 = fish(Len, mult1)
Fisher2 = fish(Len, mult2)
Fisher4 = fish(Len, mult3)
Fisher8 = fish(Len, mult4)

rsiLength = input.int(14, minval=1, group ="Moving Averages")
rsiVal = (ta.rsi(close, rsiLength) - 50) / 10
avg = strategy.position_avg_price

wma(source, length) =>
    sum = 0.0
    for i = 0 to length - 1
        sum := sum + source[i] * (length - i)
    wma = sum / (length * (length + 1) / 2)
    wma

wmaLength = input.int(10, "WMA Length", minval=1, group ="Moving Averages")
wmaClose = wma(close, wmaLength)
// Determine if WMA is bullish or bearish
isWmaBullish = wmaClose > wmaClose[1]
isWmaBearish = wmaClose < wmaClose[1]

//OBV 
src = close
length = input.int(20, title="OBV Length", group="On-Balance Volume")
obv1(src) =>
    change_1 = ta.change(src)
    ta.cum(ta.change(src) > 0 ? volume : change_1 < 0 ? -volume : 0 * volume)*0.01
os = obv1(src)
obv_osc = os - ta.ema(os, length)
obc_color = (obv_osc > 0 ? color.rgb(0, 255, 8) : color.rgb(255, 0, 0))
plot(obv_osc, color=obc_color, style=plot.style_line, title='OBV-Points', linewidth=2)
plot(obv_osc, color=color.new(#b2b5be, 70), title='OBV', style=plot.style_area)
obvBullFilter = input.float(0.1, minval = 0, maxval = 5, step = 0.01, title ="OBV Bullish minimum value", group="On-Balance Volume")
obvBearFilter = input.float(-0.1, minval = -5, maxval = 0, step = 0.01, title ="OBV Bearish minimum value", group="On-Balance Volume")
obvBull = obv_osc > obvBullFilter
obvBear = obv_osc < obvBearFilter

// Add buy/sell signals
ReversalFilterDown = input.float(-0.7, 'Reversal Down TP Filter', -4, 4, step = 0.01, group = "RSI Level Filters", tooltip = "This is defined by taking the RSI value -50 and /10. When all Fisher lines are changing colour, this will SL/TP the long")
ReversalFilterUp = input.float(0.7, 'Reversal Up TP Filter', -4, 4, step = 0.01, group = "RSI Level Filters", tooltip = "This is defined by taking the RSI value -50 and /10. When all Fisher lines are changing colour, this will SL/TP the short")
RSILevelBuyFilter = input.float(1.66, 'RSI Level Buy Filter', -4, 4, step = 0.01, group = "RSI Level Filters", tooltip = "This is defined by taking the RSI value -50 and /10. Consider negative values")
RSILevelSellFilter = input.float(1, 'RSI Level Sell Filter', -4, 4, step = 0.01, group = "RSI Level Filters", tooltip = "This is defined by taking the RSI value -50 and /10. Consider negative values")
//buys - if breaking out and all Fisher are green and RSI filter value is met 
buySignal = Fisher1 > Fisher1[1] and Fisher2 > Fisher2[1] and Fisher4 > Fisher4[1] and Fisher8 > Fisher8[1] and rsiVal > RSILevelBuyFilter and isWmaBullish and obvBull
ReversalUp = Fisher1 > Fisher1[1] and Fisher2 > Fisher2[1] and Fisher4 > Fisher4[1] and Fisher8 > Fisher8[1] and rsiVal > ReversalFilterUp
//sells - if breaking down and all Fisher are green and RSI filter value is met 
sellSignal = Fisher1 < Fisher1[1] and Fisher2 < Fisher2[1] and Fisher4 < Fisher4[1] and Fisher8 < Fisher8[1] and rsiVal < RSILevelSellFilter and isWmaBearish and obvBear
ReversalDown = Fisher1 < Fisher1[1] and Fisher2 < Fisher2[1] and Fisher4 < Fisher4[1] and Fisher8 < Fisher8[1] and rsiVal < ReversalFilterDown


// Buy and Sell conditions
if buySignal and time>timestamp(2022, 06, 01, 09, 30) and barstate.isconfirmed
    strategy.close("Sell", comment = "Close Short")
    strategy.entry("Buy", strategy.long, comment = "Long")

if sellSignal and time>timestamp(2022, 06, 01, 09, 30) and barstate.isconfirmed
    strategy.close("Buy", comment = "Close Long")
    strategy.entry("Sell", strategy.short, comment = "Short")

if ReversalDown
    strategy.close("Buy", comment = "Close Long")

if ReversalUp
    strategy.close("Sell", comment = "Close Short")

//Plotting
//Fisher
plot(Fisher1, color=Fisher1 > nz(Fisher1[1]) ? color.green : color.rgb(255, 0, 0), title='Fisher TF:1')
plot(Fisher2, color=Fisher2 > nz(Fisher2[1]) ? color.green : color.rgb(255, 0, 0), title='Fisher TF:1', linewidth=2)
plot(Fisher4, color=Fisher4 > nz(Fisher4[1]) ? #008000 : #b60000, title='Fisher TF:1', linewidth=3)
plot(Fisher8, color=Fisher8 > nz(Fisher8[1]) ? #004f00 : #b60000, title='Fisher TF:1', linewidth=3)
//RSI
plot(rsiVal, color=rsiVal < 0 ? color.purple : color.yellow, linewidth=2, title='RSI')

//WMA
plot(isWmaBullish ? -2 : na, color=color.rgb(76, 175, 79, 20), linewidth=3, style=plot.style_linebr, title="WMA Bullish")
plot(isWmaBearish ? -2 : na, color=color.rgb(255, 82, 82, 20), linewidth=3, style=plot.style_linebr, title="WMA Bearish")

//Buy/Sell Signals
plotshape(buySignal, title='Buy Signal', location=location.bottom, color=color.new(color.lime, 0), style=shape.triangleup, size=size.small)
plotshape(sellSignal, title='Sell Signal', location=location.top, color=color.new(color.red, 0), style=shape.triangledown, size=size.small)

//Orientation
hline(RSILevelBuyFilter, color=color.rgb(25, 36, 99, 20), linestyle=hline.style_dotted, linewidth=2)
hline(RSILevelSellFilter, color=color.rgb(111, 27, 27, 20), linestyle=hline.style_dotted, linewidth=2)
hline(0, color=color.rgb(181, 166, 144, 39), linestyle=hline.style_dashed, linewidth=2, title = "Zero Line")
hline(1.5, color=color.rgb(217, 219, 220, 50), linestyle=hline.style_dotted, linewidth=2, title = "1.5 // 65 Line")
hline(-1.5, color=color.rgb(217, 219, 220, 50), linestyle=hline.style_dotted, linewidth=2, title = "-1.5 // 35 Line")

আরো