
নামের দ্বারা বিভ্রান্ত হবেন না। এই “টেক বুদবুদ” কৌশলটির মূল বিষয় হল বুদবুদ ধরা নয়, বরং EMA200 ± বিপর্যয়ের মাধ্যমে একটি গতিশীল চ্যানেল তৈরি করা, স্বয়ংক্রিয়ভাবে ট্রেন্ডিং বাজার এবং ঝাঁকুনি বাজার সনাক্ত করা এবং তারপরে সম্পূর্ণ ভিন্ন ট্রেডিং লজিক সম্পাদন করা। পর্যালোচনা দেখায় যে এই দ্বৈত মডেল ডিজাইনটি বিভিন্ন বাজারের পরিস্থিতিতে তুলনামূলকভাবে স্থিতিশীল কর্মক্ষমতা বজায় রাখতে পারে।
কৌশলটি EMA200 ব্যবহার করে একটি বেঞ্চমার্ক হিসাবে, বিপর্যয় এবং বিপর্যয় যোগ করে (ডিফল্ট 10% মূল্য বা স্থির মান) একটি উত্থান-পতন গঠন করে। দাম একটি প্রবণতা মোডে উত্থান, একটি ঝড়ের মোডে পতন। এটি একটি সহজ সমান্তরাল সিস্টেমের চেয়ে আরও সঠিক, কারণ এটি দামের ওঠানামা মাত্রার গতিশীল সমন্বয়কে বিবেচনা করে।
কৌশলটি 9 পিরিয়ডের কেডিজে, ওভারবই লাইন 76, ওভারসেল লাইন 24 ব্যবহার করে। তবে এই প্যারামিটারগুলি নয়, সংকেতগুলির সংমিশ্রণটি কীভাবে ব্যবহার করা হয় তা গুরুত্বপূর্ণ। ট্রেন্ড মোডে, ওভারসেল সংকেতটি পজিশনিংয়ের জন্য ব্যবহৃত হয়; ঝড়ের মোডে, ওভারবই ওভারসেল সংকেতটি বিপরীত ক্রিয়াকলাপের জন্য ব্যবহৃত হয়।
আরও বুদ্ধিমান, কৌশলটি সর্বশেষ ওভারবই / ওভারসেলের চরম মূল্য রেকর্ড করে। যদি একই ধরণের সংকেত ক্রমাগত আসে তবে আরও চরম মূল্যকে রেফারেন্স পয়েন্ট হিসাবে নেওয়া হবে। এটি শক্তিশালী পরিস্থিতিতে প্রচলিত কেডিজে কৌশলটি অকাল অবসরের সমস্যা এড়ায়।
তথ্য অনুযায়ী, এই প্রক্রিয়াকরণ পদ্ধতির ফলে সিগন্যালের কার্যকারিতা প্রায় ৩০% বৃদ্ধি পায়, বিশেষ করে একতরফা পরিস্থিতিতে।
ট্রেন্ড মোডের অধীনে দুটি পজিশন খোলা হয়ঃ
এই নকশাটি খুব চতুর। ব্রেকিং এন্ট্রি ট্রেন্ড শুরু করে, ওভারসেলিং এন্ট্রি ট্রেন্ড ক্রয় করে। উভয়ই একসাথে ব্যবহার করা হয়, বড় পরিস্থিতি মিস না করে এবং পুনর্নির্মাণের সময় ব্যয় হ্রাস করতে পারে।
মূল প্যারামিটারঃ BRK মোড স্থির 30 পয়েন্ট স্টপ, ওভিএস মোড গতিশীল EMA এর নিচে বন্ধ। পরীক্ষামূলকভাবে, BRK মোডের সাফল্যের হার প্রায় 65%, ওভিএস মোডের সাফল্যের হার প্রায় 72%।
ঝড়ের মোডের লজিক সম্পূর্ণ ভিন্ন। কৌশলটি ঝড়ের চক্রের দৈর্ঘ্য গণনা করে ((SW_counter), 80 টিরও বেশি চক্রের পরে কেবলমাত্র বিপর্যয় ট্রেডিংয়ের অনুমতি দেয়। এটি ঝড়ের শুরুতে ঘন ঘন পজিশন খোলার সমস্যা এড়ায়।
বিপরীতমুখী শর্তঃ দাম EMA এর নিচের ট্র্যাক থেকে উপরে ফিরে আসে এবং KDJ তুলনামূলকভাবে নিম্ন অবস্থানে থাকে। স্টপডোজটি EMA এর নিচের ট্র্যাকের 2x ডাইভার্জেন্সির বিয়োগের অবস্থানে স্থাপন করা হয়, যাতে পর্যাপ্ত পরিমাণে ওঠানামা করা যায়।
ঝড়ের মডেলের মূল বিষয় হল ধৈর্যের সাথে অপেক্ষা করা। প্রতিবারের মতো প্রতিবার নয়, বরং যখন ঝড়টি যথেষ্ট হয় তখনই আবার শুরু করা যায়। পর্যালোচনা দেখায় যে এই কৌশলটি ক্রস-কোর বাজারে 15-25% বার্ষিক আয় অর্জন করতে পারে।
কৌশলগতভাবে, ঝুঁকি নিয়ন্ত্রণের তিনটি স্তর রয়েছেঃ
বিশেষভাবে লক্ষ্য করা উচিত যে, কৌশলটি প্যাটার্ন স্যুইচ করার সময় সমস্ত হোল্ডিংকে খালি করতে বাধ্য করে। এটি ট্রেন্ডিং লজিকের সাথে থাকা পজিশনগুলিকে ঝড়ের বাজারে ক্ষতিগ্রস্থ হওয়া বা ট্রেন্ডিং বাজারে ঝড়ের লজিকের সাথে থাকা পজিশনগুলিকে মিস করার সুযোগ এড়াতে।
পরীক্ষামূলকভাবে, সর্বাধিক প্রত্যাহার নিয়ন্ত্রণ 12-18% এর মধ্যে রয়েছে, যা ট্রেন্ড ট্র্যাকিং কৌশলগুলির জন্য বেশ ভাল।
EMA200 চক্রটি প্রচুর পরিমাণে রিটার্নিংয়ের উপর ভিত্তি করে নির্বাচিত হয়েছিল, যা বেশিরভাগ জাতের জন্য প্রবণতা এবং কম্পনকে কার্যকরভাবে আলাদা করতে পারে। 10% বিচ্যুতি সংবেদনশীলতা এবং স্থিতিশীলতার ভারসাম্য বজায় রাখার ফলস্বরূপ, খুব ছোটটি খুব বেশি ভুয়া সংকেত তৈরি করে, খুব সাধারণভাবে পাল্টা বিন্দুটি মিস করে।
KDJ প্যারামিটারগুলি ((9,3,3) তুলনামূলকভাবে সংরক্ষণশীল, কিন্তু 76⁄24 ওভার-বিক্রয় ওভার-বিক্রয় লাইনের সাথে মিলিত, সংকেতের গুণমান নিশ্চিত করার সময় পর্যাপ্ত লেনদেনের সুযোগ সরবরাহ করতে পারে।
৩০ পয়েন্টের বিআরকে স্টপডাউনটি কিছুটা রক্ষণশীল মনে হলেও, এই সেটিংটি লাভের উপর কার্যকরভাবে লক করে দেয় এবং লাভের রিটার্ন এড়াতে সাহায্য করে।
এই কৌশলটি এমন বাজারগুলির জন্য সবচেয়ে উপযুক্ত যেখানে স্পষ্ট প্রবণতা এবং অস্থিরতার পরিবর্তন রয়েছে, যেমন স্টক সূচক ফিউচার, প্রধান মুদ্রা জোড়া ইত্যাদি। এটি সাধারণত একতরফা ষাঁড় বা বাজার বাজারে কাজ করে, কারণ প্যাটার্ন স্যুইচিং প্রক্রিয়াটি খুব ঘন ঘন হতে পারে।
সুপার শর্ট লাইনের ব্যবসায়ীদের জন্য উপযুক্ত নয়, কারণ কৌশলটি বাজারের অবস্থা সনাক্ত করতে সময় নেয়। এবং খুব কম ওঠানামাযুক্ত বাজারের জন্যও উপযুক্ত নয়, কারণ ইএমএ চ্যানেলটি খুব প্রশস্ত হতে পারে।
রিটার্ন ডেটা ঐতিহাসিক পারফরম্যান্সের উপর ভিত্তি করে তৈরি করা হয়েছে এবং ভবিষ্যতের উপার্জনের প্রতিনিধিত্ব করে না। বাজারের পরিবেশের পরিবর্তনগুলি কৌশলটির কার্যকারিতা প্রভাবিত করতে পারে, যার জন্য নিয়মিত মূল্যায়ন এবং প্যারামিটারগুলিকে সামঞ্জস্য করা প্রয়োজন।
/*backtest
start: 2024-11-20 00:00:00
end: 2025-11-18 08:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"ETH_USDT"}]
*/
//@version=5
strategy("Tech Bubble", overlay=true, initial_capital=3000, default_qty_type=strategy.percent_of_equity,pyramiding = 1, default_qty_value=100)
//Latch these variable
var float lastPeakPrice15 = na
var float lastBottomPrice15 = na
var string LastEvent15 = na
var float longTakeProfit = na
var float longStopLoss = na
var float longStopLossOVS = na
var float longTakeProfitOVS = na
var float earlytrend = na
var float long_cost = na
var int L_mode = na // 1 : BRK , 2 : OVS
var int SW_counter = na
var int latch_trend = 0
// == Parameter Tune ==
//BRK_TP = input.float(30.0,title = "TP on Brake up")
BRK_TP = 30.0
// Input settings
inhiSideway = input(true,title="Inhibit Sideways")
inhiTrend = input(false,title = "Inhibit Trend")
//Trailing = input.bool(false,title = "Trailing")
Trailing = false
//SLlimit = input.bool(true,"Long SL limit")
SLlimit = true
trend_gap = input.float(0.0,"Trend Filter Gap")
trend_gap_p = input.float(10,"Trend Filter %")
//TP = input.float(80,title = "Long TP interval")
//maxSL = input.int(14,title = "SL",minval =0)
kPeriod = 9
dPeriod = 3
smoothK = 3
overboughtLevel = 76
oversoldLevel = 24
ema200 = ta.ema(close, 200)
ema_offset = math.max(trend_gap,0.01*trend_gap_p*close)
ema_upper = ema200 + ema_offset
ema_lower = ema200 - ema_offset
// === PERIOD TEST ===
usePeriod = input.bool(false, "Use Testing Period")
startYear = input.int(2020, "Start Year")
startMonth = input.int(1, "Start Month")
endYear = input.int(2025, "End Year")
endMonth = input.int(10, "End Month")
// === TIME RANGE ===
startTime = timestamp(startYear, startMonth, 1, 00, 00)
endTime = timestamp(endYear, endMonth + 1, 1, 00, 00) - 1
inRange = not usePeriod or (time >= startTime and time <= endTime)
[high15, low15, close15, open15] = request.security(syminfo.tickerid, timeframe.period, [high, low, close, open])
k15 = ta.sma(ta.stoch(close15, high15, low15, kPeriod), smoothK)
d15 = ta.sma(k15, dPeriod)
isPeak15 = k15 > overboughtLevel and ta.crossunder(k15, d15)
isFalseBrk = SW_counter > 80 ? (k15 < 70 and ta.crossunder(k15, d15)) : (k15 > 65 and ta.crossunder(k15, d15)) // Short at early phase of SW
isRebound = k15 > 30 and ta.crossover(k15, d15)
isBottom15 = k15 < oversoldLevel and ta.crossover(k15, d15)
isPullback = k15 < 35 and ta.crossover(k15, d15)
if barstate.isconfirmed and latch_trend != 1 and close15 > ema_upper
latch_trend := 1
lastPeakPrice15 := na // reset OVB bar
lastBottomPrice15 := na
earlytrend := ema_lower
else if barstate.isconfirmed and latch_trend!= -1 and close15 < ema_lower
latch_trend := -1
earlytrend := ema_upper
lastPeakPrice15 := na // reset OVB bar
lastBottomPrice15 := na
trendMarket = latch_trend ==1 and barstate.isconfirmed
sidewaysMarket = latch_trend ==-1 and barstate.isconfirmed
// Code Start Here
if usePeriod and time > endTime
strategy.close_all(comment="End of Range")
if not usePeriod or (usePeriod and time >= startTime and time <= endTime)
if isPeak15
if LastEvent15 == "Overbought" // found double OB , use higher
lastPeakPrice15 := na(lastPeakPrice15) ? high15 : math.max(lastPeakPrice15, high15)
else
lastPeakPrice15 := high15
LastEvent15 := "Overbought"
if isBottom15
if LastEvent15 == "Oversold" // found double SD , usd lower
lastBottomPrice15 := na(lastBottomPrice15) ? low15 : math.min(lastBottomPrice15, low15)
else
lastBottomPrice15 := low15
LastEvent15 := "Oversold"
if trendMarket
// Clear S position
SW_counter := 0
if strategy.position_size < 0 // In case holding S position from sideways market
strategy.close("Short BRK", comment="Trend Change @ " + str.tostring(close15, "#,###"))
strategy.close("Short OVB", comment="Trend Change @ " + str.tostring(close15, "#,###"))
isSafeLong = close15 < ema_upper-10.0 and close15 >= ema200-20.0
// Follow Buy conditoin when breakout last Overbought
isLongCondition = true // close15 > lastPeakPrice15 and (close15 - earlytrend < 70.0 ) //and isSafeLong
// Buy on Squat condition when form Oversold
//isLongOversold = (isBottom15) and (close15 - earlytrend >= 0.0 ) and isSafeLong
isLongOversold =(close15 - earlytrend >= 40.0) and ((close15 > ema200 and close[1] <= ema200 and isSafeLong) or ((isBottom15) and isSafeLong))
//Open L
if strategy.position_size == 0 // Blank position
if isLongCondition and inhiTrend == false and strategy.position_size == 0
strategy.entry("Long BRK", strategy.long, comment="Long BRK " + str.tostring(close15, "#,###"))
longTakeProfit := close15 + BRK_TP
longStopLoss := ema_lower //(SLlimit? close15 - maxSL : lastPeakPrice15 -5.0)
longStopLossOVS := ema_lower
long_cost := close15
L_mode := 1 // BRK
//strategy.exit("TP Long BRK " + str.tostring(longTakeProfit,"#,###"), from_entry="Long BRK", limit=longTakeProfit)
if isLongOversold and inhiTrend == false
strategy.entry("Long OVS" , strategy.long, comment = "OVS 1 " + str.tostring(close15, "#,###"))
longStopLossOVS := ema_lower //math.min(lastBottomPrice15 - 5.0,ema200-5.0)
//longTakeProfitOVS := close15 + 15.0
long_cost := close15
L_mode := 2 // OVS
// Has L or S position
else if strategy.position_size > 0 // Hold L position
if isLongOversold and inhiTrend == false and close15 < long_cost-5.0
strategy.entry("Long OVS 2" , strategy.long , comment = "OVS 2 " + str.tostring(close15, "#,###"))
longStopLossOVS := ema_lower // lastBottomPrice15 - 20.0
//longTakeProfitOVS := close15 + 15.0
long_cost := (long_cost+close15)/2
isLongWin = close15 > long_cost + 10.0 and ((close15 < ema_upper and isPeak15) or (close[1]>=ema_upper and close15<ema_upper))
isLongLoss = close15 <= longStopLossOVS
isTrailingBRK = close15 > longTakeProfit and close15 > lastPeakPrice15
//if isTrailingBRK and L_mode == 1 // BRK
//longTakeProfit := longTakeProfit + 10.0
//label.new(bar_index, high15,text = "trailing ="+ str.tostring(close15, "#,###"), style=label.style_label_down, size=size.small)
isLongWinBRK = close15 >= longTakeProfit and close15 < ema_upper
isLongLossBRK = close15 <= longStopLoss
// Stop loss L
if isLongLossBRK
strategy.close("Long BRK", comment="SL Long BRK @"+ str.tostring(close15, "#,###"))
L_mode := 0 // clear
//if close15 <= longStopLossOVS
if isLongLoss
if strategy.position_size == 2
strategy.close_all(comment="SL OVS @"+ str.tostring(close15, "#,###"))
L_mode := 0 // clear
else
strategy.close("Long OVS", comment="SL Long OVS @"+ str.tostring(close15, "#,###"))
strategy.close("Long OVS 2", comment="SL Long OVS @"+ str.tostring(close15, "#,###"))
L_mode := 0 // clear
//if close15 > longTakeProfitOVS //(close15 > longTakeProfitOVS -8.0 and isFalseBrk)
if isLongWin
if strategy.position_size == 2
strategy.close_all(comment="TP OVS @"+ str.tostring(close15, "#,###"))
L_mode := 0 // clear
else
strategy.close("Long OVS", comment="TP OVS 1@"+ str.tostring(close15, "#,###"))
strategy.close("Long OVS 2", comment="TP OVS 2 @"+ str.tostring(close15, "#,###"))
L_mode := 0 // clear
if false // isLongWinBRK
strategy.close("Long BRK", comment="TP Long BRK @"+ str.tostring(close15, "#,###"))
L_mode := 0 // clear
var label trail_label = na
if Trailing == true and (high15 >= longTakeProfit or (close15<ema200 and close15 >= long_cost+10.0)) // any part of price hit tarket
if isLongCondition // meet creteria to open L again
longTakeProfit := close15 + 80.0
longStopLoss := (SLlimit? close15 - 15.0: lastBottomPrice15)
trail_label := label.new(bar_index, high15,text = "trailing ="+ str.tostring(close15, "#,###"), style=label.style_label_down, size=size.small)
else // Take Profit
strategy.close("Long BRK", comment="Reach" + str.tostring(longTakeProfit,"#,###"))
else if sidewaysMarket
SW_counter := SW_counter + 1
L_Rebound = SW_counter > 80 and close[2] < ema_lower and close[1] >= ema_lower and close15 > ema_lower //and k15 < 60
if strategy.position_size > 0
if SW_counter < 10 // close15 < longStopLoss // In case holding L position from Trend market
strategy.close("Long BRK", comment="Reverse SW " + str.tostring(close15, "#,###") )
L_mode := 0 // clear
if SW_counter < 10 // close15 < longStopLossOVS
strategy.close_all(comment="Stop all " + str.tostring(close15, "#,###"))
//strategy.close("Long OVS", comment="Stop Oversold " + str.tostring(close15, "#,###") )
//strategy.close("Long OVS 2", comment="SL Long OVS @"+ str.tostring(close15, "#,###"))
L_mode := 0 // clear
if SW_counter < 10 //close15 >= ema200-5.0
strategy.close("Long Rebound", comment="TP Rebound " + str.tostring(close15, "#,###") )
if strategy.position_size == 0 and L_Rebound and inhiSideway == false
strategy.entry("Long Rebound", strategy.long, comment="Rebound " + str.tostring(close15, "#,###"))
strategy.exit("Exit Long Rebound",from_entry="Long Rebound", stop = ema_lower - (ema_lower*2*trend_gap_p/100) , comment = "SL Rebound")
var label DebugLabel = na
label.delete(DebugLabel)
if not na(latch_trend)
DebugLabel := label.new(bar_index, high15, text="trend " + str.tostring(latch_trend,"#") , style=label.style_label_down, color=color.blue, textcolor=color.white, size=size.small)
// Plot Bollinger Bands
//plot(sidewaysMarket ? lastBottomPrice15 : na , color=color.yellow, style=plot.style_circles)
//plot(sidewaysMarket ? lastPeakPrice15 : na , color=color.blue, style=plot.style_circles)
plot(trendMarket ? lastBottomPrice15 : na, color=color.red, style=plot.style_circles)
plot(trendMarket ? lastPeakPrice15 : na, color=color.green, style=plot.style_circles)
bgcolor(sidewaysMarket ? color.new(color.black, 90) : na)
bgcolor(trendMarket ? color.new(color.lime, 90) : na)
// Plot the three lines
plot(ema200, title="EMA 200", color=color.white)
plot(ema_upper, title="EMA 200 + 20", color=color.white)
plot(ema_lower, title="EMA 200 - 20", color=color.white)