
এই কৌশলটি স্টোকাস্টিক আরএসআই-এর উপর ভিত্তি করে একটি অভিযোজিত ট্রেডিং সিস্টেম, যা অতিরিক্ত কেনা এবং বেশি বিক্রি হওয়া এলাকায় K লাইন এবং ডি লাইনের ক্রস সংকেতগুলি পর্যবেক্ষণ করে ট্রেডিং সিদ্ধান্ত নেয়। কৌশলটি ঐতিহ্যগত RSI এবং স্টোকাস্টিক সূচকগুলির সুবিধাগুলিকে একীভূত করে, দামের গতিবেগ এবং অস্থিরতার দ্বৈত নিশ্চিতকরণের মাধ্যমে আরও নির্ভরযোগ্য ট্রেডিং সংকেত প্রদান করে।
কৌশলটির মূল যুক্তি নিম্নলিখিত মূল পদক্ষেপগুলির উপর ভিত্তি করে:
ঝুঁকি নিয়ন্ত্রণের পরামর্শ:
এই কৌশলটি RSI এবং স্টোকাস্টিক সূচকের সুবিধার সমন্বয় করে একটি নির্ভরযোগ্য ট্রেডিং সিস্টেম তৈরি করে। কৌশলটির মূল সুবিধা হল সিগন্যালের নির্ভরযোগ্যতা এবং সিস্টেমের মাপযোগ্যতা যুক্তিসঙ্গত প্যারামিটার সেটিংস এবং ঝুঁকি নিয়ন্ত্রণ ব্যবস্থার মাধ্যমে, বিভিন্ন বাজারের পরিবেশে স্থিতিশীল কর্মক্ষমতা বজায় রাখা যেতে পারে। এটি সুপারিশ করা হয় যে ব্যবসায়ীরা নির্দিষ্ট বাজারের বৈশিষ্ট্য অনুযায়ী প্যারামিটারগুলি সামঞ্জস্য করুন এবং বাস্তব বাজারে এটি ব্যবহার করার সময় ঝুঁকি নিয়ন্ত্রণের দিকে মনোযোগ দিন৷
/*backtest
start: 2024-11-26 00:00:00
end: 2024-12-25 08:00:00
period: 4h
basePeriod: 4h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Stochastic RSI Strategy", overlay=true)
// Ayarlar
k_period = input.int(14, title="K Period")
d_period = input.int(3, title="D Period")
stoch_length = input.int(14, title="Stoch Length")
stoch_smoothK = input.int(3, title="Stoch SmoothK")
stoch_smoothD = input.int(3, title="Stoch SmoothD")
lower_band = input.int(20, title="Lower Band")
upper_band = input.int(80, title="Upper Band")
start_date = input(timestamp("2023-01-01 00:00"), title="Start Date")
end_date = input(timestamp("2024-12-31 23:59"), title="End Date")
use_date_filter = input.bool(true, title="Use Date Filter")
// Stochastic RSI hesaplama
rsi = ta.rsi(close, stoch_length)
stoch_rsi = ta.stoch(rsi, rsi, rsi, k_period)
K = ta.sma(stoch_rsi, stoch_smoothK)
D = ta.sma(K, stoch_smoothD)
// Tarih filtresi
is_in_date_range = true
// Alım-satım koşulları
long_condition = ta.crossover(K, D) and K < lower_band and is_in_date_range
short_condition = ta.crossunder(K, D) and K > upper_band and is_in_date_range
// İşlemleri yürüt
if (long_condition)
strategy.close("Short")
strategy.entry("Long", strategy.long)
if (short_condition)
strategy.close("Long")
strategy.entry("Short", strategy.short)
// Grafikte göstergeleri çiz
plot(K, title="K Line", color=color.blue)
plot(D, title="D Line", color=color.red)
hline(lower_band, "Lower Band", color=color.green)
hline(upper_band, "Upper Band", color=color.red)