
“প্রাইস ব্রেক-আপ বা ক্রয়-বিক্রয় কৌশল” একটি ট্রেডিং কৌশল যা ক্রয়-বিক্রয় সুযোগগুলি সনাক্ত করার উদ্দেশ্যে তৈরি করা হয়। এই কৌশলটি প্রথমে নির্দিষ্ট সংখ্যক স্ট্রিংকে মূল্য এবং লেনদেনের পরিমাণের জন্য একটি পরীক্ষা উইন্ডো হিসাবে ব্যবহার করে। এই মানগুলি একটি ব্রেক-আপ শর্তগুলি সনাক্ত করার জন্য একটি বেঞ্চমার্ক হিসাবে ব্যবহৃত হয়। যখন ক্লোজ-আপ মূল্য এবং লেনদেনের পরিমাণ উভয়ই পূর্বাভাস উইন্ডোতে সর্বাধিক মানের চেয়ে বেশি হয়, তখন লেনদেন শুরু হয়। দামগুলি অবশ্যই একটি নির্দিষ্ট চলমান গড়ের চেয়ে বেশি হতে হবে, একটি ট্রেন্ডিং সূচক হিসাবে, সমস্ত লেনদেন মূলধারার বাজারের প্রবণতাগুলির সাথে সামঞ্জস্যপূর্ণ তা নিশ্চিত করার জন্য।
“প্রাইস ব্রেক-আপ বাপ-ইন স্ট্র্যাটেজি” একটি প্রবণতা-অনুসরণ কৌশল যা উচ্চ অস্থিরতার বাজারে প্রয়োগ করা হয়। দাম এবং লেনদেনের পরিমাণ উভয়ই বিবেচনা করে এবং প্রবণতা ফিল্টার হিসাবে দীর্ঘমেয়াদী এসএমএর সাথে মিলিত হয়ে এই কৌশলটি শক্তিশালী পরিস্থিতিতে ব্যবসায়ের সুযোগকে আরও ভালভাবে ধরতে পারে। তবে, এই কৌশলটি প্রবণতা অস্পষ্ট বা কম অস্থিরতার বাজারে দুর্বল হতে পারে এবং ঘন ঘন ব্যবসায়ের ঝুঁকিতে পড়তে পারে। সুতরাং, বাস্তব ব্যবহারে, বিভিন্ন বাজারের বৈশিষ্ট্য এবং ব্যক্তিগত ট্রেডিং শৈলীর উপর ভিত্তি করে এই কৌশলটির যথাযথ অপ্টিমাইজেশন এবং সমন্বয় করা প্রয়োজন যাতে এর স্থায়িত্ব এবং লাভজনকতা বাড়ানো যায়।
/*backtest
start: 2023-05-11 00:00:00
end: 2024-05-16 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © tradedots
//@version=5
strategy("Price and Volume Breakout Buy Strategy [TradeDots]", overlay=true, initial_capital = 10000, default_qty_type = strategy.percent_of_equity, default_qty_value = 70, commission_type = strategy.commission.percent, commission_value = 0.01)
input_price_breakout_period = input.int(60, "Price Breakout Period")
input_volume_breakout_period = input.int(60, "Volume Breakout Period")
input_trendline_legnth = input.int(200, "Trendline Length")
input_order_direction = input.string("Long", options = ["Long", "Short", "Long and Short"], title = "Order Direction")
price_highest = ta.highest(input_price_breakout_period)
price_lowest = ta.lowest(input_price_breakout_period)
volume_highest = ta.highest(volume, input_volume_breakout_period)
// Long Orders
if close > price_highest[1] and volume > volume_highest[1] and close > ta.sma(close, input_trendline_legnth) and strategy.opentrades == 0 and input_order_direction != "Short"
strategy.entry("Long", strategy.long)
// line.new(bar_index[input_price_breakout_period], price_highest[1], bar_index, price_highest[1], color = #9cff87, width = 2)
// label.new(bar_index,low, "🟢 Breakout Buy", style = label.style_label_up, color = #9cff87)
// Close when price is below moving average for 5 consecutive days
if close < ta.sma(close, input_trendline_legnth) and close[1] < ta.sma(close, input_trendline_legnth) and close[2] < ta.sma(close, input_trendline_legnth) and close[3] < ta.sma(close, input_trendline_legnth) and close[4] < ta.sma(close, input_trendline_legnth) and strategy.opentrades.size(strategy.opentrades - 1) > 0
strategy.close("Long")
// label.new(bar_index, high, "🔴 Close Position", style = label.style_label_down, color = #f9396a, textcolor = color.white)
// Short Orders
if close < price_lowest[1] and volume > volume_highest[1] and close < ta.sma(close, input_trendline_legnth) and strategy.opentrades == 0 and input_order_direction != "Long"
strategy.entry("Short", strategy.short)
// line.new(bar_index[input_price_breakout_period], price_lowest[1], bar_index, price_lowest[1], color = #f9396a, width = 2)
// label.new(bar_index,high , "🔴 Breakout Sell", style = label.style_label_down, color = #f9396a, textcolor = color.white)
// Close when price is above moving average for 5 consecutive days
if close > ta.sma(close, input_trendline_legnth) and close[1] > ta.sma(close, input_trendline_legnth) and close[2] > ta.sma(close, input_trendline_legnth) and close[3] > ta.sma(close, input_trendline_legnth) and close[4] > ta.sma(close, input_trendline_legnth) and strategy.opentrades.size(strategy.opentrades - 1) < 0
strategy.close("Short")
// label.new(bar_index, low, "🟢 Close Position", style = label.style_label_up, color = #9cff87)
plot(ta.sma(close, input_trendline_legnth), color = color.white, linewidth = 2)
plotcandle(open, high, low, close, title='Candles', color = (close > ta.sma(close, input_trendline_legnth) ? #9cff87 : #f9396a), wickcolor=(close > ta.sma(close, input_trendline_legnth) ? #9cff87 : #f9396a), force_overlay = true)