
এই কৌশলটি একটি মিশ্র ট্রেডিং সিস্টেম যা একাধিক প্রযুক্তিগত বিশ্লেষণ সূচককে একত্রিত করে। এটি মূলত গড়-রেখা সিস্টেমের উপর নির্ভর করে যা বাজারের প্রবণতা নির্ধারণ করে, যখন সমর্থন প্রতিরোধের স্তরকে (এসআর) প্রবেশের সংকেত হিসাবে ব্যবহার করে এবং প্রকৃত ওঠানামা (এটিআর) ব্যবহার করে ঝুঁকি নিয়ন্ত্রণের জন্য। কৌশলটি একটি গতিশীল স্টপ লস সেটিং গ্রহণ করে যা বাজারের অস্থিরতার সাথে খাপ খাইয়ে নিতে পারে।
কৌশল ক্রিয়াকলাপগুলি নিম্নলিখিত মূল উপাদানগুলির উপর ভিত্তি করে:
সংকেত ফিল্টার অপ্টিমাইজ
অবস্থান ব্যবস্থাপনা অপ্টিমাইজেশান
স্টপ লস অপ্টিমাইজেশান
এই কৌশলটি বেশ কয়েকটি পরিপক্ক প্রযুক্তিগত বিশ্লেষণ পদ্ধতির সমন্বয় করে একটি সম্পূর্ণ ট্রেডিং সিস্টেম তৈরি করে। এর মূল সুবিধা হ’ল সিস্টেমের স্ব-অনুকূলতা এবং ঝুঁকি নিয়ন্ত্রণের ক্ষমতা। ক্রমাগত অপ্টিমাইজেশন এবং পরিমার্জনের মাধ্যমে, কৌশলটি বিভিন্ন বাজার পরিবেশে স্থিতিশীল পারফরম্যান্স বজায় রাখার প্রত্যাশা করে। ব্যবসায়ীদের রিয়েল-টাইমে ব্যবহারের আগে পর্যাপ্ত ইতিহাসের ডেটা পরীক্ষা এবং প্যারামিটার অপ্টিমাইজেশন করার পরামর্শ দেওয়া হয়।
/*backtest
start: 2024-02-18 00:00:00
end: 2025-02-16 08:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=6
strategy("Multi-Strategy Trader v1 by SUNNY GUHA +91 9836021040 / www.oiesu.com", overlay=true)
// Basic Inputs
supResLookback = input.int(9, "Support/Resistance Lookback")
atrPeriod = input.int(14, "ATR Period")
stopMultiplier = input.float(10.0, "Stop Loss ATR Multiplier")
// Technical Indicators
atr = ta.atr(atrPeriod)
highestHigh = ta.highest(high, supResLookback)
lowestLow = ta.lowest(low, supResLookback)
ema20 = ta.ema(close, 20)
ema50 = ta.ema(close, 50)
// Basic Strategy Rules
isTrending = math.abs(ema20 - ema50) > atr
longSignal = close > highestHigh[1] or (isTrending and ema20 > ema50 and close > ema20)
shortSignal = close < lowestLow[1] or (isTrending and ema20 < ema50 and close < ema20)
// Entry Logic
if longSignal and strategy.position_size <= 0
strategy.entry("Long", strategy.long)
if shortSignal and strategy.position_size >= 0
strategy.entry("Short", strategy.short)
// Stop Loss Logic
longStopPrice = close - (atr * stopMultiplier)
shortStopPrice = close + (atr * stopMultiplier)
// Exit Logic
if strategy.position_size > 0
strategy.exit("Long Exit", "Long", stop=longStopPrice)
if strategy.position_size < 0
strategy.exit("Short Exit", "Short", stop=shortStopPrice)
// Basic Plotting
plot(ema20, "EMA 20", color.blue)
plot(ema50, "EMA 50", color.red)