
এই কৌশলটি একটি ট্রেন্ড ট্র্যাকিং কৌশল যা ঐতিহাসিক নতুন উচ্চতা এবং মুন লাইন গড় ফিল্টারিংয়ের উপর ভিত্তি করে। এটি মূল্যের পূর্ববর্তী ঐতিহাসিক সর্বোচ্চ পয়েন্টটি অতিক্রম করে কিনা তা পর্যবেক্ষণ করে একটি কেনার সংকেত খুঁজতে, এবং মুন লাইন 8 চক্রের সহজ মুভিং এভারেজ ((8 এসএমএ) ব্যবহার করে একটি বিক্রয় ফিল্টারিং শর্ত হিসাবে, যাতে ভুয়া ব্রেকিংয়ের ঝুঁকি কমাতে পারে। এই কৌশলটির নকশা ধারণাটি “ট্রেন্ড ক্রমাগততা” বাজার বৈশিষ্ট্য অনুসারে, বিশেষত শক্তিশালী উত্থান প্রবণতাগুলির মধ্যে বড় আকারের ট্রেন্ডিং ক্যাপচার করার জন্য উপযুক্ত।
কৌশলটির মূল যুক্তি দুটি গুরুত্বপূর্ণ অংশ নিয়ে গঠিতঃ
এটি একটি যুক্তিসঙ্গত, যুক্তিসঙ্গত এবং স্পষ্ট প্রবণতা ট্র্যাকিং কৌশল। ঐতিহাসিক নতুন উচ্চতা এবং চাঁদ লাইন গড়ের সংমিশ্রণ ব্যবহারের মাধ্যমে প্রবণতা সম্পর্কে কার্যকর ধারণা নিশ্চিত করা হয় এবং ঝুঁকির যুক্তিসঙ্গত নিয়ন্ত্রণ বাস্তবায়িত হয়। যদিও কিছু পিছিয়ে পড়া এবং মিথ্যা ব্রেকিংয়ের ঝুঁকি রয়েছে, তবে প্রস্তাবিত অপ্টিমাইজড দিকনির্দেশের মাধ্যমে কৌশলটির সামগ্রিক কর্মক্ষমতা আরও উন্নত হওয়ার সম্ভাবনা রয়েছে। এই কৌশলটি স্পষ্ট প্রবণতাযুক্ত বাজারের পরিবেশে বিশেষভাবে উপযুক্ত এবং এটি মাঝারি এবং দীর্ঘমেয়াদী বিনিয়োগের জন্য একটি গুরুত্বপূর্ণ রেফারেন্স সরঞ্জাম হিসাবে কাজ করতে পারে।
/*backtest
start: 2019-12-23 08:00:00
end: 2024-12-11 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Buy Signal on Close Greater Than Previous All-Time High Strategy", overlay=true)
// Initialize the previous all-time high
var float prevAllTimeHigh = na
// Update the all-time high, excluding the current bar's high (use previous bar's high)
if (na(prevAllTimeHigh) or high[1] > prevAllTimeHigh)
prevAllTimeHigh := high[1]
// Monthly closing price and 8 SMA on monthly time frame
monthlyClose = request.security(syminfo.tickerid, "M", close)
monthlySMA = ta.sma(monthlyClose, 8)
// Variables to track the last signal type
var int lastSignal = 0 // 0 = None, 1 = Buy, 2 = Sell
// Debugging output to check the all-time high and conditions
plot(prevAllTimeHigh, color=color.blue, linewidth=1, title="Previous All-Time High")
plot(monthlySMA, color=color.green, linewidth=1, title="8 SMA (Monthly)")
// Buy signal: when the latest close is greater than the previous all-time high
buySignal = close > prevAllTimeHigh and lastSignal != 1
// Sell signal: when the monthly close is below the 8 SMA
sellSignal = monthlyClose < monthlySMA and lastSignal != 2
// Update the last signal type after triggering a signal
if (buySignal)
lastSignal := 1
if (sellSignal)
lastSignal := 2
// Execute the strategy orders
if (buySignal)
strategy.entry("Buy", strategy.long)
if (sellSignal)
strategy.close("Buy")
// Optional: Plot buy and sell signals on the chart for visual reference
plotshape(series=buySignal, style=shape.labelup, location=location.belowbar, color=color.green, text="BUY", size=size.small)
plotshape(series=sellSignal, style=shape.labeldown, location=location.abovebar, color=color.red, text="SELL", size=size.small)