সঠিক ট্রেন্ড ব্রেকআউট ট্রেডিং কৌশল

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

img

সারসংক্ষেপ

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

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

  1. ট্রেন্ডের দিকনির্দেশনা নির্ধারণের জন্য ৮ পেরিওড ইএমএ এবং ৮০ পেরিওড ইএমএ ব্যবহার করুন। ৮০ পেরিওড ইএমএর উপরে ৮ পেরিওড ইএমএ আপট্রেন্ড নির্দেশ করে এবং বিপরীতভাবে ডাউনট্রেন্ডের জন্য। ট্রেড সংকেতগুলি কেবল তখনই বিবেচনা করুন যখন ট্রেন্ডের দিকটি সম্মত হয়।

  2. নির্দিষ্ট 3-ক্যান্ডেল গঠন নির্ধারণ করুন যেখানে ক্যান্ডেল 1 নিম্ন < ক্যান্ডেল 2 নিম্ন এবং ক্যান্ডেল 3 নিম্ন < ক্যান্ডেল 2 নিম্ন। এই প্যাটার্নটি আপট্রেন্ডে দীর্ঘ প্রবেশ এবং ডাউনট্রেন্ডে স্বল্প প্রবেশের সংকেত দেয়।

  3. তৃতীয় মোমবাতিটি পূর্ববর্তী মোমবাতিটির পরিসরের মধ্যে বন্ধের দামের সাথে ভিতরে বার গঠন করে। 123 প্যাটার্নটি ভিতরে বার সহ তাত্ক্ষণিক ট্রেড অর্ডার স্থাপনকে ট্রিগার করে।

  4. তৃতীয় মোমবাতি উচ্চতায় লম্বা এবং তৃতীয় মোমবাতি নিম্নতায় সংক্ষিপ্ত প্রবেশ করুন। মোমবাতি 2 নিম্ন (লং এন্ট্রি) বা মোমবাতি 2 উচ্চ (সংক্ষিপ্ত এন্ট্রি) এ স্টপ লস সেট করুন। 2x ঝুঁকিতে মুনাফা নিন।

  5. ট্রেন্ড, প্যাটার্ন, ইন্ডিকেটর উচ্চ সম্ভাব্যতার ট্রেডের জন্য সম্মত হলে ব্রেকআউট অর্ডার দিন। শক্তিশালী ব্রেকআউট পদ্ধতির জন্য মুনাফা লক করতে স্টপ লস এবং লাভ নিন।

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

এই কৌশল নিম্নলিখিত প্রধান সুবিধাগুলি আছেঃ

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

  2. ক্যান্ডেলস্টিক প্যাটার্ন উচ্চ সম্ভাব্যতা ব্রেকআউট গঠন জন্য স্ক্রিন.

  3. প্রবণতা, প্যাটার্ন এবং সূচকগুলির মধ্যে ঐক্যমত সিগন্যালের গুণমান নিশ্চিত করে।

  4. ভিতরের বারটি সংকেতের নির্ভরযোগ্যতা বাড়ায় এবং প্রবেশের সময়কে আরও সুরক্ষিত করে।

  5. পূর্ব নির্ধারিত স্টপ লস এবং লাভ নেওয়ার মাধ্যমে ট্রেডিং ঝুঁকি পরিচালনা করা যায়।

  6. ব্যাক-টেস্টগুলি পরিসংখ্যানগত প্রান্তের জন্য 65% এর বেশি জয় হারকে বৈধ করে।

সংক্ষেপে বলা যায়, কৌশলটি একটি সুনির্দিষ্ট ব্রেকআউট টাইমিংয়ের জন্য বিস্তৃত প্রবণতা, প্যাটার্ন এবং সূচক বিশ্লেষণকে কাজে লাগায়, যা স্থিতিশীল ঝুঁকি-উপার্জন প্রান্ত প্রদান করে।

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

প্রধান ঝুঁকিগুলি নিম্নলিখিত থেকে উদ্ভূতঃ

  1. ভুল প্রবণতা কল অস্থির অবস্থার মধ্যে মিথ্যা সংকেত উত্পাদন। অতিরিক্ত প্রবণতা মেট্রিক নিশ্চিতকরণ উন্নত করতে পারেন।

  2. স্ট্যাটিক স্টপ লস/টেক প্রফিট প্রতিটি মূল্য সুইংয়ের সাথে পুরোপুরি ফিট করতে ব্যর্থ হয়। অভিযোজিত অঞ্চলগুলি পছন্দসই হতে পারে।

  3. মোমবাতি প্যাটার্ন স্বীকৃতি ব্যাপক অপ্টিমাইজেশান প্রয়োজন প্যারামিটার টিউনিং উপর নির্ভর করে।

  4. ব্ল্যাক সোয়ান ইভেন্টগুলি বাণিজ্যের উপর গুরুতর প্রভাব ফেলে অনির্দেশ্য। ঝুঁকি নিয়ন্ত্রণের জন্য পজিশন সাইজিংয়ের পরামর্শ দেওয়া হয়।

  5. ব্যাকটেস্টের ফলাফলগুলি অতিরিক্ত ফিট হতে পারে এবং লাইভ পারফরম্যান্সকে ভুল উপস্থাপন করতে পারে। পরামিতিগুলির দৃust়তা যাচাইয়ের প্রয়োজন।

  6. লেনদেনের ঘনত্ব বৃদ্ধি হলে লেনদেনের খরচ বাড়বে। লেনদেনের খরচকে পুরোপুরি কভার করতে হবে।

যথাযথ প্যারামিটার অপ্টিমাইজেশন, সংকেত মাত্রা যোগ করা এবং অবস্থানের আকার কার্যকরভাবে ঝুঁকি হ্রাস এবং কর্মক্ষমতা ধারাবাহিকতা উন্নত করতে পারে।

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

অপ্টিমাইজেশনের মূল মাত্রাগুলির মধ্যে রয়েছেঃ

  1. আরও স্থিতিশীলতার জন্য অতিরিক্ত মোমবাতি সময়ের পরামিতি পরীক্ষা করুন।

  2. ভলিউম কনফার্মেশন যোগ করুন যাতে মিথ্যা ব্রেকআউট না হয়।

  3. প্যারামিটার স্থিতিশীলতার জন্য শার্প রেসিওর মতো মেট্রিক অন্তর্ভুক্ত করুন।

  4. নিয়ন্ত্রিত গতিশীল লাভের জন্য মুনাফা ট্র্যাকিং প্রক্রিয়া প্রবর্তন করা।

  5. অনিশ্চয়তা এড়াতে VIX আতঙ্ক স্তর দ্বারা সংকেত ফিল্টার করুন।

  6. আদর্শ ট্রেডিং সময়কালের জন্য হোল্ডিং সময়কাল অপ্টিমাইজ করুন।

  7. স্ট্যাটিক স্টপ ছাড়াও স্টপ লস মেকানিক্স উন্নত করুন।

এই পদক্ষেপগুলি কৌশল স্থিতিশীলতা, নমনীয়তা এবং লাভজনকতা আরও উন্নত করতে পারে।

সিদ্ধান্ত

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


/*backtest
start: 2022-11-01 00:00:00
end: 2023-10-14 05:20:00
period: 1d
basePeriod: 1h
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/
// © julianossilva

//@version=5
strategy(title="J2S Backtest: 123-Stormer Strategy",
         shorttitle="J2S Backtest: 123-Stormer Strategy",
         overlay=true, initial_capital=1000, default_qty_value=10,
         default_qty_type = strategy.percent_of_equity, pyramiding=0)

// Initial Backtest Date Range
useStartDate = timestamp("01 Jan 2020 21:00:00")
useEndDate   = timestamp("01 Jan 2023 21:00:00")

// User Inputs
SIGNAL_CONFIG          = "BACKTEST: STORMER STRATEGY (123)"
longEntryInput         = input.bool(defval=true,         title="Long Entry",                     group=SIGNAL_CONFIG)
shortEntryInput        = input.bool(defval=true,         title="Short entry",                    group=SIGNAL_CONFIG)
thresholdForEntryInput = input.int(defval=3,             title="Threshold on clandes for entry", group=SIGNAL_CONFIG)
insideBarStrategyTitle = "Only third candle inside bar is valid"
insideBarStrategyTip   = "According to Stomer, it would be the best signal for the strategy"
insideBarStrategyInput = input.bool(defval=true,         title=insideBarStrategyTitle,           group=SIGNAL_CONFIG, tooltip=insideBarStrategyTip)
EMA_CONFIG             = "BACKTEST: EXPONENTIAL MOVING AVERAGES"
sourceInput            = input.source(defval=close,      title="Source",           inline="01",  group=EMA_CONFIG)
emaTimeframeInput      = input.timeframe("1W",           title="Timeframe",        inline="01",  group=EMA_CONFIG)
emaOffsetInput         = input.int(defval=8,             title="Offset",           inline="01",  group=EMA_CONFIG)
fastEMALengthInput     = input.int(defval=8,             title="Fast EMA Length",  inline="02",  group=EMA_CONFIG)
useFastEMAInput        = input.bool(defval=true,         title="Use Fast EMA",     inline="02",  group=EMA_CONFIG)
slowEMALengthInput     = input.int(defval=80,            title="Slow EMA Length",  inline="03",  group=EMA_CONFIG)
useSlowEMAInput        = input.bool(defval=true,         title="Use Slow EMA",     inline="03",  group=EMA_CONFIG)
PERIOD_CONFIG          = "BACKTEST: TIME PERIOD"
useDateFilterInput     = input.bool(defval=true,         title="Filter Date Range of Backtest",  group=PERIOD_CONFIG)
backtestStartDateInput = input(defval=useStartDate, title="Start Date",                     group=PERIOD_CONFIG)
backtestEndDateInput   = input(defval=useEndDate,   title="End Date",                       group=PERIOD_CONFIG)

// Colors
bbBackgroundColor  = color.rgb(33, 150, 243, 90)
candleColorDown    = color.rgb(239, 83, 80, 80)
candleColorUp      = color.rgb(38, 166, 154, 70)
insideBarColorDown = color.rgb(239, 83, 80, 40)
insideBarColorUp   = color.rgb(38, 166, 154, 20)
downTrendColor     = color.rgb(239, 83, 80, 80)
sidewaysTrendColor = color.rgb(252, 232, 131, 80)
upTrendColor       = color.rgb(38, 166, 154, 80)
buySignalColor     = color.lime
sellSignalColor    = color.orange

// Candles
isCandleUp()   => close > open
isCandleDown() => close <= open
barcolor(isCandleUp() ? candleColorUp : isCandleDown() ? candleColorDown : na)

// Exponential Moving Averages
fastEMA         = request.security(syminfo.tickerid, emaTimeframeInput, ta.ema(sourceInput, fastEMALengthInput),    barmerge.gaps_on,  barmerge.lookahead_on)
currentFastEMA  = request.security(syminfo.tickerid, emaTimeframeInput, ta.ema(sourceInput, fastEMALengthInput),    barmerge.gaps_off, barmerge.lookahead_on)
previousFastEMA = request.security(syminfo.tickerid, emaTimeframeInput, ta.ema(sourceInput[1], fastEMALengthInput), barmerge.gaps_off, barmerge.lookahead_on)
slowEMA         = request.security(syminfo.tickerid, emaTimeframeInput, ta.ema(sourceInput, slowEMALengthInput),    barmerge.gaps_on,  barmerge.lookahead_on)
currentSlowEMA  = request.security(syminfo.tickerid, emaTimeframeInput, ta.ema(sourceInput, slowEMALengthInput),    barmerge.gaps_off, barmerge.lookahead_on)
previousSlowEMA = request.security(syminfo.tickerid, emaTimeframeInput, ta.ema(sourceInput[1], slowEMALengthInput), barmerge.gaps_off, barmerge.lookahead_on)

// Trend Rules for Exponential Moving Averages
isSlowEMAUp()   => currentSlowEMA > previousSlowEMA
isSlowEMADown() => currentSlowEMA < previousSlowEMA
isFastEMAUp()   => currentFastEMA > previousFastEMA
isFastEMADown() => currentFastEMA < previousFastEMA

// Exponential Moving Average Colors
fastEMAColor = isFastEMAUp() ? upTrendColor : isFastEMADown() ? downTrendColor : sidewaysTrendColor
slowEMAColor = isSlowEMAUp() ? upTrendColor : isSlowEMADown() ? downTrendColor : sidewaysTrendColor

// Display Exponential Moving Averages
plot(useFastEMAInput ? fastEMA : na, offset=emaOffsetInput, color=fastEMAColor, title="Fast EMA", style=plot.style_line, linewidth=4)
plot(useSlowEMAInput ? slowEMA : na, offset=emaOffsetInput, color=slowEMAColor, title="Slow EMA", style=plot.style_line, linewidth=7)

// Price Trend
pricesAboveFastEMA() => low[2] > currentFastEMA and low[1] > currentFastEMA and low > currentFastEMA
pricesAboveSlowEMA() => low[2] > currentSlowEMA and low[1] > currentSlowEMA and low > currentSlowEMA
pricesBelowFastEMA() => high[2] < currentFastEMA and high[1] < currentFastEMA and high < currentFastEMA
pricesBelowSlowEMA() => high[2] < currentSlowEMA and high[1] < currentSlowEMA and high < currentSlowEMA

// Market in Bullish Trend
isBullishTrend() =>
    if useFastEMAInput and useSlowEMAInput
        pricesAboveFastEMA() and pricesAboveSlowEMA()
    else if useFastEMAInput
        pricesAboveFastEMA()
    else if useSlowEMAInput
        pricesAboveSlowEMA()
    else
        na

// Market in Bearish Trend
isBearishTrend() =>
    if useFastEMAInput and useSlowEMAInput
        pricesBelowFastEMA() and pricesBelowSlowEMA()
    else if useFastEMAInput
        pricesBelowFastEMA()
    else if useSlowEMAInput
        pricesBelowSlowEMA()
    else
        na

// Stormer Strategy (123)
isFirstCandleUp()   => high[2] > high[1] and low[2] > low[1]
isFirstCandleDown() => high[2] < high[1] and low[2] < low[1]
isThirdCandleUp()   => low > low[1]
isThirdCandleDown() => high < high[1]
isThirdCandleInsideBar() => high < high[1] and low > low[1]

// Buy Signal
isStormer123Buy() =>
    if insideBarStrategyInput
        longEntryInput and isFirstCandleUp() and isThirdCandleInsideBar() and isBullishTrend()
    else
        longEntryInput and isFirstCandleUp() and isThirdCandleUp() and isBullishTrend()

// Sell Signal
isStormer123Sell() =>
    if insideBarStrategyInput
        shortEntryInput and isFirstCandleDown() and isThirdCandleInsideBar() and isBearishTrend()
    else
        shortEntryInput and isFirstCandleDown() and isThirdCandleDown() and isBearishTrend()

// Backtest Time Period
inTradeWindow             = true
isInTradeWindow()         => inTradeWindow
isBacktestDateRangeOver() => not inTradeWindow and inTradeWindow[1]

// Backtest Price Parameters
highestPrice = ta.highest(high, 3)
lowestPrice  = ta.lowest(low,3)
priceRange   = highestPrice - lowestPrice

// Stormer Strategy (123): LONG
var myLongOrders = array.new_int(0)
longtEntryID     = "Long Entry:\n" + str.tostring(bar_index)
longExitID       = "Long Exit:\n" + str.tostring(bar_index)
stopLossInLong   = lowestPrice + 0.01
takeProfitInLong = priceRange + high

longEntryHasBeenMet = isInTradeWindow() and isBullishTrend() and isStormer123Buy()

// Scheduling LONG entry
if longEntryHasBeenMet
    array.push(myLongOrders, bar_index)
    strategy.order(longtEntryID, strategy.long, stop=high)
    strategy.exit(longExitID, longtEntryID, stop=stopLossInLong, limit=takeProfitInLong)

// In pine script, any order scheduled but not yet filled can be canceled.
// Once a order is filled, the trade is only finished with use of close or exit functions.
// As scheduled orders are not stored in the strategy.opentrades array, manual control is required.
for myOrderIndex = 0 to (array.size(myLongOrders) == 0 ? na : array.size(myLongOrders) - 1)
    myLongOrder = array.get(myLongOrders, myOrderIndex)
    if bar_index - myLongOrder == thresholdForEntryInput
        longEntryID = "Long Entry:\n" + str.tostring(myLongOrder)
        strategy.cancel(longEntryID)

// Stormer Strategy (123): SHORT
var myShortOrders = array.new_int(0)
shortEntryID      = "Short Entry:\n" + str.tostring(bar_index)
shortExitID       = "Short Exit:\n" + str.tostring(bar_index)
stopLossInShort   = highestPrice + 0.01
takeProfitInShort = low - priceRange

shortEntryHasBeenMet = isInTradeWindow() and isBearishTrend() and isStormer123Sell()

// Scheduling SHORT entry
if shortEntryHasBeenMet
    array.push(myShortOrders, bar_index)
    strategy.order(shortEntryID, strategy.short, stop=low)
    strategy.exit(shortExitID, shortEntryID, stop=stopLossInShort, limit=takeProfitInShort)

// In pine script, any order scheduled but not yet filled can be canceled.
// Once a order is filled, the trade is only finished with use of close or exit functions.
// As scheduled orders are not stored in the strategy.opentrades array, manual control is required.
for myOrderIndex = 0 to (array.size(myShortOrders) == 0 ? na : array.size(myShortOrders) - 1)
    myShortOrder = array.get(myShortOrders, myOrderIndex)
    if bar_index - myShortOrder == thresholdForEntryInput
        shortEntryID := "Short Entry:\n" + str.tostring(myShortOrder)
        strategy.cancel(shortEntryID)

// Close all positions at the end of the backtest period
if isBacktestDateRangeOver()
    strategy.cancel_all()
    strategy.close_all(comment="Date Range Exit")

// Display Signals
plotshape(series=longEntryHasBeenMet,  title="123 Buy",  style=shape.triangleup,   location=location.belowbar, color=buySignalColor,  text="123", textcolor=buySignalColor)
plotshape(series=shortEntryHasBeenMet, title="123 Sell", style=shape.triangledown, location=location.abovebar, color=sellSignalColor, text="123", textcolor=sellSignalColor)

আরো