
“قیمت میں خرابی کی خریداری کی حکمت عملی” ایک تجارتی حکمت عملی ہے جس کا مقصد خریداری کے مواقع کی نشاندہی کرنا ہے۔ اس حکمت عملی میں پہلے قیمتوں اور حجم کی جانچ پڑتال کے لئے ونڈوز کے طور پر مخصوص تعداد میں سلاخوں کا استعمال کیا جاتا ہے۔ ان اقدار کو توڑنے کی شرائط کی نشاندہی کرنے کے لئے بیس لائن کے طور پر استعمال کیا جاتا ہے۔ تجارت اس وقت شروع ہوتی ہے جب اختتامی قیمت اور حجم دونوں ایک مقررہ ونڈو کے اندر مشاہدہ کی جانے والی زیادہ سے زیادہ قیمت سے زیادہ ہوں۔ قیمتوں کو ایک مقررہ حرکت پذیری اوسط سے اوپر ہونا چاہئے ، رجحان کے اشارے کے طور پر ، اس بات کو یقینی بنانا کہ تمام تجارتیں مرکزی دھارے کی مارکیٹ کے رجحانات کے مطابق ہوں۔
“قیمت میں خرابی خریدنے کی حکمت عملی” ایک رجحان سے باخبر رہنے کی حکمت عملی ہے جو انتہائی اتار چڑھاؤ والی مارکیٹوں کے لئے موزوں ہے۔ قیمت اور حجم کو ایک ساتھ مدنظر رکھتے ہوئے ، اور طویل مدتی SMA کو رجحان کے فلٹر کے طور پر جوڑ کر ، یہ حکمت عملی مضبوط حالات میں تجارت کے مواقع کو بہتر طور پر پکڑ سکتی ہے۔ تاہم ، یہ حکمت عملی غیر واضح رجحانات یا کم اتار چڑھاؤ والی مارکیٹوں میں خراب کارکردگی کا مظاہرہ کرسکتی ہے ، اور اس میں بار بار تجارت کا خطرہ ہوسکتا ہے۔ لہذا ، عملی استعمال میں ، اس حکمت عملی کو مختلف مارکیٹ کی خصوصیات اور انفرادی تجارتی طرز کے مطابق مناسب اصلاح اور موافقت کی ضرورت ہے تاکہ اس کی استحکام اور منافع بخش صلاحیت کو بہتر بنایا جاسکے۔
/*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)