ডাবল এমএ স্টক ইন্ডিকেটর কম্বো ট্রেডিং কৌশল

লেখক:চাওঝাং, তারিখ: ২০২৩-০৯-১২ 14:44:56
ট্যাগঃ

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

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

  1. ট্রেন্ডের দিকনির্দেশনা নির্ধারণের জন্য দীর্ঘমেয়াদী এমএ এবং স্বল্পমেয়াদী ইএমএ গণনা করুন।

  2. অতিরিক্ত ক্রয়/অতিরিক্ত বিক্রয় স্তর চিহ্নিত করার জন্য স্টক কে এবং ডি মান গণনা করুন।

  3. যখন ক্লোজ মার্কেটিং ম্যানেজমেন্টের উপরে চলে যায়, এবং স্টোক কে এন্ড ডি ওভার-ক্রেতা লাইনের উপরে চলে যায়, তখন লম্বা হয়ে যায়।

  4. যখন CLOSE EMA এর নিচে পড়ে, এবং স্টক K&D ওভারসোল্ড লাইনের নিচে পড়ে, তখন শর্ট হয়ে যায়।

  5. নির্ধারিত ট্রেডিং দিক চিহ্নিত করতে COLOR ব্যবহার করুন।

উপকারিতা:

  1. ডাবল এমএ ট্রেন্ডের নির্ভুলতা উন্নত করে এবং মিথ্যা সংকেত এড়ায়।

  2. স্টক উচ্চ সম্ভাবনা ক্রয় / বিক্রয় অঞ্চল চিহ্নিত করে।

  3. সূচকগুলির সংমিশ্রণ যাচাইকরণের মাধ্যমে নির্ভরযোগ্যতা বৃদ্ধি করে।

ঝুঁকি:

  1. খারাপ প্যারামিটার টিউনিং অতিরিক্ত সংকেত বা অসঙ্গতি সৃষ্টি করে।

  2. এমএ এবং স্টোক উভয়ই বিলম্বিত হতে পারে, যা অকাল বা বিলম্বিত প্রবেশের কারণ হতে পারে।

  3. উন্নত নির্ভরযোগ্যতা সত্ত্বেও আরও সূচক মানে আরও জটিলতা।

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


/*backtest
start: 2023-08-12 00:00:00
end: 2023-09-11 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4

// strategy("PMB2", overlay=true, default_qty_type = strategy.percent_of_equity, default_qty_value = 20, initial_capital=1000, currency=currency.USD)
//study(title="PMB2", overlay=true)

l_ma = input(50, title="MA (green)", type=input.integer)
l_ema = input(25, title="EMA (red)", type=input.integer)

MA = sma(close,l_ma)
EMA = ema(close,l_ema)

plot(MA, color=color.green)
plot(EMA, color=color.red)

//STOCH(14,3,3)
length = input(20, minval=1, title="STOCH - K")
smoothK = input(2, minval=1, title="STOCH - D")
smoothD = input(2 , minval=1, title="STOCH - Smooth")

StkLong= input(50 , minval=1, maxval=100, title="Long when Close > MA and Stoch > ")
StkShort= input(80 , minval=1, maxval=100, title="Short when Close < EMA and Stoch < ")

k = sma(stoch(close, high, low, length), smoothK)
d = sma(k, smoothD)
//plot(k, color=color.blue, title="STOCH - K")
//plot(d, color=color.orange, title="STOCH - D")
//band180 = hline(80, title="STOCH - Banda superior")
//band120 = hline(20, title="STOCH - Banda superior")
//band100 = hline(50,  color=color.gray, editable=false, linestyle=hline.style_solid)
//fill(band180, band120, color=color.gray, transp=75, title="STOCH - Fundo")

BTStartY = input(title="Strategy Test Start Year", type=input.integer, defval=2019, minval=2010, maxval=2100)
BTStartM = input(title="Strategy Test Start Month", type=input.integer, defval=1, minval=1, maxval=12)
BTStartD = input(title="Strategy Test Start Day", type=input.integer, defval=1, minval=1, maxval=31)
BTStopY = input(title="Strategy Test Stop Year", type=input.integer, defval=2019, minval=2010, maxval=2100)
BTStopM = input(title="Strategy Test Stop Month", type=input.integer, defval=12, minval=1, maxval=12)
BTStopD = input(title="Strategy Test Stop Day", type=input.integer, defval=31, minval=1, maxval=31)

// set up min and max date for strategy test
TMin = timestamp(BTStartY, BTStartM, BTStartD, 00, 00)
TMax = timestamp(BTStopY, BTStopM, BTStopD, 00, 00)
InTime = true

bool long = false, short = false, trade = false

trade := trade[1]
long := long[1]
short := short[1]

if (crossover(close, MA) and k > StkLong and d > StkLong) // "LONG!"
//if (close > MA and k > StkLong and d > StkLong) // "LONG!"
    short := false
    long := true
    trade := true // LONG

if (crossunder(close, EMA)  and k < StkShort and d < StkShort) // "SHORT!""
//if (close < EMA and k < StkShort and d < StkShort) // "SHORT!""
    long := false
    short := true
    trade := false // SHORT


//bgcolor(FL > SH ? color.green : FH < SL ? color.red : na, transp=80)
bgcolor(trade ? color.green : color.red, transp=90)

//alertcondition((crossover(close, MA) and k > 50 and d > 50) , title='Buy', message='Buy')
//alertcondition((crossunder(close, EMA) and k > 80 and d > 80) , title='Sell', message='Sell')


if ((crossover(close, MA) and k > StkLong and d > StkLong) and InTime)
//if ((close > MA and k > StkLong and d > StkLong) and InTime)
    strategy.entry("Long", strategy.long)

if ((crossunder(close, EMA) and k < StkShort and d < StkShort)  and InTime)
//if ((close < EMA and k < StkShort and d < StkShort)  and InTime)
    strategy.entry("Short", strategy.short)
    





আরো