
এই কৌশলটি একাধিক প্রযুক্তিগত সূচকের উপর ভিত্তি করে একটি প্রবণতা-অনুসরণ কৌশল, যা একাধিক প্রযুক্তিগত সূচক যেমন চলমান গড় ((EMA), গড় প্রবণতা সূচক ((ADX) এবং অপেক্ষাকৃত দুর্বল সূচক ((RSI) এর সমন্বয় করে এবং একাধিক টাইম ফ্রেম বিশ্লেষণ পদ্ধতির সাথে মিলিত হয়। কৌশলটি মূলত দ্রুত এবং ধীর গতির ইএমএর ক্রস দ্বারা প্রবণতার দিকনির্দেশ নিশ্চিত করে, ADX ব্যবহার করে প্রবণতার শক্তিকে ফিল্টার করে এবং RSI দ্বারা বাজারের গতিশীলতা বিচার করে, যার ফলে 1 মিনিটের চার্টে উচ্চ-ফ্রিকোয়েন্সি ট্রেডিং হয়। রিটার্নিং ফলাফল দেখায় যে কৌশলটি 76.92% বিজয়ী হার এবং 1.819 মুনাফার ফ্যাক্টর রয়েছে, যা ভাল মুনাফার ক্ষমতা প্রদর্শন করে।
এই কৌশলটি নিম্নলিখিত মূল পদ্ধতির উপর ভিত্তি করে কাজ করেঃ
এই কৌশলটি একাধিক প্রযুক্তিগত সূচকগুলির সমন্বয় দ্বারা একটি শক্তিশালী প্রবণতা ট্র্যাকিং সিস্টেম তৈরি করে। কৌশলটি উচ্চ সাফল্য বজায় রেখে, একটি উন্নত ঝুঁকি নিয়ন্ত্রণ ব্যবস্থা দ্বারা উল্লেখযোগ্য লাভ অর্জন করে। যদিও কিছু অপ্টিমাইজেশনের জায়গা রয়েছে তবে সামগ্রিকভাবে এটি সন্তোষজনক, বিশেষত স্থিতিশীল লাভের জন্য ট্রেডারদের জন্য উপযুক্ত।
/*backtest
start: 2024-02-19 00:00:00
end: 2025-02-17 08:00:00
period: 4h
basePeriod: 4h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Enhanced Trend Following Strategy", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=200)
// === INPUTS ===
emaFastLength = input(50, title="Fast EMA Length")
emaSlowLength = input(200, title="Slow EMA Length")
adxLength = input(14, title="ADX Length")
adxSmoothing = input(14, title="ADX Smoothing")
adxThreshold = input(25, title="ADX Threshold")
rsiLength = input(14, title="RSI Length")
rsiOverbought = input(70, title="RSI Overbought Level")
rsiOversold = input(30, title="RSI Oversold Level")
// === INDICATORS ===
emaFast = ta.ema(close, emaFastLength)
emaSlow = ta.ema(close, emaSlowLength)
[dip, dim, adxValue] = ta.dmi(adxLength, adxSmoothing)
rsiValue = ta.rsi(close, rsiLength)
// === MULTI-TIMEFRAME EMA ===
emaFastHTF = request.security(syminfo.tickerid, "240", ta.ema(close, emaFastLength))
emaSlowHTF = request.security(syminfo.tickerid, "240", ta.ema(close, emaSlowLength))
// === CONDITIONS ===
bullishTrend = ta.crossover(emaFast, emaSlow) and adxValue > adxThreshold and rsiValue > rsiOversold
bearishTrend = ta.crossunder(emaFast, emaSlow) and adxValue > adxThreshold and rsiValue < rsiOverbought
// === TRADE EXECUTION ===
if (bullishTrend)
strategy.entry("Long", strategy.long)
strategy.exit("TakeProfit_Long", from_entry="Long", limit=close * 1.05, stop=close * 0.98)
if (bearishTrend)
strategy.entry("Short", strategy.short)
strategy.exit("TakeProfit_Short", from_entry="Short", limit=close * 0.95, stop=close * 1.02)
// === PLOT INDICATORS ===
plot(emaFast, color=color.blue, title="Fast EMA")
plot(emaSlow, color=color.red, title="Slow EMA")
hline(adxThreshold, "ADX Threshold", color=color.gray, linestyle=hline.style_dotted)
bgcolor(bullishTrend ? color.green : bearishTrend ? color.red : na, transp=90)
// === ALERTS ===
alertcondition(bullishTrend, title="Buy Signal", message="A bullish trend detected!")
alertcondition(bearishTrend, title="Sell Signal", message="A bearish trend detected!")
// === STRATEGY SETTINGS ===
strategy.close("Long", when=rsiValue > rsiOverbought)
strategy.close("Short", when=rsiValue < rsiOversold)