
এই কৌশলটি একটি ট্রেডিং সিস্টেম যা একাধিক সূচক মুভিং এভারেজ (ইএমএ) এবং অপেক্ষাকৃত শক্তিশালী সূচক (আরএসআই) উপর ভিত্তি করে প্রবণতা অনুসরণ করে। এই কৌশলটি সূর্যের স্তরের ইএমএ (২০, ৩০, ২০০) ক্রস সংকেত, আরএসআই গতিশীলতা নিশ্চিতকরণ এবং গতিশীল স্টপ-ড্রপ মেশিনকে সংযুক্ত করে, যা বাজারে দীর্ঘমেয়াদী প্রবণতার সুযোগগুলি ধরার জন্য তৈরি করা হয়েছে।
কৌশলটির মূল যুক্তিতে নিম্নলিখিত মূল উপাদানগুলি রয়েছে:
এই কৌশলটি একাধিক প্রযুক্তিগত সূচকগুলির সমন্বয়মূলক সহযোগিতার মাধ্যমে একটি সম্পূর্ণ প্রবণতা ট্র্যাকিং ট্রেডিং সিস্টেম তৈরি করে। কৌশলটির প্রধান বৈশিষ্ট্য হ’ল মধ্য ও দীর্ঘমেয়াদী প্রবণতা বিচার এবং গতিশীল ঝুঁকি নিয়ন্ত্রণের সমন্বয়, যা প্রবণতা-স্পষ্ট বাজার পরিবেশে পরিচালনার জন্য উপযুক্ত। ক্রমাগত অপ্টিমাইজেশন এবং পরিমার্জনের মাধ্যমে, কৌশলটি প্রকৃত ব্যবসায়ের ক্ষেত্রে আরও ভাল পারফরম্যান্সের সম্ভাবনা রয়েছে।
/*backtest
start: 2024-02-10 00:00:00
end: 2025-02-09 00:00:00
period: 1h
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Talbuaia Signal", overlay=true)
// Request EMAs on the daily timeframe
ema20_daily = request.security(syminfo.tickerid, "D", ta.ema(close, 20), lookahead=barmerge.lookahead_on)
ema30_daily = request.security(syminfo.tickerid, "D", ta.ema(close, 30), lookahead=barmerge.lookahead_on)
ema200_daily = request.security(syminfo.tickerid, "D", ta.ema(close, 200), lookahead=barmerge.lookahead_on)
// RSI Calculation
rsi = ta.rsi(close, 14)
// Plot daily EMAs
plot(ema20_daily, color=color.blue, title="Daily EMA 20")
plot(ema30_daily, color=color.orange, title="Daily EMA 30")
plot(ema200_daily, color=color.red, title="Daily EMA 200")
// Plot RSI
hline(50, "RSI Midline", color=color.gray)
plot(rsi, color=color.purple, title="RSI")
// Entry condition: 20 EMA crosses above 30 EMA, price is above 200 EMA, and RSI > 50
bullishEntry = ta.crossover(ema20_daily, ema30_daily) and close > ema200_daily and rsi > 50
// Variables to track entry price, take profit, and trailing stop
var float entryPriceLong = na
var float highestPriceSinceEntry = na
var float takeProfitLevel = na
var float trailingStopLevel = na
// Entry Logic
if bullishEntry
strategy.entry("Long", strategy.long)
entryPriceLong := close
highestPriceSinceEntry := close // Initialize the highest price since entry
takeProfitLevel := entryPriceLong * 1.50 // Set take profit at 50% above entry price
trailingStopLevel := na // Reset trailing stop
label.new(bar_index, close, "BUY", style=label.style_label_up, color=color.green, textcolor=color.white)
// Update highest price and trailing stop dynamically
if strategy.position_size > 0
highestPriceSinceEntry := math.max(highestPriceSinceEntry, close) // Track the highest price reached
trailingStopLevel := highestPriceSinceEntry * (1 - 0.25) // Set trailing stop at 25% below the highest price
// Exit Logic: Take profit or trailing stop
if strategy.position_size > 0 and (close >= takeProfitLevel or close <= trailingStopLevel)
strategy.close("Long")
label.new(bar_index, close, "EXIT LONG", style=label.style_label_down, color=color.red, textcolor=color.white)
// Plot trailing stop and take profit levels on the chart
plot(trailingStopLevel, "Trailing Stop", color=color.red, linewidth=2, style=plot.style_line)
plot(takeProfitLevel, "Take Profit", color=color.green, linewidth=2, style=plot.style_line)