
এটি একটি বুদ্ধিমান ট্রেডিং কৌশল যা ব্রেকআউট কাঠামো (BOS) এবং ট্রেডিং ভলিউম নিশ্চিতকরণের উপর ভিত্তি করে। এই কৌশলটি মূল্যের পূর্ববর্তী উচ্চতা বা নিম্নতা অতিক্রম করে এবং ট্রেডিং ভলিউমকে সংযুক্ত করে একটি ট্রেডিং সংকেত তৈরি করে। এই কৌশলটি একাধিক শর্তাধীন যাচাইকরণ ব্যবস্থা গ্রহণ করে, যার মধ্যে ধারাবাহিকভাবে নিশ্চিতকরণের সংখ্যা এবং গতিশীল স্টপ লস সেটিং অন্তর্ভুক্ত রয়েছে, যাতে লেনদেনের নির্ভরযোগ্যতা এবং ঝুঁকি নিয়ন্ত্রণের ক্ষমতা বৃদ্ধি পায়।
কৌশলটির মূল যুক্তিতে নিম্নলিখিত মূল উপাদানগুলি অন্তর্ভুক্ত রয়েছে:
এটি একটি কৌশলগত ব্যবস্থা যা প্রযুক্তিগত বিশ্লেষণের ক্লাসিক তত্ত্ব এবং আধুনিক পরিমাণগত ট্রেডিং পদ্ধতির সমন্বয় করে। একাধিক শর্তাবলী যাচাইকরণ এবং কঠোর ঝুঁকি নিয়ন্ত্রণের মাধ্যমে কৌশলটি ভাল স্থায়িত্ব এবং নির্ভরযোগ্যতা রয়েছে। যদিও কিছু দিক রয়েছে যা অপ্টিমাইজ করার প্রয়োজন রয়েছে, তবে সামগ্রিক কাঠামোটি যুক্তিসঙ্গতভাবে ডিজাইন করা হয়েছে এবং এর ভাল যুদ্ধের ব্যবহারের মূল্য রয়েছে। প্রস্তাবিত অপ্টিমাইজেশনের দিকনির্দেশের মাধ্যমে কৌশলটির কার্যকারিতা আরও বাড়ানো যেতে পারে।
/*backtest
start: 2019-12-23 08:00:00
end: 2024-12-18 08:00:00
period: 1d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("BOS and Volume Strategy with Confirmation", overlay=true)
// Parameters
swingLength = input.int(20, title="Swing Length", minval=1)
volumeMultiplier = input.float(1.1, title="Volume Multiplier", step=0.1)
volumeSMA_length = input.int(10, title="Volume SMA Length", minval=1)
takeProfitPercentage = input.float(0.02, title="Take Profit Percentage", step=0.01)
stopLossPercentage = input.float(0.15, title="Stop Loss Percentage", step=0.01) // New parameter for stop loss
atrLength = input.int(14, title="ATR Length")
confirmationBars = input.int(2, title="Confirmation Bars", minval=1)
// Calculate Swing Highs and Lows
swingHigh = ta.highest(high, swingLength)[1]
swingLow = ta.lowest(low, swingLength)[1]
// Calculate Volume Moving Average
volumeSMA = ta.sma(volume, volumeSMA_length)
highVolume = volume > (volumeSMA * volumeMultiplier)
// Break of Structure Detection with Confirmation
var int bullishCount = 0
var int bearishCount = 0
if (close > swingHigh and highVolume)
bullishCount := bullishCount + 1
bearishCount := 0
else if (close < swingLow and highVolume)
bearishCount := bearishCount + 1
bullishCount := 0
else
bullishCount := 0
bearishCount := 0
bullishBOSConfirmed = (bullishCount >= confirmationBars)
bearishBOSConfirmed = (bearishCount >= confirmationBars)
// Entry and Exit Conditions
var float entryPrice = na // Declare entryPrice as a variable
if (bullishBOSConfirmed and strategy.position_size <= 0)
entryPrice := close // Use ':=' for assignment
strategy.entry("Long", strategy.long)
if (strategy.position_size > 0)
// Calculate stop loss price
stopLossPrice = entryPrice * (1 - stopLossPercentage)
strategy.exit("Take Profit Long", from_entry="Long", limit=entryPrice * (1 + takeProfitPercentage), stop=stopLossPrice)
if (bearishBOSConfirmed and strategy.position_size >= 0)
entryPrice := close // Use ':=' for assignment
strategy.entry("Short", strategy.short)
if (strategy.position_size < 0)
// Calculate stop loss price
stopLossPrice = entryPrice * (1 + stopLossPercentage)
strategy.exit("Take Profit Short", from_entry="Short", limit=entryPrice * (1 - takeProfitPercentage), stop=stopLossPrice)
// Plot Swing Highs and Lows for Visualization
plot(swingHigh, title="Swing High", color=color.green, linewidth=1)
plot(swingLow, title="Swing Low", color=color.red, linewidth=1)