
এই কৌশলটি একটি স্বয়ংক্রিয় ট্রেডিং সিস্টেম যা সুপারট্রেন্ড সূচকগুলির উপর ভিত্তি করে তৈরি করা হয় এবং সুপারট্রেন্ড লাইনের সাথে দামের ক্রস বিশ্লেষণ করে ট্রেডিং সংকেত তৈরি করে। কৌশলটি সুপারট্রেন্ড লাইনের মধ্য দিয়ে দামের দিকনির্দেশের সাথে সংযুক্ত একটি নির্দিষ্ট এটিআর চক্র এবং গুণক প্যারামিটার ব্যবহার করে বাজার প্রবণতা নির্ধারণ করে, প্রবণতা ট্র্যাকিং এবং তহবিল পরিচালনার একটি জৈবিক সমন্বয় অর্জন করে।
কৌশলটির মূল অংশটি হল সুপারট্রেন্ড সূচক ব্যবহার করা, যা এটিআর (অভারেজ ট্রু রেঞ্জ) এর উপর ভিত্তি করে তৈরি করা হয়েছে। এর মধ্যে রয়েছেঃ
এটি একটি সুনির্দিষ্ট, যুক্তিসঙ্গত প্রবণতা-অনুসরণ কৌশল। সুপারট্রেন্ড সূচকগুলির গতিশীল বৈশিষ্ট্যগুলির মাধ্যমে প্রবণতা ক্যাপচার এবং ঝুঁকি নিয়ন্ত্রণের একীকরণ সম্ভব। কৌশলটি শক্তিশালী ব্যবহারিকতা এবং স্কেলযোগ্যতা রয়েছে, যুক্তিসঙ্গত প্যারামিটার সেট এবং অপ্টিমাইজড দিকনির্দেশের বাস্তবায়নের মাধ্যমে এটি রিয়েল-অ্যাক্ট ট্রেডিংয়ে স্থিতিশীল পারফরম্যান্সের প্রত্যাশা করে।
/*backtest
start: 2019-12-23 08:00:00
end: 2024-12-09 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Commodity KIng", overlay=true)
// Supertrend Parameters
atr_period = 10 // Fixed ATR Period
atr_multiplier = 2.0 // Fixed ATR Multiplier
// Calculate Supertrend
[supertrend, direction] = ta.supertrend(atr_multiplier, atr_period)
// Plot Supertrend with reversed colors
plot(supertrend, color=direction > 0 ? color.red : color.green, title="Supertrend", linewidth=2)
// Buy and Sell Conditions
longCondition = ta.crossover(close, supertrend) // Buy when price crosses above Supertrend
shortCondition = ta.crossunder(close, supertrend) // Sell when price crosses below Supertrend
// Execute Buy and Sell Orders
if (longCondition)
strategy.entry("Buy", strategy.long)
if (shortCondition)
strategy.entry("Sell", strategy.short)
// Exit Conditions
if (shortCondition)
strategy.close("Buy") // Close long position if price crosses below Supertrend
if (longCondition)
strategy.close("Sell") // Close short position if price crosses above Supertrend
// Alerts
if (longCondition)
alert("Buy Signal: " + str.tostring(close), alert.freq_once_per_bar)
if (shortCondition)
alert("Sell Signal: " + str.tostring(close), alert.freq_once_per_bar)