
এই কৌশলটি একটি ট্রেডিং সিস্টেম যা সুপারট্রেন্ড প্রবণতা সূচক এবং আরএসআই (আপেক্ষিকভাবে দুর্বল সূচক) সংযুক্ত করে। কৌশলটি প্রবণতা ট্র্যাকিংকে গতিশীলতার সূচকের সাথে একত্রিত করে এবং বাজারের প্রবণতা স্পষ্ট এবং ভাল গতিশীলতার সাথে ট্রেড করে। সিস্টেমটি এটিআর (গড় সত্যিকারের তরঙ্গদৈর্ঘ্য) ব্যবহার করে গতিশীল সমর্থন এবং প্রতিরোধের স্তরগুলি গণনা করতে এবং আরএসআই-এর সাথে ওভার-বই ওভার-সেল সংকেতকে সংযুক্ত করে প্রবেশের সময় নির্ধারণ করতে।
কৌশলটির মূল যুক্তি নিম্নলিখিত মূল উপাদানগুলির উপর ভিত্তি করে:
এই কৌশলটি সুপারট্রেন্ড এবং আরএসআই সূচকগুলির সাথে একত্রিত হয়ে একটি সম্পূর্ণ প্রবণতা ট্র্যাকিং ট্রেডিং সিস্টেম তৈরি করে। কৌশলটি প্রবণতা-স্পষ্ট বাজারে ভাল কাজ করে, গতিশীল স্টপ লস এবং যুক্তিসঙ্গত স্টপ সেটআপের মাধ্যমে ঝুঁকি নিয়ন্ত্রণ করে। যদিও কিছু সীমাবদ্ধতা রয়েছে তবে প্রস্তাবিত অপ্টিমাইজেশনের দিকনির্দেশের মাধ্যমে কৌশলটির স্থিতিশীলতা এবং অভিযোজনকে আরও উন্নত করা যেতে পারে। কৌশলটি মাঝারি এবং দীর্ঘমেয়াদী প্রবণতা অনুসরণ করার জন্য উপযুক্ত এবং নির্দিষ্ট লাভজনকতা বজায় রাখার সাথে সাথে ঝুঁকিগুলি আরও ভালভাবে নিয়ন্ত্রণ করে।
/*backtest
start: 2024-04-11 00:00:00
end: 2025-02-19 08:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Binance","currency":"ETH_USDT"}]
*/
//@version=5
strategy("Supertrend + RSI Strategy", overlay=true)
// Input Parameters
atrLength = input.int(10, title="ATR Length", minval=1)
factor = input.float(3.0, title="Supertrend Factor", step=0.1)
rsiLength = input.int(14, title="RSI Length", minval=1)
rsiOverbought = input.int(70, title="RSI Overbought Level")
rsiOversold = input.int(30, title="RSI Oversold Level")
// Supertrend Calculation
atr = ta.atr(atrLength)
upperBand = ta.sma(close, atrLength) + (factor * atr)
lowerBand = ta.sma(close, atrLength) - (factor * atr)
supertrend = 0.0
supertrend := close > nz(supertrend[1], close) ? lowerBand : upperBand
supertrendSignal = close > supertrend ? "Buy" : "Sell"
// RSI Calculation
rsi = ta.rsi(close, rsiLength)
// Trading Logic
longCondition = (supertrendSignal == "Buy") and (rsi > rsiOversold)
shortCondition = (supertrendSignal == "Sell") and (rsi < rsiOverbought)
// Entry and Exit Conditions
if longCondition
strategy.entry("Long", strategy.long)
if shortCondition
strategy.entry("Short", strategy.short)
// Plot Supertrend
plot(supertrend, title="Supertrend", color=color.new(color.blue, 0), linewidth=2, style=plot.style_line)
// Plot RSI Levels
hline(rsiOverbought, "Overbought", color=color.red)
hline(rsiOversold, "Oversold", color=color.green)
plot(rsi, title="RSI", color=color.orange, style=plot.style_stepline)
// Alerts
alertcondition(longCondition, title="Buy Alert", message="Supertrend + RSI Buy Signal")
alertcondition(shortCondition, title="Sell Alert", message="Supertrend + RSI Sell Signal")