
এই কৌশলটি একটি গতিশীল ব্রেক-আউট ট্রেডিং সিস্টেম যা ব্রিনব্যান্ড এবং আরএসআই সূচকগুলির উপর ভিত্তি করে। এটি ব্রিনব্যান্ডের অস্থিরতা বিশ্লেষণকে আরএসআইয়ের গতিশীলতার সাথে একত্রিত করে একটি বিস্তৃত ট্রেডিং সিদ্ধান্ত গ্রহণের কাঠামো তৈরি করে। কৌশলটি বহুমুখী ট্রেডিং নিয়ন্ত্রণকে সমর্থন করে, বাজার পরিস্থিতির উপর নির্ভর করে বহুমুখী ট্রেডিংয়ের নমনীয় পছন্দ। সিস্টেমটি প্রতিটি ব্যবসায়ের স্টপ লস এবং লাভের লক্ষ্যকে সঠিকভাবে নিয়ন্ত্রণ করার জন্য ঝুঁকি-লাভের তুলনা ব্যবহার করে, ট্রেডিং পরিচালনার পদ্ধতিগতকরণ অর্জন করে।
কৌশলটির মূল নীতি হল একাধিক সংকেত নিশ্চিতকরণের মাধ্যমে উচ্চ সম্ভাব্যতাযুক্ত ব্যবসায়ের সুযোগগুলি চিহ্নিত করা।
এটি একটি যুক্তিসঙ্গত, যুক্তিসঙ্গতভাবে ডিজাইন করা ট্রেডিং কৌশল। একাধিক সংকেত স্বীকৃতি এবং উন্নত ঝুঁকি ব্যবস্থাপনা ব্যবস্থার মাধ্যমে কৌশলটি ভাল ব্যবহারযোগ্যতা রয়েছে। একই সাথে, কৌশলটি প্রচুর অপ্টিমাইজেশনের জায়গা সরবরাহ করে, যা নির্দিষ্ট ট্রেডিং জাত এবং বাজারের পরিবেশের উপর ভিত্তি করে লক্ষ্যবস্তু উন্নতি করতে পারে। রিয়েল-টাইমে ব্যবহারের আগে পর্যাপ্ত প্যারামিটার অপ্টিমাইজেশন এবং পুনর্বিবেচনার পরামর্শ দেওয়া হয়।
/*backtest
start: 2023-12-05 00:00:00
end: 2024-12-04 00:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Bollinger Breakout Strategy with Direction Control", overlay=true)
// === Input Parameters ===
length = input(20, title="Bollinger Bands Length")
src = close
mult = input(2.0, title="Bollinger Bands Multiplier")
rsi_length = input(14, title="RSI Length")
rsi_midline = input(50, title="RSI Midline")
risk_reward_ratio = input(2.0, title="Risk/Reward Ratio")
// === Trade Direction Option ===
trade_direction = input.string("Both", title="Trade Direction", options=["Long", "Short", "Both"])
// === Bollinger Bands Calculation ===
basis = ta.sma(src, length)
dev = mult * ta.stdev(src, length)
upper_band = basis + dev
lower_band = basis - dev
// === RSI Calculation ===
rsi_val = ta.rsi(src, rsi_length)
// === Breakout Conditions ===
// Long: Prijs sluit boven de bovenste Bollinger Band en RSI > RSI Midline
long_condition = close > upper_band and rsi_val > rsi_midline and (trade_direction == "Long" or trade_direction == "Both")
// Short: Prijs sluit onder de onderste Bollinger Band en RSI < RSI Midline
short_condition = close < lower_band and rsi_val < rsi_midline and (trade_direction == "Short" or trade_direction == "Both")
// === Entry Prices ===
var float entry_price_long = na
var float entry_price_short = na
if (long_condition)
entry_price_long := close
strategy.entry("Long", strategy.long, when=long_condition)
if (short_condition)
entry_price_short := close
strategy.entry("Short", strategy.short, when=short_condition)
// === Stop-Loss and Take-Profit ===
long_stop_loss = entry_price_long * 0.98 // 2% onder instapprijs
long_take_profit = entry_price_long * (1 + (0.02 * risk_reward_ratio))
short_stop_loss = entry_price_short * 1.02 // 2% boven instapprijs
short_take_profit = entry_price_short * (1 - (0.02 * risk_reward_ratio))
if (strategy.position_size > 0) // Long Positie
strategy.exit("Exit Long", "Long", stop=long_stop_loss, limit=long_take_profit)
if (strategy.position_size < 0) // Short Positie
strategy.exit("Exit Short", "Short", stop=short_stop_loss, limit=short_take_profit)
// === Plotting ===
plot(upper_band, color=color.green, title="Upper Band")
plot(lower_band, color=color.red, title="Lower Band")
plot(basis, color=color.blue, title="Basis")