
এই কৌশলটি একটি ট্রেডিং সিস্টেম যা সুপারট্রেন্ড সূচক এবং স্টোক্যাস্টিক ওসিলিটারের সাথে প্রবণতা অনুসরণ করে। এই কৌশলটি সুপারট্রেন্ড সূচকের মাধ্যমে বাজার প্রবণতার দিকটি সনাক্ত করে এবং এলোমেলো সূচকের ওভার-বিক্রয় ওভার-বিক্রয় সংকেতকে লেনদেনের নিশ্চিতকরণ সংকেত হিসাবে ব্যবহার করে। কৌশলটি প্রবণতার দিকের মধ্যে সর্বোত্তম প্রবেশ এবং প্রস্থান সময় সন্ধান করার জন্য গতিশীল ক্রস পদ্ধতি ব্যবহার করে, যা প্রবণতা ট্র্যাকিং এবং গতিশীল বিশ্লেষণের নিখুঁত সমন্বয় করে।
এই কৌশলটির মূল যুক্তিটি দুটি প্রধান সূচকের উপর ভিত্তি করে তৈরি করা হয়েছেঃ
লেনদেনের নিয়মাবলী নিম্নরূপঃ
এই কৌশলটি প্রবণতা ট্র্যাকিং এবং গতিশীলতা বিশ্লেষণের সাথে একত্রিত করে একটি মোটামুটি সম্পূর্ণ ট্রেডিং সিস্টেম তৈরি করে। এটি কেবল পরিষ্কার প্রবেশ এবং প্রস্থান সংকেত সরবরাহ করে না, তবে ঝুঁকি ব্যবস্থাপনা এবং প্যারামিটার অপ্টিমাইজেশনের জন্য একটি কাঠামোও রয়েছে। যদিও কিছু অন্তর্নিহিত ঝুঁকি রয়েছে, তবে অপ্টিমাইজেশনের পরামর্শ দেওয়া কৌশলটির স্থিতিশীলতা এবং অভিযোজনকে আরও বাড়িয়ে তুলতে পারে।
/*backtest
start: 2024-02-21 00:00:00
end: 2024-10-01 00:00:00
period: 2d
basePeriod: 2d
exchanges: [{"eid":"Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("SuperTrend + Stochastic Strategy", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=10)
// SuperTrend Settings
superTrendFactor = input.float(3.0, title="SuperTrend Factor", step=0.1)
superTrendATRLength = input.int(10, title="SuperTrend ATR Length")
// Calculate SuperTrend
[superTrend, direction] = ta.supertrend(superTrendFactor, superTrendATRLength)
// Plot SuperTrend
plot(superTrend, color=direction == 1 ? color.green : color.red, title="SuperTrend")
bgcolor(direction == 1 ? color.new(color.green, 90) : color.new(color.red, 90), transp=90)
// Stochastic Settings
stochKLength = input.int(14, title="Stochastic %K Length")
stochDLength = input.int(3, title="Stochastic %D Length")
stochSmoothK = input.int(3, title="Stochastic %K Smoothing")
stochOverbought = input.int(80, title="Stochastic Overbought Level")
stochOversold = input.int(20, title="Stochastic Oversold Level")
// Calculate Stochastic
k = ta.sma(ta.stoch(close, high, low, stochKLength), stochSmoothK)
d = ta.sma(k, stochDLength)
// Plot Stochastic in separate pane
hline(stochOverbought, "Overbought", color=color.red)
hline(stochOversold, "Oversold", color=color.green)
plot(k, color=color.blue, title="%K", linewidth=2)
plot(d, color=color.orange, title="%D", linewidth=2)
// Long Condition: SuperTrend is up and Stochastic %K crosses above oversold
longCondition = direction == 1 and ta.crossover(k, stochOversold)
if (longCondition)
strategy.entry("Long", strategy.long)
// Short Condition: SuperTrend is down and Stochastic %K crosses below overbought
shortCondition = direction == -1 and ta.crossunder(k, stochOverbought)
if (shortCondition)
strategy.entry("Short", strategy.short)
// Exit Long: SuperTrend turns down or Stochastic %K crosses below overbought
exitLong = direction == -1 or ta.crossunder(k, stochOverbought)
if (exitLong)
strategy.close("Long")
// Exit Short: SuperTrend turns up or Stochastic %K crosses above oversold
exitShort = direction == 1 or ta.crossover(k, stochOversold)
if (exitShort)
strategy.close("Short")