
এই কৌশলটি একটি বিস্তৃত ট্রেডিং সিস্টেম যা একাধিক প্রযুক্তিগত সূচককে একত্রিত করে: চলমান গড় (MA), আপেক্ষিক শক্তি সূচক (RSI) এবং গড় প্রবণতা সূচক (ADX) বাজারের প্রবণতা এবং গতির পরিধি সনাক্ত করতে সূচক (ATR) গতিশীলভাবে স্টপ লস সেট করতে এবং লাভের অবস্থান নিতে। সিস্টেমটি বিভিন্ন সময়ের মধ্যে সূচক ক্রসওভারের মাধ্যমে ট্রেডিং সিগন্যাল নিশ্চিত করার জন্য একটি মাল্টি-পিরিয়ড বিশ্লেষণ পদ্ধতি ব্যবহার করে, যা শুধুমাত্র লেনদেনের নির্ভুলতা নিশ্চিত করে না, কিন্তু কার্যকরভাবে ঝুঁকিও নিয়ন্ত্রণ করে।
ট্রেডিং সিগন্যাল নিশ্চিত করতে কৌশলটি একটি তিন-স্তর যাচাইকরণ প্রক্রিয়া ব্যবহার করে:
একই সময়ে, কৌশলটি ATR-এর উপর ভিত্তি করে একটি গতিশীল স্টপ-লস এবং টেক-প্রফিট সিস্টেম ব্যবহার করে:
এই কৌশলটি একাধিক প্রযুক্তিগত সূচকের সমন্বয়ের মাধ্যমে একটি তুলনামূলকভাবে সম্পূর্ণ ট্রেডিং সিস্টেম তৈরি করে। কৌশলটির মূল সুবিধা হল এর বহু-স্তর যাচাইকরণ প্রক্রিয়া এবং গতিশীল ঝুঁকি ব্যবস্থাপনা ব্যবস্থা, তবে বিভিন্ন বাজার পরিবেশে এর অভিযোজনযোগ্যতার দিকেও মনোযোগ দেওয়া উচিত। ক্রমাগত অপ্টিমাইজেশন এবং উন্নতির মাধ্যমে, এই কৌশলটি প্রকৃত লেনদেনে স্থিতিশীল রিটার্ন অর্জন করবে বলে আশা করা হচ্ছে।
/*backtest
start: 2024-12-17 00:00:00
end: 2025-01-15 08:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT","balance":49999}]
*/
//@version=6
strategy("Daily Trading Strategy", overlay=true)
// --- Indikator ---
// Kombinasi MA untuk trend
fastMA = ta.sma(close, 20)
slowMA = ta.sma(close, 50)
// RSI untuk momentum
rsi = ta.rsi(close, 14)
// --- Fungsi untuk menghitung ADX ---
adx(length) =>
up = ta.change(high)
down = -ta.change(low)
plusDM = na(up) ? na : (up > down and up > 0 ? up : 0)
minusDM = na(down) ? na : (down > up and down > 0 ? down : 0)
trur = ta.rma(ta.tr, length)
plus = fixnan(100 * ta.rma(plusDM, length) / trur)
minus = fixnan(100 * ta.rma(minusDM, length) / trur)
sum = plus + minus
adx = 100 * ta.rma(math.abs(plus - minus) / (sum == 0 ? 1 : sum), length)
// ADX untuk kekuatan trend
adxValue = adx(14)
// --- Kondisi Entry Long ---
longEntry = ta.crossover(fastMA, slowMA) and rsi > 50 and adxValue > 25
// --- Kondisi Entry Short ---
shortEntry = ta.crossunder(fastMA, slowMA) and rsi < 50 and adxValue > 25
// --- Stop Loss dan Take Profit ---
// Fungsi untuk menghitung stop loss dan take profit
getSLTP(entryPrice, isLong) =>
atr = ta.atr(14)
sl = isLong ? entryPrice - atr * 2 : entryPrice + atr * 2
tp = isLong ? entryPrice + atr * 4 : entryPrice - atr * 4
[sl, tp]
// Hitung SL dan TP untuk posisi Long
[longSL, longTP] = getSLTP(close, true)
// Hitung SL dan TP untuk posisi Short
[shortSL, shortTP] = getSLTP(close, false)
// --- Eksekusi Order ---
if (longEntry)
strategy.entry("Long", strategy.long, stop=longSL, limit=longTP)
if (shortEntry)
strategy.entry("Short", strategy.short, stop=shortSL, limit=shortTP)
// --- Plot Indikator ---
// MA
plot(fastMA, color=color.blue)
plot(slowMA, color=color.red)
// RSI
plot(rsi, color=color.orange)
hline(50, color=color.gray)
// ADX
plot(adxValue, color=color.purple)
hline(25, color=color.gray)
// --- Alert ---
alertcondition(longEntry, title="Long Entry", message="Long Entry")
alertcondition(shortEntry, title="Short Entry", message="Short Entry")