
এই কৌশলটি একাধিক প্রযুক্তিগত সূচকগুলির সাথে একত্রিত একটি পরিমাণগত ট্রেডিং সিস্টেম, যা তিনটি ক্লাসিক প্রযুক্তিগত সূচকগুলির সমন্বয় করে একটি সম্পূর্ণ ট্রেডিং সিগন্যাল সিস্টেম তৈরি করে। কৌশলটি ট্রেডিংয়ের দিকনির্দেশনা নিশ্চিত করার সময় ট্রেডিংয়ের গতিশীলতা সনাক্তকরণের সাথে প্রবণতা ট্র্যাকিংয়ের সমন্বয় করে। একই সাথে স্টপ লস, স্টপ লস এবং স্টপ লস ট্র্যাকিংয়ের মতো ঝুঁকি নিয়ন্ত্রণ ব্যবস্থাকে একীভূত করে একটি পদ্ধতিগত ট্রেডিং কৌশল গঠন করে।
কৌশলটি মূলত নিম্নলিখিত তিনটি স্তরের উপর ভিত্তি করে ট্রেডিং সিগন্যাল তৈরি করেঃ
বিশেষত, যখন দ্রুত গড় লাইন (৫০ দিন) ধীর গড় লাইন (২০০ দিন) অতিক্রম করে, তখন একটি গোল্ড ফর্ক তৈরি হয়, আরএসআই ওভারবয়ে লেভেল না পৌঁছায় এবং ম্যাকড গোল্ড ফর্ক গঠন করে। বিপরীতভাবে, যখন একটি ডেড ফর্ক আসে এবং আরএসআই ওভারসোল লেভেল না পৌঁছায়, ম্যাকড ডেড ফর্ক গঠন করে, তখন সিস্টেমটি একটি শূন্যতা তৈরি করে।
এই কৌশলটি একাধিক প্রযুক্তিগত সূচকের সমন্বয় করে একটি অপেক্ষাকৃত সম্পূর্ণ ট্রেডিং সিস্টেম তৈরি করে। কৌশলটি প্রবণতাযুক্ত বাজারে ভাল কাজ করে, তবে বাস্তব বাজারের পরিস্থিতি অনুসারে এখনও অনুকূলিতকরণের প্রয়োজন। ব্যবসায়ীদের পরামর্শ দেওয়া হয় যে তারা প্রথমে পর্যাপ্ত ফিডব্যাক যাচাই করে এবং তাদের নিজস্ব ঝুঁকি সহনশীলতার উপর ভিত্তি করে প্যারামিটার সেট করে। কৌশলটির মূল সুবিধাটি সিস্টেমাইজড সিগন্যাল জেনারেশন প্রক্রিয়া এবং একটি উন্নত ঝুঁকি নিয়ন্ত্রণ ব্যবস্থায় রয়েছে, যা এটির ভাল বাস্তব যুদ্ধের প্রয়োগের মূল্য দেয়।
/*backtest
start: 2024-06-01 00:00:00
end: 2025-02-18 08:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Binance","currency":"ETH_USDT"}]
*/
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © EthioTrader
//@version=5
strategy("Optimal Multi-Indicator Strategy", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=10, commission_type=strategy.commission.percent, commission_value=0.1)
// ===== Input Parameters =====
// Moving Averages
fastMA = ta.sma(close, 50)
slowMA = ta.sma(close, 200)
plot(fastMA, "Fast MA", color=color.green)
plot(slowMA, "Slow MA", color=color.red)
// RSI
rsiLength = input(14, "RSI Length")
rsiOverbought = input(70, "RSI Overbought")
rsiOversold = input(30, "RSI Oversold")
rsi = ta.rsi(close, rsiLength)
// MACD
[macdLine, signalLine, _] = ta.macd(close, 12, 26, 9)
// Risk Management
stopLossPerc = input(2.0, "Stop Loss (%)") / 100
takeProfitPerc = input(4.0, "Take Profit (%)") / 100
trailingStopPerc = input(1.0, "Trailing Stop (%)") / 100
// ===== Strategy Logic =====
// Trend Condition: Golden Cross (Fast MA > Slow MA)
bullishTrend = ta.crossover(fastMA, slowMA)
bearishTrend = ta.crossunder(fastMA, slowMA)
// Momentum Condition: RSI and MACD
bullishMomentum = rsi < rsiOverbought and ta.crossover(macdLine, signalLine)
bearishMomentum = rsi > rsiOversold and ta.crossunder(macdLine, signalLine)
// Entry Signals
longCondition = bullishTrend and bullishMomentum
shortCondition = bearishTrend and bearishMomentum
// Exit Signals
trailingStop = strategy.position_avg_price * (1 - trailingStopPerc)
exitLong = ta.crossunder(close, trailingStop) or (close >= strategy.position_avg_price * (1 + takeProfitPerc))
exitShort = ta.crossover(close, trailingStop) or (close <= strategy.position_avg_price * (1 - takeProfitPerc))
// ===== Execute Orders =====
if (longCondition)
strategy.entry("Long", strategy.long)
strategy.exit("Exit Long", "Long", stop=strategy.position_avg_price * (1 - stopLossPerc), limit=strategy.position_avg_price * (1 + takeProfitPerc), trail_price=trailingStop, trail_offset=trailingStopPerc * close)
if (shortCondition)
strategy.entry("Short", strategy.short)
strategy.exit("Exit Short", "Short", stop=strategy.position_avg_price * (1 + stopLossPerc), limit=strategy.position_avg_price * (1 - takeProfitPerc), trail_price=trailingStop, trail_offset=trailingStopPerc * close)
// ===== Plotting =====
plotshape(series=longCondition, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(series=shortCondition, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")