বর্তমান ট্রেন্ড ট্রেন্ড অনুসরণ কৌশল


সৃষ্টির তারিখ: 2023-09-21 15:00:08 অবশেষে সংশোধন করুন: 2023-09-21 15:00:08
অনুলিপি: 0 ক্লিকের সংখ্যা: 615
1
ফোকাস
1617
অনুসারী

ওভারভিউ

PresentTrend কৌশল একটি অনন্য কাস্টম ট্রেন্ড অনুসরণ কৌশল। এই কৌশলটি স্বল্প ও দীর্ঘমেয়াদী বাজার প্রবণতাকে একত্রিত করে, যা বিভিন্ন বাজার অবস্থার জন্য উপযুক্ত।

কৌশল নীতি

এই কৌশল দুটি অংশে বিভক্তঃ

  1. কাস্টম আরএসআই বা এমএফআই সূচকঃ এই সূচকটি আরএসআই বা এমএফআই দ্বারা গণনা করা বর্তমান প্রবণতা মানের উপর ভিত্তি করে, এবং এই মানের উপর ভিত্তি করে গোল্ডেন ফর্কে একটি ক্রয় এবং বিক্রয় সংকেত উত্পন্ন করে, যা সম্ভাব্য প্রবণতা বিপরীত নির্দেশ করে।

  2. এটিআর সূচকঃ এটি একটি জনপ্রিয় প্রবণতা অনুসরণকারী সূচক, যা গড় বাস্তব ওঠানামা পরিসীমা (ATR) ব্যবহার করে।

যখন দুইটি কৌশল একই সময়ে ক্রয় এবং বিক্রয় সংকেত দেয়, তখন কৌশলটি পজিশনে বেশি বা কম হয়। এটি নিশ্চিত করে যে ট্রেডিং কেবলমাত্র স্বল্প ও দীর্ঘমেয়াদী প্রবণতাগুলির সাথে সামঞ্জস্যপূর্ণ হলেই ঘটে, যা কৌশলটির নির্ভরযোগ্যতা বাড়ায়।

কৌশলগত সুবিধা

  • স্বল্প ও দীর্ঘমেয়াদী প্রবণতা সমন্বয় করে, বিভিন্ন বাজারের অবস্থার জন্য প্রযোজ্য
  • সিগন্যালের নির্ভরযোগ্যতা বাড়ানোর জন্য কাস্টমাইজড সূচক এবং ATR ব্যবহার করা হয়েছে
  • বিভিন্ন ট্রেডিং স্টাইলের সাথে সামঞ্জস্যপূর্ণ, শুধুমাত্র লোভী, শুধুমাত্র লোভী বা দ্বি-মুখী ট্রেডিংয়ের বিকল্প
  • ডিফল্ট প্যারামিটারগুলি সংবেদনশীলতা এবং স্থায়িত্বের মধ্যে ভারসাম্য বজায় রাখার জন্য অনুকূলিত করা হয়েছে
  • প্যারামিটারগুলি ব্যক্তিগত পছন্দ অনুসারে সামঞ্জস্য করা যায়, কৌশলগুলি অনুকূলিতকরণ করা যায়

কৌশলগত ঝুঁকি ও সমাধান

  • সমস্ত প্রবণতা কৌশল অনুসরণ করে এবং সুদ-ব্যবহারের ঝুঁকি রয়েছে
  • মাল্টি-ফ্ল্যাশ ডাবল-ডাইরেক্ট লেনদেনের ফলে লেনদেনের সংখ্যা এবং লেনদেনের ফি বাড়তে পারে
  • প্যারামিটার সেটিং ভুল হলে অনেকগুলি ত্রুটিপূর্ণ সিগন্যাল হতে পারে
  • লেনদেনের পজিশন ধারণের সময়কাল যথাযথভাবে সংক্ষিপ্ত করা, হিজড়া ঝুঁকি হ্রাস করা
  • ট্রেডিং কমানোর জন্য শুধুমাত্র লভ্যাংশ বা লোভ্যাংশ নির্বাচন করুন
  • পরামিতিগুলি যথাযথভাবে পরীক্ষা করা এবং যথাযথভাবে সামঞ্জস্য করা উচিত যাতে নিশ্চিত করা যায় যে তারা যুক্তিসঙ্গত

কৌশল অপ্টিমাইজেশনের দিকনির্দেশনা

  • একক ক্ষতি নিয়ন্ত্রণে ক্ষতিপূরণ ব্যবস্থা বৃদ্ধি
  • অন্য সূচকগুলির সাথে মিলিত হয়ে ফিল্টারিং সংকেত, ভুল লেনদেন হ্রাস
  • বিভিন্ন পজিশন ধারণের সময়কালের পরামিতি পরীক্ষা করে সর্বোত্তম প্যারামিটার খুঁজুন
  • মেশিন লার্নিং ভিত্তিক স্বয়ংক্রিয় অপ্টিমাইজেশান প্যারামিটার চেষ্টা করুন
  • অর্ডার প্রবাহের তথ্যের মতো আরও তথ্যের উৎস ব্যবহার করুন
  • কৌশল কোড অপ্টিমাইজ করুন এবং কার্যকর করুন

সারসংক্ষেপ

PresentTrend কৌশল সামগ্রিকভাবে একটি খুব কার্যকর প্রবণতা অনুসরণ কৌশল। এটি একই সাথে সংক্ষিপ্ত এবং দীর্ঘমেয়াদী প্রবণতা সূচকগুলিকে সংযুক্ত করে, সংবেদনশীলতা বজায় রাখার সময় সংকেতের নির্ভরযোগ্যতা বাড়ায়। দিকনির্দেশ, প্যারামিটারগুলি সামঞ্জস্য করে এবং অতিরিক্ত লজিক যুক্ত করে, কৌশলটি বিভিন্ন বাজার পরিবেশ এবং ব্যবসায়ীদের প্রয়োজনের সাথে খাপ খাইয়ে নিতে পারে। যদিও প্রবণতা অনুসরণ কৌশলটির অন্তর্নিহিত ঝুঁকির বিষয়ে এখনও সতর্কতা অবলম্বন করা দরকার, তবে সামগ্রিকভাবে PresentTrend একটি বিবেচনাযোগ্য বিকল্প।

কৌশল সোর্স কোড
/*backtest
start: 2023-08-21 00:00:00
end: 2023-09-20 00:00:00
period: 2h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © PresentTrading

//@version=5

// Define the strategy settings
strategy('PresentTrend - Strategy [presentTrading]' , overlay=true, precision=3, default_qty_type=strategy.cash, 
 commission_value= 0.1, commission_type=strategy.commission.percent, slippage= 1, 
  currency=currency.USD, default_qty_type = strategy.percent_of_equity, default_qty_value = 10, initial_capital= 10000)

// Define the input parameters
priceSource  = input.source(title='Source', defval=hlc3, group='PresentTrend') // The price source to use
lengthParam  = input.int(title='Length', defval=14, group='PresentTrend') // The length of the moving average
multiplier = input.float(title='Multiplier', defval=1.618, step=0.1, group='PresentTrend') // The multiplier for the ATR
indicatorChoice  = input.bool(title='Whether to use RSI or MFI', defval=false, group='PresentTrend') // Whether to use RSI or MFI

// Add a parameter for choosing Long or Short
tradeDirection = input.string(title="Trade Direction", defval="Both", options=["Long", "Short", "Both"])

// Calculate the ATR and the upT and downT values
ATR = ta.sma(ta.tr, lengthParam)
upperThreshold = low - ATR * multiplier 
lowerThreshold  = high + ATR * multiplier 

// Initialize the PresentTrend indicator
PresentTrend = 0.0

// Calculate the PresentTrend indicator
PresentTrend := (indicatorChoice ? ta.rsi(priceSource, lengthParam) >= 50 : ta.mfi(hlc3, lengthParam) >= 50) ? upperThreshold < nz(PresentTrend[1]) ? nz(PresentTrend[1]) : upperThreshold : lowerThreshold > nz(PresentTrend[1]) ? nz(PresentTrend[1]) : lowerThreshold

// Calculate the buy and sell signals
longSignal  = ta.crossover(PresentTrend, PresentTrend[2])
shortSignal  = ta.crossunder(PresentTrend, PresentTrend[2])

// Calculate the number of bars since the last buy and sell signals
barsSinceBuy = ta.barssince(longSignal)
barsSinceSell = ta.barssince(shortSignal)
previousBuy = ta.barssince(longSignal[1])
previousSell = ta.barssince(shortSignal[1])

// Initialize the direction variable
trendDirection = 0

// Calculate the direction of the trend
trendDirection := longSignal and previousBuy > barsSinceSell ? 1 : shortSignal and previousSell > barsSinceBuy ? -1 : trendDirection[1]

// Check the trade direction parameter before entering a trade
if (trendDirection == 1 and (tradeDirection == "Long" or tradeDirection == "Both"))
    strategy.entry("Buy", strategy.long) 
if (trendDirection == -1 and (tradeDirection == "Short" or tradeDirection == "Both"))
    strategy.entry("Sell", strategy.short) 

// Add a stop mechanism when the tradeDirection is one-sided
if (tradeDirection == "Long" and trendDirection == -1)
    strategy.close("Buy")
if (tradeDirection == "Short" and trendDirection == 1)
    strategy.close("Sell")

// Visualization
plot(PresentTrend, color=color.blue, title="PresentTrend")
plotshape(series=longSignal, location=location.belowbar, color=color.green, style=shape.labelup, title="Buy Signal")
plotshape(series=shortSignal, location=location.abovebar, color=color.red, style=shape.labeldown, title="Sell Signal")