আরএসআই এবং চলমান গড় ব্রেকআউট কৌশল

লেখক:চাওঝাং, তারিখঃ 2024-01-24 14:31:01
ট্যাগঃ

img

সারসংক্ষেপ

আরএসআই এবং মুভিং এভারেজ ব্রেকআউট কৌশল একটি পরিমাণগত কৌশল যা ট্রেডিংয়ের সুযোগ নির্ধারণের জন্য আরএসআই সূচক এবং মুভিং এভারেজ লাইন উভয়ই ব্যবহার করে। এই কৌশলটির মূল ধারণাটি হ'ল যখন আরএসআই অতিরিক্ত ক্রয় বা অতিরিক্ত বিক্রয় স্তরে পৌঁছে যায় তখন চলমান গড়ের দিক দিয়ে আরও ভাল ব্রেকআউট পয়েন্টগুলি সন্ধান করা।

কৌশলগত যুক্তি

  1. ব্যবহারকারীর সংজ্ঞায়িত পরামিতিগুলির উপর ভিত্তি করে RSI সূচক এবং সহজ চলমান গড় রেখা গণনা করুন।

  2. যখন আরএসআই ওভারসোল্ড লাইনের (ডিফল্ট ৩০) উপরে অতিক্রম করে, দাম যদি লং আউটপুট মুভিং এভারেজের নিচে থাকে তবে একটি লং সিগন্যাল তৈরি করা হয়।

  3. যখন আরএসআই ওভারকুপ লাইন (ডিফল্ট ৭০) এর নিচে অতিক্রম করে, যখন দাম শর্ট আউট মুভিং এভারেজের উপরে থাকে তখন একটি শর্ট সিগন্যাল তৈরি হয়।

  4. ব্যবহারকারীরা একটি প্রবণতা মুভিং গড় লাইন উপর ভিত্তি করে সংকেত ফিল্টার করতে পারেন। সংকেত শুধুমাত্র যখন মূল্য উপরে বা ফিল্টারিং মুভিং গড় নিচে হয় উত্পন্ন হয়।

  5. লং এবং শর্ট এক্সটেনশান মুভিং মিডিয়ার লাইন দ্বারা আউটপুটগুলি নির্ধারিত হয়।

সুবিধা বিশ্লেষণ

  1. ডাবল ইন্ডিকেটর ডিজাইন দুটি প্রধান বাজার কারণকে অন্তর্ভুক্ত করে নির্ভুলতা উন্নত করে।

  2. RSI এর গড় বিপরীত বৈশিষ্ট্যটি কার্যকরভাবে টার্নিং পয়েন্টগুলি সনাক্ত করতে ব্যবহার করে।

  3. মুভিং এভারেজ সহ অতিরিক্ত ফিল্টার শীর্ষ এবং নীচে তাড়া এড়ানোর জন্য লজিক কঠোরতা বৃদ্ধি করে।

  4. কাস্টমাইজযোগ্য পরামিতিগুলি বিভিন্ন পণ্য এবং সময়সীমার মধ্যে অপ্টিমাইজেশানগুলিকে অনুমতি দেয়।

  5. সহজ যুক্তি এটিকে সহজেই বুঝতে এবং সংশোধন করতে পারে।

ঝুঁকি বিশ্লেষণ

  1. আরএসআই-র সাথে Whipsaws সাধারণ, ঘনত্ব সূচক সাহায্য করতে পারে.

  2. আরএসআই বৃহত্তর সময়সীমার মধ্যে ব্যর্থ হয়, প্যারামিটারগুলি সামঞ্জস্য করা যেতে পারে বা অতিরিক্ত সূচকগুলি সহায়তা করতে পারে।

  3. মুভিং এভারেজগুলির একটি লেগিং এফেক্ট রয়েছে, দৈর্ঘ্যগুলি সংক্ষিপ্ত করা যেতে পারে বা এমএসিডি এর মতো সূচকগুলি সহায়তা করতে পারে।

  4. মৌলিক যুক্তির কারণে সংকেতগুলি যাচাই করার জন্য আরও সূচক প্রবর্তন করা উচিত।

অপ্টিমাইজেশান নির্দেশাবলী

  1. ভুল সংকেত কমানোর জন্য RSI পরামিতিগুলি অপ্টিমাইজ করুন বা ঘনত্ব সূচক চালু করুন।

  2. প্রবণতা এবং সমর্থন সনাক্ত করতে ডিএমআই এবং বিওএলএল এর মতো প্রবণতা এবং অস্থিরতার সূচক অন্তর্ভুক্ত করুন।

  3. মুভিং এভারেজ রায়কে প্রতিস্থাপন বা পরিপূরক করার জন্য MACD প্রবর্তন করুন।

  4. অনুপযুক্ত ব্রেকআউট এড়াতে প্রবেশ সংকেতগুলিতে আরও লজিক শর্ত যুক্ত করুন।

সিদ্ধান্ত

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


/*backtest
start: 2024-01-16 00:00:00
end: 2024-01-23 00:00:00
period: 5m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//Global Market Signals: RSI Strategy.
//@version=4
strategy("GMS: RSI Strategy", overlay=true)

LongShort = input(title="Long Only or Short Only or Both?", type=input.string, defval="Both", options=["Both", "Long Only", "Short Only"])
RSILength = input(title="RSI Length", type = input.integer ,defval=14)
RSIUpper = input(title="Upper Threshold", type = input.float ,defval=70)
RSILower = input(title="Lower Threshold", type = input.float ,defval=30)
LongExit = input(title="Long Exit SMA Length", type = input.integer ,defval=5)
ShortExit = input(title="Short Exit SMA Length", type = input.integer ,defval=5)
AboveBelow = input(title="Trend SMA Filter?", type=input.string, defval="Above", options=["Above", "Below", "Don't Include"])
TrendLength = input(title="Trend SMA Length", type = input.integer ,defval=200)


//Long Side

if LongShort =="Long Only" and AboveBelow == "Above"
    strategy.entry("LONG", true, when = rsi(close,RSILength)<RSILower and close< sma(close,LongExit) and close>sma(close,TrendLength))
    strategy.close("LONG", when = close>sma(close,LongExit))
    
if LongShort =="Long Only" and AboveBelow == "Below"
    strategy.entry("LONG", true, when = rsi(close,RSILength)<RSILower and close< sma(close,LongExit) and close<sma(close,TrendLength))
    strategy.close("LONG", when = close>sma(close,LongExit))
    
if LongShort =="Long Only" and AboveBelow == "Don't Include"
    strategy.entry("LONG", true, when = rsi(close,RSILength)<RSILower and close< sma(close,LongExit))
    strategy.close("LONG", when = close>sma(close,LongExit))
    
if LongShort =="Both" and AboveBelow == "Above"
    strategy.entry("LONG", true, when = rsi(close,RSILength)<RSILower and close< sma(close,LongExit) and close>sma(close,TrendLength))
    strategy.close("LONG", when = close>sma(close,LongExit))
    
if LongShort =="Both" and AboveBelow == "Below"
    strategy.entry("LONG", true, when = rsi(close,RSILength)<RSILower and close< sma(close,LongExit) and close<sma(close,TrendLength))
    strategy.close("LONG", when = close>sma(close,LongExit))
    
if LongShort =="Both" and AboveBelow == "Don't Include"
    strategy.entry("LONG", true, when = rsi(close,RSILength)<RSILower and close< sma(close,LongExit))
    strategy.close("LONG", when = close>sma(close,LongExit))
    
    
//SHORT SIDE

if LongShort =="Short Only" and AboveBelow == "Above"
    strategy.entry("SHORT", false, when = rsi(close,RSILength)>RSIUpper and close> sma(close,ShortExit) and close>sma(close,TrendLength))
    strategy.close("SHORT", when = close<sma(close,ShortExit))
    
if LongShort =="Short Only" and AboveBelow == "Below"
    strategy.entry("SHORT", false, when = rsi(close,RSILength)>RSIUpper and close> sma(close,ShortExit) and close<sma(close,TrendLength))
    strategy.close("SHORT", when = close<sma(close,ShortExit))
    
if LongShort =="Short Only" and AboveBelow == "Don't Include"
    strategy.entry("SHORT", false, when = rsi(close,RSILength)>RSIUpper and close> sma(close,ShortExit))
    strategy.close("SHORT", when = close<sma(close,ShortExit))
    
if LongShort =="Both" and AboveBelow == "Above"
    strategy.entry("SHORT", false, when = rsi(close,RSILength)>RSIUpper and close> sma(close,ShortExit) and close>sma(close,TrendLength))
    strategy.close("SHORT", when = close<sma(close,ShortExit))
    
if LongShort =="Both" and AboveBelow == "Below"
    strategy.entry("SHORT", false, when = rsi(close,RSILength)>RSIUpper and close> sma(close,ShortExit) and close<sma(close,TrendLength))
    strategy.close("SHORT", when = close<sma(close,ShortExit))
    
if LongShort =="Both" and AboveBelow == "Don't Include"
    strategy.entry("SHORT", false, when = rsi(close,RSILength)>RSIUpper and close> sma(close,ShortExit))
    strategy.close("SHORT", when = close<sma(close,ShortExit))
    
    
    
    
    
    
   





আরো