
এই কৌশলটি একটি সুপারট্রেন্ড সূচক (Supertrend) এর উপর ভিত্তি করে একটি উচ্চতর ট্রেডিং সিস্টেম যা ট্রেন্ড পরিবর্তনের স্বীকৃতি এবং মূল্যের ক্রিয়াকলাপের বিশ্লেষণের মাধ্যমে বাজার কেনা-বেচা সংকেত সনাক্ত করে। এই কৌশলটি গতিশীল প্রবণতা ট্র্যাকিং প্রক্রিয়াটি ব্যবহার করে, দামের ব্রেকথ্রু যাচাইকরণের সাথে মিলিত হয়, যা কার্যকরভাবে বাজারের প্রবণতা পাল্টানোর পয়েন্টগুলিকে ক্যাপচার করতে পারে।
কৌশলটির মূল ভিত্তি নিম্নলিখিত মূল উপাদানগুলির উপর ভিত্তি করে:
এই কৌশলটি একটি তুলনামূলকভাবে নির্ভরযোগ্য ট্রেডিং সিস্টেম তৈরি করে, এটি একটি সুপারট্রেন্ডিং সূচক এবং মূল্যের আচরণ বিশ্লেষণের সাথে মিলিত হয়। যদিও কিছু সম্ভাব্য ঝুঁকি রয়েছে, তবে প্রস্তাবিত অপ্টিমাইজেশান দিকটি কৌশলটির স্থিতিশীলতা এবং লাভজনকতাকে আরও বাড়িয়ে তুলতে পারে। কৌশলটি সফলভাবে বাস্তবায়নের জন্য ব্যবসায়ীদের বাজারের পরিবেশের গভীর বোঝার প্রয়োজন এবং বাস্তব পরিস্থিতি অনুসারে প্যারামিটার সেটগুলিকে নমনীয়ভাবে সামঞ্জস্য করতে হবে।
/*backtest
start: 2024-08-01 00:00:00
end: 2025-02-19 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Binance","currency":"DOGE_USDT"}]
*/
//@version=5
strategy("Supertrend Strategy with Money Ocean Trade", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
// Input parameters
supertrendLength = input.int(6, title="Supertrend Length")
supertrendFactor = input.float(0.25, title="Supertrend Factor")
// Supertrend calculation
[supertrend, direction] = ta.supertrend(supertrendFactor, supertrendLength)
// Plot Supertrend line
supertrendColor = direction == 1 ? color.green : color.red
plot(supertrend, title="Supertrend", color=supertrendColor, linewidth=2, style=plot.style_line)
// Variables to track trend change and candle break
var bool trendChanged = false
var float prevSupertrend = na
if (not na(prevSupertrend) and direction != nz(ta.valuewhen(prevSupertrend != supertrend, direction, 1)))
trendChanged := true
else
trendChanged := false
prevSupertrend := supertrend
longEntry = trendChanged and close[1] < supertrend[1] and close > supertrend
shortEntry = trendChanged and close[1] > supertrend[1] and close < supertrend
// Strategy execution
if (longEntry)
strategy.entry("Long", strategy.long)
if (shortEntry)
strategy.entry("Short", strategy.short)
// Plot entry signals on the chart
plotshape(series=longEntry, location=location.belowbar, color=color.green, style=shape.labelup, title="BUY")
plotshape(series=shortEntry, location=location.abovebar, color=color.red, style=shape.labeldown, title="SELL")
// Alerts
alertcondition(longEntry, title="Buy Signal", message="Buy Signal Triggered!")
alertcondition(shortEntry, title="Short Signal", message="Short Signal Triggered!")