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

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

img

সারসংক্ষেপ

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

কৌশল নীতি

কৌশলটি একটি দ্রুত চলমান গড়, একটি মাঝারি চলমান গড় এবং একটি ধীর চলমান গড় সহ বিভিন্ন সময়ের সাথে তিনটি চলমান গড় ব্যবহার করে।

প্রবেশের শর্তঃ

  1. লংঃ যখন দ্রুত এমএ > মাঝারি এমএ > ধীর এমএ হয়, তখন বাজারটি একটি আপট্রেন্ডে বলে মনে করা হয়, লং যান।
  2. সংক্ষিপ্তঃ যখন ধীর এমএ < মাঝারি এমএ < দ্রুত এমএ হয়, তখন বাজারটি হ্রাসপ্রবণ বলে মনে করা হয়, সংক্ষিপ্ত হয়ে যায়।

প্রস্থান শর্তাবলীঃ

  1. এমএ (MA) প্রস্থানঃ তিনটি চলমান গড়ের ক্রমানুসারে বিপরীত হওয়ার সময় অবস্থান বন্ধ করুন।
  2. টিপি/এসএল প্রস্থানঃ স্থির লাভ গ্রহণ এবং স্টপ লস পয়েন্ট সেট করুন, যেমন টিপি জন্য 12% এবং এসএল জন্য 1%, যখন মূল্য টিপি বা এসএল পৌঁছায় তখন প্রস্থান করুন।

কৌশলটি সহজ এবং সরাসরি, শক্তিশালী প্রবণতা সহ বাজারগুলির জন্য উপযুক্ত ট্রেডিংয়ের পরে ট্রেন্ডের জন্য বাজারের প্রবণতার দিকনির্দেশ নির্ধারণের জন্য তিনটি চলমান গড় ব্যবহার করে।

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

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

ঝুঁকি এবং উন্নতি

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

সিদ্ধান্ত

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


/*backtest
start: 2023-10-06 00:00:00
end: 2023-11-05 00:00:00
period: 1h
basePeriod: 15m
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/
// © Jompatan

//@version=5
strategy('Strategy Triple Moving Average', overlay=true, initial_capital = 1000, commission_value=0.04, max_labels_count=200)

//INPUTS
mov_ave = input.string(defval="EMA", title='Moving Average type:', options= ["EMA", "SMA"])

period_1 = input.int(9,  title='Period 1', inline="1", group= "============== Moving Average Inputs ==============")
period_2 = input.int(21, title='Period 2', inline="2", group= "============== Moving Average Inputs ==============")
period_3 = input.int(50, title='Period 3', inline="3", group= "============== Moving Average Inputs ==============")

source_1 = input.source(close, title='Source 1', inline="1", group= "============== Moving Average Inputs ==============")
source_2 = input.source(close, title='Source 2', inline="2", group= "============== Moving Average Inputs ==============")
source_3 = input.source(close, title='Source 3', inline="3", group= "============== Moving Average Inputs ==============")


//EXIT CONDITIONS
exit_ma   = input.bool(true, title= "Exit by Moving average condition", group="================ EXIT CONDITIONS ================")
exit_TPSL = input.bool(false, title= "Exit by Take Profit and StopLoss", group="================ EXIT CONDITIONS ================")
TP        = input.int(12, title='Take Profit', step=1, group="================ EXIT CONDITIONS ================")
SL        = input.int(1, title='Stop Loss', step=1, group="================ EXIT CONDITIONS ================")
plot_TPSL = input.bool(false, title='Show TP/SL lines', group="================ EXIT CONDITIONS ================")


//Date filters
desde = input(defval= timestamp("01 Jan 2023 00:00 -3000"), title="From", inline="12", group= "============= DATE FILTERS =============")
hasta = input(defval= timestamp("01 Oct 2099 00:00 -3000"), title="To  ", inline="13", group= "============= DATE FILTERS =============")
enRango = true

//COMMENTS
//entry_long_comment  = input.string(defval=" ", title="Entry Long comment: ", inline="14", group="============= COMMENTS =============")
//exit_long_comment   = input.string(defval=" ", title="Exit Long comment:  ", inline="15", group="============= COMMENTS =============")
//entry_short_comment = input.string(defval=" ", title="Entry Short comment:", inline="16", group="============= COMMENTS =============")
//exit_short_comment  = input.string(defval=" ", title="Exit Short comment: ", inline="17", group="============= COMMENTS =============")

//============================================================

//Selecting Moving average type
ma1 = mov_ave == "EMA" ? ta.ema(source_1, period_1) : ta.sma(source_1, period_1)
ma2 = mov_ave == "EMA" ? ta.ema(source_2, period_2) : ta.sma(source_2, period_2)
ma3 = mov_ave == "EMA" ? ta.ema(source_3, period_3) : ta.sma(source_3, period_3)

//============================================================
//Entry Long condition: Grouped Moving average from: (ma fast > ma middle > ma slow)
long_condition = (ma1 > ma2) and (ma2 > ma3)

//Entry Short condition: Grouped Moving average from: (ma fast < ma middle < ma slow)
short_condition = (ma1 < ma2) and (ma2 < ma3)

//============================================================

cantidad       = strategy.equity / close
comprado_long  = strategy.position_size > 0
comprado_short = strategy.position_size < 0

var long_profit_price  = 0.0
var long_stop_price    = 0.0
var short_profit_price = 0.0
var short_stop_price   = 0.0

//============================================================

//ENTRY LONG
if not comprado_long and not comprado_short and long_condition and not long_condition[1] and enRango
    strategy.entry('Long', strategy.long, qty=cantidad, comment= "Entry Long")
    if exit_TPSL
        long_profit_price := close * (1 + TP/100)
        long_stop_price   := close * (1 - SL/100)
    else
        long_profit_price := na
        long_stop_price   := na
//============================================================


//ENTRY SHORT
if not comprado_long and not comprado_short and short_condition and not short_condition[1] and enRango
    strategy.entry('Short', strategy.short, qty=cantidad, comment= "Entry Short")
    if exit_TPSL
        short_profit_price := close * (1 - TP/100)
        short_stop_price   := close * (1 + SL/100)
    else
        short_profit_price := na
        short_stop_price   := na
//============================================================


//EXIT LONG 
if comprado_long and exit_ma and long_condition[1] and not long_condition
    strategy.close('Long', comment='Exit-Long(MA)')
if comprado_long and exit_TPSL
    strategy.exit('Long', limit=long_profit_price, stop=long_stop_price, comment='Exit-Long(TP/SL)')
//============================================================


//EXIT SHORT 
if comprado_short and exit_ma and short_condition[1] and not short_condition
    strategy.close('Short', comment='Exit-Short(MA)')
if comprado_short and exit_TPSL
    strategy.exit('Short', limit=short_profit_price, stop=short_stop_price, comment='Exit-Short(TP/SL)')
//============================================================



//PLOTS
plot(ma1, linewidth=2, color=color.rgb(255, 255, 255))
plot(ma2, linewidth=2, color=color.rgb(144, 255, 252))
plot(ma3, linewidth=2, color=color.rgb(49, 167, 255))
//Plot Take Profit line
plot(plot_TPSL ? comprado_long  ? long_profit_price : comprado_short ? short_profit_price : na : na, color=color.new(color.lime, 30), style= plot.style_linebr)
//Plot StopLoss line
plot(plot_TPSL ? comprado_long ? long_stop_price : comprado_short ? short_stop_price : na : na, color=color.new(color.red, 30), style= plot.style_linebr)









আরো