
এই কৌশলটি টি 3 মুভিং এভারেজ, এটিআর সূচক এবং হাইক্লোরের সমন্বয় ব্যবহার করে, ক্রয় এবং বিক্রয় সংকেত সনাক্ত করে এবং এটিআর ভিত্তিক স্টপ লস স্টপ অবস্থান গণনা করে ট্রেন্ড ট্র্যাকিংয়ের জন্য ট্রেডিং করে। কৌশলটির সুবিধাটি হ’ল দ্রুত প্রতিক্রিয়াশীলতা এবং ট্রেডিংয়ের ঝুঁকি নিয়ন্ত্রণ করা।
T3 Moving Average: T3 Moving Average, একটি মসৃণ প্যারামিটার T3 ((ডিফল্ট 100) গণনা করে ট্রেন্ডের দিকনির্দেশের জন্য ব্যবহৃত হয়।
এটিআর: এটিআর গণনা করা হয়, যা স্টপ লস স্টপ পজিশনের আকার নির্ধারণের জন্য ব্যবহৃত হয়।
এটিআর মোবাইল স্টপঃ এটিআর ভিত্তিতে একটি মোবাইল স্টপ লাইন গণনা করা হয়, যা প্রবণতা ট্র্যাকিংয়ের জন্য মূল্য পরিবর্তন এবং অস্থিরতার সাথে সামঞ্জস্য করতে পারে।
ক্রয় সংকেত: যখন এটিআর মুভিং স্টপ লাইনটি ক্রস করা হয় এবং T3 গড়ের নীচে থাকে তখন ক্রয় সংকেত তৈরি হয়।
বিক্রয় সংকেত: যখন এটিআর মুভিং স্টপ লাইনটি বন্ধের দামের নীচে এবং টি 3 গড়ের উপরে থাকে তখন বিক্রয় সংকেত দেওয়া হয়।
স্টপ লস স্টপঃ স্টপ লস এবং স্টপ প্রাইস ATR মান এবং ব্যবহারকারীর সেট করা রিস্ক-রিটার্ন অনুপাতের ভিত্তিতে গণনা করা হয়।
ক্রয় করার পরে, স্টপ লস মূল্যটি প্রবেশের মূল্য হ্রাস করে এটিআর, এবং স্টপ-অফ মূল্যটি প্রবেশের মূল্যের সাথে এটিআর গুণ করে রিস্ক-রিটার্ন অনুপাত।
বিক্রির পরে, স্টপ-ডাউন মূল্যটি প্রবেশের মূল্যের সাথে এটিআর যোগ করে এবং স্টপ-ডাউন মূল্যটি প্রবেশের মূল্যের সাথে এটিআর হ্রাস করে এবং ঝুঁকির রিটার্নের হারকে গুণ করে।
যখন দাম স্টপ লস বা স্টপ পয়েন্ট ট্রিগার করে, তখন পজিশনটি ছেড়ে দেয়।
T3 গড় প্যারামিটারটি 100 এর উপর ডিফল্ট, যা সাধারণ চলমান গড়ের তুলনায় আরো সংবেদনশীল এবং মূল্য পরিবর্তনের প্রতি আরও দ্রুত প্রতিক্রিয়া জানাতে পারে।
এটিআর ব্যবহার করে হিসাব করা চলমান স্টপ লস বাজার ওঠানামার ট্রেইল মূল্যের উপর ভিত্তি করে স্টপ লস অতিক্রমের ঝুঁকি এড়াতে পারে। এটিআর ভিত্তিক স্টপ লস অবস্থানগুলি প্রতিটি লেনদেনের জন্য ঝুঁকি-ফেরতের অনুপাত নিয়ন্ত্রণ করতে পারে।
এটিআর মোবাইল স্টপ লাইন ট্রেন্ড ট্র্যাক করতে সক্ষম, এমনকি যদি দামের স্বল্পমেয়াদী পুনর্নির্মাণের সময়ও এটিকে আউটফিল্ড করা হয় না, যার ফলে ভুল সংকেত হ্রাস করা হয়।
T3 গড় চক্র এবং ATR চক্র উভয়ই অপ্টিমাইজ করা যেতে পারে, যার ফলে বিভিন্ন বাজারের জন্য প্যারামিটারগুলি সামঞ্জস্য করা যায় এবং কৌশলগত স্থায়িত্ব বাড়ানো যায়।
তীব্র পরিস্থিতিতে, দাম সরাসরি স্টপ লাইনটি ভেঙে ক্ষতির কারণ হতে পারে। এটিআর চক্র এবং স্টপ দূরত্ব যথাযথভাবে প্রসারিত করা যেতে পারে।
প্রবণতা বিপরীত হওয়ার সময়, দামটি একটি চলমান স্টপ লিনিয়ার অতিক্রম করলে ক্ষতি হতে পারে। অন্যান্য সূচকগুলির সাথে মিলিত হয়ে প্রবণতা নির্ধারণ করা যেতে পারে, বিপরীত দিকের কাছাকাছি ট্রেডিং এড়ানো যায়।
প্যারামিটার অপ্টিমাইজেশনের জন্য প্রচুর ঐতিহাসিক ডেটা প্রয়োজন, এবং অপ্টিমাইজেশনের ঝুঁকি রয়েছে। প্যারামিটার অপ্টিমাইজেশনের জন্য মাল্টি-মার্কেট, মাল্টি-টাইম-পিরিয়ড প্যারামিটার ব্যবহার করা উচিত, একক ডেটা সেটের উপর নির্ভর করা উচিত নয়।
বিভিন্ন T3 গড় সময়কালের পরামিতি পরীক্ষা করুন এবং সংবেদনশীলতা এবং স্থায়িত্বের মধ্যে ভারসাম্যপূর্ণ সর্বোত্তম প্যারামিটার সমন্বয় খুঁজে বের করুন
ঝুঁকি নিয়ন্ত্রণ এবং প্রবণতা অর্জনের মধ্যে সর্বোত্তম ভারসাম্য খুঁজে পেতে ATR চক্রের প্যারামিটারগুলি পরীক্ষা করুন
RSI, MACD ইত্যাদি সূচকগুলির সাথে ট্রেডিংয়ে ভুল ট্রেডিং এড়াতে ট্রেডিংয়ে ভুল ট্রেডিং এড়াতে
মেশিন লার্নিং পদ্ধতি ব্যবহার করে সর্বোত্তম প্যারামিটারগুলি প্রশিক্ষণ দিন, যা মানুষের অপ্টিমাইজেশনের সীমাবদ্ধতা হ্রাস করে
পজিশন ম্যানেজমেন্ট কৌশল বাড়ানো এবং ঝুঁকি নিয়ন্ত্রণ করা
এই কৌশলটি টি 3 গড় এবং এটিআর সূচকগুলির সুবিধাগুলিকে একত্রিত করে, দামের পরিবর্তনের জন্য দ্রুত প্রতিক্রিয়া জানাতে এবং ঝুঁকি নিয়ন্ত্রণ করতে পারে। প্যারামিটার অপ্টিমাইজেশন এবং অন্যান্য সূচকগুলির সাথে মিলিত হওয়ার মাধ্যমে কৌশলটির স্থায়িত্ব এবং ব্যবসায়ের দক্ষতা আরও বাড়ানো যেতে পারে। তবে ব্যবসায়ীদেরকে বিপরীত ও বিপর্যয়ের ঝুঁকি সম্পর্কে সতর্ক থাকতে হবে এবং পুনঃনিরীক্ষণের ফলাফলের উপর অত্যধিক নির্ভরতা এড়াতে হবে।
/*backtest
start: 2022-10-31 00:00:00
end: 2023-11-06 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy(title='UT Bot Alerts (QuantNomad) Strategy w/ NinjaView', overlay=true)
T3 = input(100)//600
// Input for Long Settings
// Input for Long Settings
xPrice3 = close
xe1 = ta.ema(xPrice3, T3)
xe2 = ta.ema(xe1, T3)
xe3 = ta.ema(xe2, T3)
xe4 = ta.ema(xe3, T3)
xe5 = ta.ema(xe4, T3)
xe6 = ta.ema(xe5, T3)
b3 = 0.7
c1 = -b3*b3*b3
c2 = 3*b3*b3+3*b3*b3*b3
c3 = -6*b3*b3-3*b3-3*b3*b3*b3
c4 = 1+3*b3+b3*b3*b3+3*b3*b3
nT3Average = c1 * xe6 + c2 * xe5 + c3 * xe4 + c4 * xe3
//plot(nT3Average, color=color.white, title="T3")
// Buy Signal - Price is below T3 Average
buySignal3 = xPrice3 < nT3Average
sellSignal3 = xPrice3 > nT3Average
// Inputs
a = input(1, title='Key Value. "This changes the sensitivity"')
c = input(50, title='ATR Period')
h = input(true, title='Signals from Heikin Ashi Candles')
riskRewardRatio = input(1, title='Risk Reward Ratio')
xATR = ta.atr(c)
nLoss = a * xATR
src = h ? request.security(ticker.heikinashi(syminfo.tickerid), timeframe.period, close, lookahead=barmerge.lookahead_off) : close
xATRTrailingStop = 0.0
iff_1 = src > nz(xATRTrailingStop[1], 0) ? src - nLoss : src + nLoss
iff_2 = src < nz(xATRTrailingStop[1], 0) and src[1] < nz(xATRTrailingStop[1], 0) ? math.min(nz(xATRTrailingStop[1]), src + nLoss) : iff_1
xATRTrailingStop := src > nz(xATRTrailingStop[1], 0) and src[1] > nz(xATRTrailingStop[1], 0) ? math.max(nz(xATRTrailingStop[1]), src - nLoss) : iff_2
pos = 0
iff_3 = src[1] > nz(xATRTrailingStop[1], 0) and src < nz(xATRTrailingStop[1], 0) ? -1 : nz(pos[1], 0)
pos := src[1] < nz(xATRTrailingStop[1], 0) and src > nz(xATRTrailingStop[1], 0) ? 1 : iff_3
xcolor = pos == -1 ? color.red : pos == 1 ? color.green : color.blue
ema = ta.ema(src, 1)
above = ta.crossover(ema, xATRTrailingStop)
below = ta.crossunder(ema, xATRTrailingStop)
buy = src > xATRTrailingStop and above
sell = src < xATRTrailingStop and below
barbuy = src > xATRTrailingStop
barsell = src < xATRTrailingStop
plotshape(buy, title='Buy', text='Buy', style=shape.labelup, location=location.belowbar, color=color.new(color.green, 0), textcolor=color.new(color.white, 0), size=size.tiny)
plotshape(sell, title='Sell', text='Sell', style=shape.labeldown, location=location.abovebar, color=color.new(color.red, 0), textcolor=color.new(color.white, 0), size=size.tiny)
barcolor(barbuy ? color.new(color.green, 90) : na)
barcolor(barsell ? color.new(color.red, 90) : na)
var float entryPrice = na
var float takeProfitLong = na
var float stopLossLong = na
var float takeProfitShort = na
var float stopLossShort = na
if buy and buySignal3
entryPrice := src
takeProfitLong := entryPrice + nLoss * riskRewardRatio
stopLossLong := entryPrice - nLoss
takeProfitShort := na
stopLossShort := na
if sell and sellSignal3
entryPrice := src
takeProfitShort := entryPrice - nLoss * riskRewardRatio
stopLossShort := entryPrice + nLoss
takeProfitLong := na
stopLossLong := na
// Strategy order conditions
acct = "Sim101"
ticker = "ES 12-23"
qty = 1
OCOMarketLong = '{ "alert": "OCO Market Long", "account": "' + str.tostring(acct) + '", "ticker": "' + str.tostring(ticker) + '", "qty": "' + str.tostring(qty) + '", "take_profit_price": "' + str.tostring(takeProfitLong) + '", "stop_price": "' + str.tostring(stopLossLong) + '", "tif": "DAY" }'
OCOMarketShort = '{ "alert": "OCO Market Short", "account": "' + str.tostring(acct) + '", "ticker": "' + str.tostring(ticker) + '", "qty": "' + str.tostring(qty) + '", "take_profit_price": "' + str.tostring(takeProfitShort) + '", "stop_price": "' + str.tostring(stopLossShort) + '", "tif": "DAY" }'
CloseAll = '{ "alert": "Close All", "account": "' + str.tostring(acct) + '", "ticker": "' + str.tostring(ticker) + '" }'
strategy.entry("Long", strategy.long, when=buy ,alert_message=OCOMarketLong)
strategy.entry("Short", strategy.short, when=sell , alert_message=OCOMarketShort)
// Setting the take profit and stop loss for long trades
strategy.exit("Take Profit/Stop Loss", "Long", stop=stopLossLong, limit=takeProfitLong,alert_message=CloseAll)
// Setting the take profit and stop loss for short trades
strategy.exit("Take Profit/Stop Loss", "Short", stop=stopLossShort, limit=takeProfitShort,alert_message=CloseAll)
// Plot trade setup boxes
bgcolor(buy ? color.new(color.green, 90) : na, transp=0, offset=-1)
bgcolor(sell ? color.new(color.red, 90) : na, transp=0, offset=-1)
longCondition = buy and not na(entryPrice)
shortCondition = sell and not na(entryPrice)
var line longTakeProfitLine = na
var line longStopLossLine = na
var line shortTakeProfitLine = na
var line shortStopLossLine = na
if longCondition
longTakeProfitLine := line.new(bar_index, takeProfitLong, bar_index + 1, takeProfitLong, color=color.green, width=2)
longStopLossLine := line.new(bar_index, stopLossLong, bar_index + 1, stopLossLong, color=color.red, width=2)
label.new(bar_index + 1, takeProfitLong, str.tostring(takeProfitLong, "#.#####"), color=color.green, style=label.style_none, textcolor=color.green, size=size.tiny)
label.new(bar_index + 1, stopLossLong, str.tostring(stopLossLong, "#.#####"), color=color.red, style=label.style_none, textcolor=color.red, size=size.tiny)
if shortCondition
shortTakeProfitLine := line.new(bar_index, takeProfitShort, bar_index + 1, takeProfitShort, color=color.green, width=2)
shortStopLossLine := line.new(bar_index, stopLossShort, bar_index + 1, stopLossShort, color=color.red, width=2)
label.new(bar_index + 1, takeProfitShort, str.tostring(takeProfitShort, "#.#####"), color=color.green, style=label.style_none, textcolor=color.green, size=size.tiny)
label.new(bar_index + 1, stopLossShort, str.tostring(stopLossShort, "#.#####"), color=color.red, style=label.style_none, textcolor=color.red, size=size.tiny)
alertcondition(buy, 'UT Long', 'UT Long')
alertcondition(sell, 'UT Short', 'UT Short')