ক্রিপ্টোকারেন্সি ট্রেডিং কৌশল একাধিক গতির সূচক একত্রিত করে

লেখক:চাওঝাং, তারিখঃ 2023-09-13 15:16:55
ট্যাগঃ

এই কৌশলটির নাম Cryptocurrency Trading Strategy Combining Multiple Momentum Indicators। এটি ট্রেড সিগন্যালের জন্য ক্রিপ্টোকারেন্সিতে অতিরিক্ত ক্রয় এবং অতিরিক্ত বিক্রয়ের শর্তগুলি পরিমাপ করার জন্য এমএফআই, আরএসআই এবং স্টক আরএসআই সূচকগুলিকে সংহত করে।

এমএফআই সূচক হল অর্থ প্রবাহ সূচক। এটি ক্রয় এবং বিক্রয় চাপের শক্তি বিচার করার জন্য ভলিউম এবং মূল্য উভয় তথ্য বিবেচনা করে। 20 এর নীচে এমএফআই অতিরিক্ত বিক্রয় অবস্থা প্রস্তাব করে, যখন 80 এর উপরে অতিরিক্ত ক্রয় হয়।

আরএসআই সূচকটি আপেক্ষিক শক্তি সূচক। এটি দামের ওভারকপ এবং ওভারসোল্ড স্তরগুলি চিত্রিত করে। 30 এর নীচে আরএসআই ওভারসোল্ড, যখন 70 এর উপরে ওভারসোল্ড হয়।

স্টক আরএসআই সূচকটি একটি আরএসআই বৈকল্পিক যা বিচার করে যে আরএসআই নিজেই ওভারকুপেড বা ওভারসোল্ড হয়েছে কিনা। 20-80 এ সেট করা পরামিতিগুলি ওভারকুপেড এবং ওভারসোল্ড অঞ্চলগুলি উপস্থাপন করে।

লেনদেনের যুক্তি হচ্ছেঃ

যখন এমএফআই, আরএসআই এবং স্টক আরএসআই একযোগে ওভারসোল্ডের স্তরের নিচে থাকে, তখন এটি লম্বা হওয়ার জন্য একাধিক ওভারসোল্ড নিশ্চিতকরণের সংকেত দেয়।

যখন তিনটি সূচক একসাথে অতিরিক্ত ক্রয়ের অঞ্চলের উপরে থাকে, তখন এটি শর্ট হওয়ার জন্য একাধিক অতিরিক্ত ক্রয়ের নিশ্চিতকরণ চিহ্নিত করে।

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

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


/*backtest
start: 2023-08-13 00:00:00
end: 2023-09-12 00:00:00
period: 1h
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/
// Crypto Crew strategy entry signal long/short with stop loss. Exit signal not provided.
//
// Indicators: MFI + RSI + STOCH RSI
// Entry criteria: long when the three are oversold, short when the three indicators are overbought.
// Exit criteria: Take profit at Fib levels (not demonstrated here) measured from prevous highs/low.
// Feel free to contribute

//@version=4
strategy("Crypto Crew")

//inputs
source = hlc3
rsi_length = input(14, minval=1)
mfi_lenght =  input(14, minval=1)
smoothK = input(3, minval=1)
smoothD = input(3, minval=1)
lengthRSI = input(14, minval=1)
lengthStoch = input(14, minval=1)
okay = "Okay"
good = "Good"
veryGood = "Very good"
tradingOpportunity = input(title="Opportunity Type", defval=veryGood, options=[okay, good, veryGood])
longThreshhold = tradingOpportunity==okay? 40 : tradingOpportunity==good ? 30 : tradingOpportunity==veryGood? 20 : 0
shortThreshhold = tradingOpportunity==okay? 60 : tradingOpportunity==good ? 70 : tradingOpportunity==veryGood? 80 : 0

//lines
mfi = mfi(source, mfi_lenght)
rsi = rsi(source, rsi_length)
rsi1 = rsi(close, lengthRSI)
k = sma(stoch(rsi1, rsi1, rsi1, lengthStoch), smoothK)
d = sma(k, smoothD)

longSignal = mfi<longThreshhold and rsi<longThreshhold and k<longThreshhold and d<longThreshhold? 1:-1
shortSignal = mfi>shortThreshhold and rsi>shortThreshhold and k>shortThreshhold and d>shortThreshhold? 1:-1

if longSignal > 0
    strategy.entry("Long", strategy.long)
    strategy.exit(id="Long Stop Loss", stop=close*0.8) //20% stop loss 
    
if shortSignal > 0
    strategy.entry("Short", strategy.short, stop=close*1.2)
    strategy.exit(id="Short Stop Loss", stop=close*1.2) //20% stop loss

plot(k, color=color.blue)
plot(d, color=color.red)
plot(rsi, color=color.yellow)
plot(mfi, color=color.blue)
hline(longThreshhold, color=color.gray, linestyle=hline.style_dashed)
hline(shortThreshhold, color=color.gray, linestyle=hline.style_dashed)


আরো