
এই কৌশলটি তুলনামূলকভাবে দুর্বল সূচক ((আরএসআই) এবং বোলিংগার ব্যান্ডস ((বোলিংগার ব্যান্ডস) এর দুটি প্রযুক্তিগত সূচককে একত্রিত করে, যখন দামগুলি বোলিং ব্যান্ডের নীচে নেমে আসে তখন একটি কেনার সংকেত উত্পন্ন করে এবং যখন দামগুলি বোলিং ব্যান্ডের উপরে থাকে তখন একটি বিক্রয় সংকেত উত্পন্ন করে। এই কৌশলটি কেবলমাত্র যখন আরএসআই এবং বোলিং ব্যান্ডের সূচক একই সাথে ওভারসোল্ড বা ওভারবোলিং অবস্থায় থাকে তখনই একটি লেনদেনের সংকেত ট্রিগার করে।
আরএসআই এবং বুলিন বন্ডের দ্বৈত কৌশলটি প্রবণতা এবং গতিশীলতার সূচকগুলির সংমিশ্রণের মাধ্যমে বাজারের অবস্থা সম্পর্কে একটি বিস্তৃত বিচার করতে পারে এবং সেই অনুযায়ী ট্রেডিং সংকেত দিতে পারে। তবে এই কৌশলটি অস্থির বাজারে দুর্বল পারফরম্যান্স করতে পারে এবং ঝুঁকি নিয়ন্ত্রণ ব্যবস্থা স্থাপন করা হয়নি, তাই রিয়েল-স্টোর ব্যবহারের সময় সতর্কতা অবলম্বন করা প্রয়োজন। প্যারামিটারগুলি অনুকূলিতকরণ, অন্যান্য সূচকগুলি প্রবর্তন এবং যুক্তিসঙ্গত স্টপ লস সেট করার মতো পদ্ধতিগুলি ব্যবহার করে কৌশলটির স্থায়িত্ব এবং লাভজনকতা আরও বাড়িয়ে তুলতে পারে।
/*backtest
start: 2024-03-01 00:00:00
end: 2024-03-31 23:59:59
period: 4h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=4
strategy("Bollinger + RSI, Double Strategy (by ChartArt) v1.1", shorttitle="CA_-_RSI_Bol_Strat_1.1", overlay=true)
// ChartArt's RSI + Bollinger Bands, Double Strategy - Update
//
// Version 1.1
// Idea by ChartArt on January 18, 2015.
//
// This strategy uses the RSI indicator
// together with the Bollinger Bands
// to sell when the price is above the
// upper Bollinger Band (and to buy when
// this value is below the lower band).
//
// This simple strategy only triggers when
// both the RSI and the Bollinger Bands
// indicators are at the same time in
// a overbought or oversold condition.
//
// In this version 1.1 the strategy was
// both simplified for the user and
// made more successful in backtesting.
//
// List of my work:
// https://www.tradingview.com/u/ChartArt/
//
// __ __ ___ __ ___
// / ` |__| /\ |__) | /\ |__) |
// \__, | | /~~\ | \ | /~~\ | \ |
//
//
///////////// RSI
RSIlength = input(14,title="RSI Period Length")
RSIoverSold = 30
RSIoverBought = 70
price = close
vrsi = rsi(price, RSIlength)
///////////// Bollinger Bands
BBlength = input(20, minval=1,title="Bollinger Period Length")
BBmult = input(2.0, minval=0.001, maxval=50,title="Bollinger Bands Standard Deviation")
BBbasis = sma(price, BBlength)
BBdev = BBmult * stdev(price, BBlength)
BBupper = BBbasis + BBdev
BBlower = BBbasis - BBdev
source = close
buyEntry = crossover(source, BBlower)
sellEntry = crossunder(source, BBupper)
plot(BBbasis, color=color.blue,title="Bollinger Bands SMA Basis Line")
p1 = plot(BBupper, color=color.red,title="Bollinger Bands Upper Line")
p2 = plot(BBlower, color=color.green,title="Bollinger Bands Lower Line")
fill(p1, p2)
// Entry conditions
crossover_rsi = crossover(vrsi, RSIoverSold) and crossover(source, BBlower)
crossunder_rsi = crossunder(vrsi, RSIoverBought) and crossunder(source, BBupper)
///////////// RSI + Bollinger Bands Strategy
if (not na(vrsi))
if (crossover_rsi)
strategy.entry("RSI_BB_L", strategy.long, comment="RSI_BB_L")
else
strategy.cancel(id="RSI_BB_L")
if (crossunder_rsi)
strategy.entry("RSI_BB_S", strategy.short, comment="RSI_BB_S")
else
strategy.cancel(id="RSI_BB_S")