কৌশল অনুসরণ করে ত্রিগুণ নিশ্চিতকরণের প্রবণতা

লেখক:চাওঝাং, তারিখঃ 2024-01-05 15:46:21
ট্যাগঃ

img

সারসংক্ষেপ

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

কৌশল নীতি

  1. গতির সূচক (Momentum RSI)

    • বাজারের প্রবণতার শক্তি নির্ধারণের জন্য মোমেন্টাম আরএসআই সূচক ব্যবহার করা হয়। 60 এর উপরে পাঠগুলি একটি শক্তিশালী বাজারের প্রবণতা নির্দেশ করে।

    • ট্রেডিং সিগন্যাল শুধুমাত্র তীব্র ষাঁড় বা ভালুক বাজারের সময় উৎপন্ন হয়।

  2. সুপারট্রেন্ড বিশ্লেষণ

    • সুপারট্রেন্ড লাইন বাজার প্রবণতার দিক নির্দেশ করে। যখন মূল্য সুপারট্রেন্ড লাইনটি অতিক্রম করে তখনই পজিশনগুলি বিবেচনা করা হয়।

    • যখন মূল্য সুপারট্রেন্ড লাইনটি উপরে দিয়ে যায়, তখন এটি একটি আপট্রেন্ডে রূপান্তরিত হয়; যখন এটি নীচে ভাঙ্গতে থাকে তখন এটি একটি ডাউনট্রেন্ডে রূপান্তরিত হয়।

  3. ইএমএ কৌশল

    • ইএমএ এবং এর সহায়ক প্রবণতা রেখা প্রবণতা দিক নিশ্চিত করতে ব্যবহৃত হয়। কিনুন সংকেত শুধুমাত্র যখন ইএমএ সহায়ক প্রবণতা রেখা মাধ্যমে আপ বিরতি প্রদর্শিত হয়, এবং সংক্ষিপ্ত সংকেত বিপরীত হয়।

কেবলমাত্র যখন তিনটি সূচক একই সাথে পজিশন খোলার শর্ত পূরণ করে তখনই প্রকৃত ট্রেডিং সিগন্যাল জারি করা হবে। এটি মিথ্যা সংকেতগুলির সংখ্যাকে ব্যাপকভাবে হ্রাস করে এবং কৌশলটির স্থিতিশীলতা উন্নত করে।

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

এই কৌশল অত্যন্ত স্থিতিশীল এবং লাভজনক। প্রধান সুবিধা হলঃ

  1. একাধিক নিশ্চিতকরণ প্রক্রিয়া কার্যকরভাবে গোলমাল ফিল্টার করে এবং কেবলমাত্র উচ্চ সম্ভাব্যতার ট্রেডগুলি নির্বাচন করে।

  2. সুপারট্রেন্ড লাইনে ঝুঁকি কার্যকরভাবে নিয়ন্ত্রণ করার জন্য একটি গতিশীল ট্রেলিং স্টপ লস রয়েছে।

  3. প্রবণতা শক্তির মূল্যায়নের সাথে যুক্ত, শুধুমাত্র শক্তিশালী প্রবণতা ট্রেডিং অতিরিক্ত ঝুঁকি এড়ায়।

  4. EMA সূচকটি বাণিজ্যের সঠিক দিকনির্দেশনা নিশ্চিত করার জন্য অতিরিক্ত যাচাইকরণ প্রদান করে।

  5. সম্পূর্ণরূপে প্যারামিটারাইজড যাতে ব্যবসায়ীরা প্রয়োজন অনুযায়ী কাস্টমাইজ করতে পারে।

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

এই কৌশলটির প্রধান ঝুঁকিগুলি অস্বাভাবিক ব্রেকআউট থেকে আসে যা ভুল ট্রেডিং সংকেত সৃষ্টি করে। প্রধান ঝুঁকি এবং সমাধানগুলির মধ্যে রয়েছেঃ

  1. ভুয়া পরাজয়ের ঝুঁকিঃ পরাজয়ের যাচাইকরণ ব্যবস্থা বাড়ানো।

  2. বৃহত্তর দোলন পরিসীমা ঝুঁকিঃ যথাযথভাবে স্টপ লস পরিসীমা সামঞ্জস্য করুন।

  3. প্রবণতা বিপরীত ঝুঁকিঃ হোল্ডিং সময়কাল সংক্ষিপ্ত, সময়মত স্টপ লস।

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

এই কৌশলটি অপ্টিমাইজ করার প্রধান দিকগুলির মধ্যে রয়েছেঃ

  1. প্যারামিটার অপ্টিমাইজেশানঃ আরও জাতের জন্য সূচক প্যারামিটারগুলি সামঞ্জস্য করুন।

  2. আরও বেশি ফিল্টারিংঃ সিগন্যালের গুণমান উন্নত করার জন্য আরও সূচক একত্রিত করুন।

  3. সমন্বিত কৌশলঃ পরিপূরক সুবিধাগুলি ব্যবহার করার জন্য অন্যান্য কৌশলগুলির সাথে একত্রিত করুন।

  4. গতিশীল পরামিতি সমন্বয়ঃ বাজারের অবস্থার উপর ভিত্তি করে স্বয়ংক্রিয়ভাবে পরামিতি সমন্বয়।

  5. মেশিন লার্নিংঃ অ্যালগরিদম ব্যবহার করে স্বয়ংক্রিয়ভাবে সর্বোত্তম পরামিতি খুঁজে পাওয়া যায়।

সংক্ষিপ্তসার

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


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

//@version=5
strategy('The Flash-Strategy (Momentum-RSI, EMA-crossover, ATR)', shorttitle='The Flash-Strategy (Momentum-RSI, EMA-crossover, ATR)', overlay=true,initial_capital = 1000)
//// author -  Baby_whale_to_moon

// MOM Rsi indicator 
group_mom_rsi = "Rsi Of Momentum "
len = input.int(10, minval=1, title="Length Mom-Rsi", group =group_mom_rsi ,tooltip = 'This ind calculate Rsi value of Momentum we use this ind to determine power of trend')
src2 = close
mom = src2 - src2[len]
rsi_mom = ta.rsi(mom, len)
mom_rsi_val = input.int(60, minval=1, title="Mom-Rsi Limit Val", group =group_mom_rsi, tooltip = "When our Mom-Rsi value more then this we open LONG or Short, with help of this indicator we we determine the status of the trend")

// Super Trend Ind
group_supertrend = "SuperTrend indicator"
atrPeriod = input(10, "ATR Length SuperTrend", group = group_supertrend)
factor = input.float(3.0, "Factor SuperTrend", step = 0.01, group = group_supertrend)

[supertrend, direction] = ta.supertrend(factor, atrPeriod)

// Ema Indicator
group_most = "Ema indicator"
src = input(close, 'Source Ema Ind',group = group_most)
AP2 = input.int(defval=12, title='Length Ema Ind', minval=1,group = group_most)
Trail1 = ta.ema(src, AP2) //Ema func
AF2 = input.float(defval=1, title='Percent Ema Ind', minval=0.1,group = group_most) / 100
SL2 = Trail1 * AF2  // Stoploss Ema
Trail2 = 0.0
iff_1 = Trail1 > nz(Trail2[1], 0) ? Trail1 - SL2 : Trail1 + SL2
iff_2 = Trail1 < nz(Trail2[1], 0) and Trail1[1] < nz(Trail2[1], 0) ? math.min(nz(Trail2[1], 0), Trail1 + SL2) : iff_1
Trail2 := Trail1 > nz(Trail2[1], 0) and Trail1[1] > nz(Trail2[1], 0) ? math.max(nz(Trail2[1], 0), Trail1 - SL2) : iff_2

//Bull = ta.barssince(Trail1 > Trail2 and close > Trail2 and low > Trail2) < ta.barssince(Trail2 > Trail1 and close < Trail2 and high < Trail2)

//TS1 = plot(Trail1, 'ExMov', style=plot.style_line, color=Trail1 > Trail2 ? color.rgb(33, 149, 243, 100) : color.rgb(255, 235, 59, 100), linewidth=2)
//TS2 = plot(Trail2, 'ema', style=plot.style_line, color=Trail1 > Trail2 ? color.rgb(76, 175, 79, 30) : color.rgb(255, 82, 82, 30), linewidth=2)
//fill(TS1, TS2, Bull  ? color.green : color.red, transp=90)


// Strategy Sett
group_strategy = "Settings of Strategy"
Start_Time = input(defval=timestamp('01 January 2000 13:30 +0000'), title='Start Time of BackTest', group =group_strategy)
End_Time = input(defval=timestamp('30 April 2030 19:30 +0000'), title='End Time of BackTest', group =group_strategy)
dollar = input.float(title='Dollar Cost Per Position* ', defval=50000, group =group_strategy)
trade_direction = input.string(title='Trade_direction', group =group_strategy, options=['LONG', 'SHORT', 'BOTH'], defval='BOTH')
v1 = input(true, title="Version 1 - Uses SL/TP Dynamically ", group =group_strategy ,tooltip = 'With this settings our stoploss price increase or decrease with price to get better PNL score')

v2 = input(false, title="Version 2 -  Uses SL/TP Statically", group =group_strategy)
v2stoploss_input = input.float(5, title='Static Stop.Loss % Val', minval=0.01, group =group_strategy)/100
v2takeprofit_input = input.float(10, title='Static Take.Prof % Val', minval=0.01, group =group_strategy)/100

v2stoploss_level_long = strategy.position_avg_price * (1 - v2stoploss_input)
v2takeprofit_level_long = strategy.position_avg_price * (1 + v2takeprofit_input)

v2stoploss_level_short = strategy.position_avg_price * (1 + v2stoploss_input)
v2takeprofit_level_short = strategy.position_avg_price * (1 - v2takeprofit_input)

group_line = "Line Settings"
show_sl_tp = input.bool(title='  Show StopLoss - TakeProf Lines',inline = "1", defval=true, group =group_line)
show_trend_line = input.bool(title='  Show Trend Line',inline = '3' ,defval=true, group =group_line)
stoploss_colour = input.color(title='StopLoss Line Colour',inline = '2' ,defval=color.rgb(255, 255, 0), group =group_line)
up_trend_line_colour = input.color(title='Up Trend line Colour',inline = '4' ,defval=color.rgb(0, 255, 0, 30), group =group_line)
down_trend_line_colour = input.color(title='Down Trend line Colour',inline = '4' ,defval=color.rgb(255, 0, 0, 30), group =group_line)

//plot(supertrend ,color = strategy.position_size > 0 and show_sl_tp ? color.rgb(255, 0, 0) :show_sl_tp ? color.rgb(0, 255, 0) : na , style = plot.style_steplinebr,linewidth = 2)
// plot(supertrend ,color = show_sl_tp and v1 ? stoploss_colour : na , style = plot.style_steplinebr,linewidth = 2)

// plot(v2stoploss_level_long ,color = strategy.position_size > 0 and show_sl_tp and v2 ? stoploss_colour : na , style = plot.style_steplinebr,linewidth = 2)
// plot(v2stoploss_level_short ,color = strategy.position_size < 0 and show_sl_tp and v2 ? stoploss_colour : na , style = plot.style_steplinebr,linewidth = 2)
// plot(v2takeprofit_level_long  ,color = strategy.position_size > 0 and show_sl_tp and v2 ? up_trend_line_colour : na , style = plot.style_steplinebr,linewidth = 2)
// plot(v2takeprofit_level_short ,color = strategy.position_size < 0 and show_sl_tp and v2 ? up_trend_line_colour : na , style = plot.style_steplinebr,linewidth = 2)


TS2 = plot(Trail2, 'Ema Strategy', style=plot.style_line, color=show_trend_line and Trail1 < Trail2 ? down_trend_line_colour : show_trend_line ? up_trend_line_colour  : na, linewidth=2)

// bgcolor(buy_signal ? color.rgb(0, 230, 119, 80) : na)
// bgcolor(sell_signal ? color.rgb(255, 82, 82, 80) : na)

Time_interval = true
buy_signal = Trail1 > Trail2 and direction < 0 and rsi_mom > mom_rsi_val and Time_interval
sell_signal =Trail1 < Trail2 and direction > 0 and rsi_mom > mom_rsi_val and Time_interval


// Strategy entries 
if strategy.opentrades == 0 and buy_signal and ( trade_direction == 'LONG' or trade_direction == 'BOTH')
    strategy.entry('Long_0', strategy.long, qty=dollar / close)

if strategy.opentrades == 0 and sell_signal and ( trade_direction == 'SHORT' or trade_direction == 'BOTH')
    strategy.entry('Short_0', strategy.short, qty=dollar / close)


if close < supertrend and v1
    strategy.exit('Long_Close',from_entry = "Long_0", stop=supertrend, qty_percent=100)
if  v2 and strategy.position_size > 0
    strategy.exit('Long_Close',from_entry = "Long_0", stop=v2stoploss_level_long,limit= v2takeprofit_level_long  , qty_percent=100)
    
if close > supertrend and v1
    strategy.exit('Short_Close',from_entry = "Short_0", stop=supertrend, qty_percent=100)
if  v2 and strategy.position_size < 0
    strategy.exit('Short_Close',from_entry = "Short_0", stop=v2stoploss_level_short,limit= v2takeprofit_level_short ,qty_percent=100)
    

আরো