
এই কৌশলটি বড় আকারের মোমবাতি লাইন সনাক্তকরণের উপর ভিত্তি করে এবং প্রধান সংকেত হিসাবে RSI ডাইভারজেন্স সূচক, প্রাথমিক ফিক্সড স্টপ লস এবং ডায়নামিক ট্রেইলিং স্টপ লসের সাথে মিলিত, ট্রেডিং সিস্টেম অনুসরণ করে একটি সম্পূর্ণ প্রবণতা তৈরি করতে। কৌশলটি বর্তমান মোমবাতি লাইন এবং পূর্ববর্তী পাঁচটি মোমবাতি লাইনের শারীরিক আকারের তুলনা করে বড় আকারের বাজারের অবস্থা সনাক্ত করে, যখন গতির পরিবর্তনগুলি নিশ্চিত করতে দ্রুত এবং ধীরগতির RSI এর মধ্যে পার্থক্য ব্যবহার করে এবং অবশেষে পরিচালনা করার জন্য একটি ডবল স্টপ-লস মেকানিজম ব্যবহার করে। ঝুঁকি এবং লাভ লক.
কৌশলটিতে চারটি মূল উপাদান রয়েছে: ১) বৃহৎ ক্যান্ডেলস্টিক সনাক্তকরণ - বর্তমান এবং পূর্ববর্তী ৫টি ক্যান্ডেলস্টিক বডির আকার তুলনা করে উল্লেখযোগ্য মূল্য গতি নির্ধারণ করুন; ২) RSI ডাইভারজেন্স বিশ্লেষণ - ৫-পিরিয়ড ফাস্ট RSI এবং ১৪-পিরিয়ড স্লো RSI ব্যবহার করুন ৩) প্রাথমিক স্টপ লস - প্রাথমিক ঝুঁকি নিয়ন্ত্রণের জন্য প্রবেশের সময় ২০০ পয়েন্টের একটি নির্দিষ্ট স্টপ লস সেট করুন; ৪) ট্রেইলিং স্টপ লস - লাভ ২০০ পয়েন্টে পৌঁছানোর পরে সক্রিয়, মূল্যের সাথে ১৫০ পয়েন্ট রাখুন পয়েন্টের গতিশীল পরবর্তী দূরত্ব। কৌশলটি সামগ্রিক বাজারের দিকনির্দেশনা নির্ধারণে সাহায্য করার জন্য ট্রেন্ড ফিল্টার হিসেবে 21-পিরিয়ড EMA ব্যবহার করে।
এই কৌশলটি বড় আকারের ক্যান্ডেল লাইন এবং RSI ডাইভারজেন্সকে একত্রিত করে একটি সম্পূর্ণ প্রবণতা অনুসরণকারী সিস্টেম তৈরি করে এবং একটি ডবল স্টপ-লস মেকানিজমের মাধ্যমে ব্যাপক ঝুঁকি ব্যবস্থাপনা অর্জন করে। কৌশলটি স্পষ্ট প্রবণতা এবং উচ্চ অস্থিরতার সাথে বাজারের পরিবেশে কাজ করার জন্য উপযুক্ত, তবে ব্যবসায়ীদের নির্দিষ্ট বাজারের বৈশিষ্ট্য অনুযায়ী প্যারামিটার সেটিংস সামঞ্জস্য করতে হবে। প্রস্তাবিত অপ্টিমাইজেশন দিকনির্দেশের মাধ্যমে, কৌশলটির স্থিতিশীলতা এবং লাভজনকতা আরও উন্নত হবে বলে আশা করা হচ্ছে।
/*backtest
start: 2024-12-17 00:00:00
end: 2025-01-16 00:00:00
period: 3h
basePeriod: 3h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT","balance":49999}]
*/
//@version=6
strategy('[F][IND] - Big Candle Identifier with RSI Divergence and Advanced Stops', shorttitle = '[F][IND] Big Candle RSI Trail', overlay = true)
// Inputs for the trailing stop and stop loss
trail_start_ticks = input.int(200, "Trailing Start Ticks", tooltip="The number of ticks the price must move in the profitable direction before the trailing stop starts.")
trail_distance_ticks = input.int(150, "Trailing Distance Ticks", tooltip="The distance in ticks between the trailing stop and the price once the trailing stop starts.")
initial_stop_loss_points = input.int(200, "Initial Stop Loss Points", tooltip="The fixed stop loss applied immediately after entering a trade.")
// Tick size based on instrument
tick_size = syminfo.mintick
// Calculate trailing start and distance in price
trail_start_price = trail_start_ticks * tick_size
trail_distance_price = trail_distance_ticks * tick_size
initial_stop_loss_price = initial_stop_loss_points * tick_size
// Identify big candles
body0 = math.abs(close[0] - open[0])
body1 = math.abs(close[1] - open[1])
body2 = math.abs(close[2] - open[2])
body3 = math.abs(close[3] - open[3])
body4 = math.abs(close[4] - open[4])
body5 = math.abs(close[5] - open[5])
bullishBigCandle = body0 > body1 and body0 > body2 and body0 > body3 and body0 > body4 and body0 > body5 and open < close
bearishBigCandle = body0 > body1 and body0 > body2 and body0 > body3 and body0 > body4 and body0 > body5 and open > close
// RSI Divergence
rsi_fast = ta.rsi(close, 5)
rsi_slow = ta.rsi(close, 14)
divergence = rsi_fast - rsi_slow
// Trade Entry Logic
if bullishBigCandle
strategy.entry('Long', strategy.long, stop=low - initial_stop_loss_price)
if bearishBigCandle
strategy.entry('Short', strategy.short, stop=high + initial_stop_loss_price)
// Trailing Stop Logic
var float trail_stop = na
if strategy.position_size > 0 // Long Position
entry_price = strategy.position_avg_price
current_profit = close - entry_price
if current_profit >= trail_start_price
trail_stop := math.max(trail_stop, close - trail_distance_price)
strategy.exit("Trailing Stop Long", "Long", stop=trail_stop)
if strategy.position_size < 0 // Short Position
entry_price = strategy.position_avg_price
current_profit = entry_price - close
if current_profit >= trail_start_price
trail_stop := math.min(trail_stop, close + trail_distance_price)
strategy.exit("Trailing Stop Short", "Short", stop=trail_stop)
// Plotting Trailing Stop
plot(strategy.position_size > 0 ? trail_stop : na, color=color.green, title="Trailing Stop (Long)")
plot(strategy.position_size < 0 ? trail_stop : na, color=color.red, title="Trailing Stop (Short)")
// Plotting RSI Divergence
plot(divergence, color=divergence > 0 ? color.lime : color.red, linewidth=2, title="RSI Divergence")
hline(0)
// Plotting EMA
ema21 = ta.ema(close, 21)
plot(ema21, color=color.blue, title="21 EMA")