RSI ডায়নামিক পজিশন গড় কৌশল

লেখক:চাওঝাং, তারিখঃ 2024-02-06 09:44:05
ট্যাগঃ

img

সারসংক্ষেপ

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

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

  1. RSI সূচক ব্যবহার করে বাজার ওভারসোল্ডের অবস্থা চিহ্নিত করুন, RSI সময়সীমা 14 এবং ওভারসোল্ডের থ্রেশহোল্ড 30 এ সেট করুন।
  2. যখন RSI < 30 হয় তখন 5% অ্যাকাউন্ট ইক্যুইটি দিয়ে প্রথম লং পজিশন শুরু করুন।
  3. যদি মূল্য প্রাথমিক প্রবেশ মূল্য থেকে 0.5% হ্রাস পায়, তাহলে পজিশনের আকারকে দ্বিগুণ করে গড় নিচে নামিয়ে আনুন। যদি দাম আরও হ্রাস পায়, তাহলে পজিশনের আকারকে চারগুণ করে আবার গড় নিচে নামিয়ে আনুন।
  4. প্রতিবার ০.৫% বৃদ্ধি করে মুনাফা নিন।
  5. চক্র পুনরাবৃত্তি করুন।

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

  • ভাল এন্ট্রি পয়েন্টের জন্য RSI দিয়ে বাজারের oversold অবস্থা চিহ্নিত করুন।
  • মার্টিনগেল পজিশনের গড় গড় প্রবেশাধিকার হ্রাস করে।
  • ক্ষুদ্র মুনাফা গ্রহণের ফলে ধারাবাহিক লাভ হয়।
  • নিয়ন্ত্রিত ঝুঁকির জন্য উচ্চ বাজার মূলধন মুদ্রার স্পট ট্রেডিংয়ের জন্য উপযুক্ত।

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

  • দীর্ঘস্থায়ী বাজার মন্দার ফলে বড় ধরনের ক্ষতি হতে পারে।
  • কোন স্টপ লস মানে সীমাহীন ডাউনসাইড।
  • অনেক গড় হ্রাস হ্রাস বৃদ্ধি করে।
  • এখনো দীর্ঘ পথের ঝুঁকি আছে।

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

  1. সর্বাধিক ক্ষতি সীমাবদ্ধ করার জন্য স্টপ লস অন্তর্ভুক্ত করুন।
  2. RSI পরামিতি অপ্টিমাইজ করুন সেরা overbought/oversold সংকেত খুঁজে পেতে.
  3. নির্দিষ্ট মুদ্রার অস্থিরতার উপর ভিত্তি করে যুক্তিসঙ্গত মুনাফা গ্রহণের পরিসীমা নির্ধারণ করুন।
  4. মোট সম্পদ বা পজিশনের আকার নির্ধারণের নিয়মের ভিত্তিতে গড় গতি নির্ধারণ করুন।

সংক্ষিপ্তসার

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


/*backtest
start: 2024-01-06 00:00:00
end: 2024-02-05 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Stavolt

//@version=5
strategy("RSI Martingale Strategy", overlay=true, default_qty_type=strategy.cash, currency=currency.USD)

// Inputs
rsiLength = input(14, title="RSI Length")
oversoldThreshold = input(30, title="Oversold Threshold") // Keeping RSI threshold
profitTargetPercent = input(0.5, title="Profit Target (%)") / 100
initialInvestmentPercent = input(5, title="Initial Investment % of Equity")

// Calculating RSI
rsiValue = ta.rsi(close, rsiLength)

// State variables for tracking the initial entry
var float initialEntryPrice = na
var int multiplier = 1

// Entry condition based on RSI
if (rsiValue < oversoldThreshold and na(initialEntryPrice))
    initialEntryPrice := close
    strategy.entry("Initial Buy", strategy.long, qty=(strategy.equity * initialInvestmentPercent / 100) / close)
    multiplier := 1

// Adjusting for errors and simplifying the Martingale logic
// Note: This section simplifies the aggressive position size adjustments without loops
if (not na(initialEntryPrice))
    if (close < initialEntryPrice * 0.995) // 0.5% drop from initial entry
        strategy.entry("Martingale Buy 1", strategy.long, qty=((strategy.equity * initialInvestmentPercent / 100) / close) * 2)
        multiplier := 2 // Adjusting multiplier for the next potential entry

    if (close < initialEntryPrice * 0.990) // Further drop
        strategy.entry("Martingale Buy 2", strategy.long, qty=((strategy.equity * initialInvestmentPercent / 100) / close) * 4)
        multiplier := 4

    // Additional conditional entries could follow the same pattern

// Checking for profit target to close positions
if (strategy.position_size > 0 and (close - strategy.position_avg_price) / strategy.position_avg_price >= profitTargetPercent)
    strategy.close_all(comment="Take Profit")
    initialEntryPrice := na // Reset for next cycle


আরো