
এই কৌশলটি হল একটি ট্রেডিং সিস্টেম যা একাধিক চক্র বিশ্লেষণের উপর ভিত্তি করে প্রবণতা অনুসরণ করে, যা ট্রেডিং দিকনির্দেশনা এবং প্রবেশের সময় নির্ধারণের জন্য সূচকীয় মুভিং এভারেজ ((EMA) এবং র্যান্ডম সূচক ((Stochastic)) এর সাথে মিলিত হয়। কৌশলটি 15 মিনিটের চক্রের মধ্যে প্রবণতা দিকনির্দেশনা নিশ্চিত করে এবং 1-5 মিনিটের চক্রের মধ্যে নির্দিষ্ট প্রবেশের সুযোগগুলি সন্ধান করে, কঠোর ঝুঁকি ব্যবস্থাপনা এবং বিভাজন লাভের মাধ্যমে ট্রেডিং পারফরম্যান্সকে অনুকূল করে তোলে।
এই কৌশলটি একাধিক স্তরের লেনদেনের শর্ত যাচাইকরণ পদ্ধতি ব্যবহার করেঃ
এই কৌশলটি বহু-চক্র বিশ্লেষণ এবং একাধিক প্রযুক্তিগত সূচকের সমন্বয়ে একটি উন্নত ট্রেন্ড ট্র্যাকিং ট্রেডিং সিস্টেম তৈরি করে। কৌশলটির মূল সুবিধা হ’ল এর কঠোর ঝুঁকি ব্যবস্থাপনা এবং নমনীয় লাভের পরিকল্পনা, তবে বাস্তব প্রয়োগে এখনও বাজারের পরিবেশ এবং তহবিলের আকারের উপর নির্ভর করে উপযুক্ত প্যারামিটার অপ্টিমাইজেশন প্রয়োজন। প্রস্তাবিত অপ্টিমাইজেশন দিকনির্দেশের মাধ্যমে, কৌশলটি বিভিন্ন বাজারের পরিস্থিতিতে আরও স্থিতিশীল পারফরম্যান্স পাওয়ার সম্ভাবনা রয়েছে।
/*backtest
start: 2024-02-19 00:00:00
end: 2025-02-16 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=6
strategy("15-Min Trend Strategy", overlay=true, default_qty_type=strategy.fixed, default_qty_value=1)
// Define EMA for trend confirmation
ema50 = ta.ema(close, 50)
trendLong = close > ema50
trendShort = close < ema50
// Stochastic settings
length = 14
smoothK = 3
smoothD = 3
stochK = ta.sma(ta.stoch(close, high, low, length), smoothK)
stochD = ta.sma(stochK, smoothD)
// Entry conditions
longCondition = stochK < 30 and trendLong
shortCondition = stochK > 70 and trendShort
// ATR-based stop-loss calculation
atrValue = ta.atr(14)
stopLossLong = close - (1.5 * atrValue)
stopLossShort = close + (1.5 * atrValue)
takeProfitLong = close + (2 * atrValue)
takeProfitShort = close - (2 * atrValue)
// Execute trades
if longCondition
strategy.entry("Long", strategy.long, qty=2)
strategy.exit("TP Long 1", from_entry="Long", qty=1, stop=stopLossLong, limit=takeProfitLong)
strategy.exit("TP Long 2", from_entry="Long", qty=1, stop=stopLossLong, limit=takeProfitLong * 1.5)
if shortCondition
strategy.entry("Short", strategy.short, qty=2)
strategy.exit("TP Short 1", from_entry="Short", qty=1, stop=stopLossShort, limit=takeProfitShort)
strategy.exit("TP Short 2", from_entry="Short", qty=1, stop=stopLossShort, limit=takeProfitShort * 1.5)
// Move SL to breakeven after 50% move to target
if strategy.position_size > 0
if strategy.position_avg_price != 0
moveToBELong = close >= (strategy.position_avg_price + (takeProfitLong - strategy.position_avg_price) * 0.5)
if moveToBELong
strategy.exit("BE Long", from_entry="Long", qty=1, stop=strategy.position_avg_price)
moveToBEShort = close <= (strategy.position_avg_price - (strategy.position_avg_price - takeProfitShort) * 0.5)
if moveToBEShort
strategy.exit("BE Short", from_entry="Short", qty=1, stop=strategy.position_avg_price)