رجحان ٹریکنگ الٹ حکمت عملی

مصنف:چاؤ ژانگ، تاریخ: 2024-01-16 14:44:35
ٹیگز:

img

جائزہ

ٹرینڈ ٹریکنگ ریورسنگ حکمت عملی 15 منٹ کے این کیو فیوچر پر مبنی ایک قلیل مدتی ٹرینڈ ٹریڈنگ حکمت عملی ہے۔ یہ ٹرینڈ فلٹرنگ اور ریورس پیٹرن کی شناخت کے ذریعے تجارتی مواقع کی نشاندہی کرتی ہے۔ یہ آسان لیکن موثر حکمت عملی فعال قلیل مدتی تاجروں کے لئے موزوں ہے۔

حکمت عملی منطق

یہ حکمت عملی بنیادی طور پر مندرجہ ذیل اصولوں پر کام کرتی ہے:

  1. ای ایم اے کے اوپر طویل سگنل اور ای ایم اے کے نیچے مختصر سگنل کے ساتھ 8 مدت کے ای ایم اے کو مرکزی رجحان فلٹر کے طور پر استعمال کریں۔

  2. انٹری سگنل کے طور پر شمعدان کے مخصوص الٹ پیٹرن کی نشاندہی کریں ، بشمول لمبی سبز موم بتیاں جن کے بعد لمبی سگنل کے لئے مختصر سرخ موم بتیاں ہوتی ہیں ، اور لمبی سرخ موم بتیاں جن کے بعد مختصر سبز موم بتیاں ہوتی ہیں۔ یہ پیٹرن ممکنہ رجحان کی تبدیلی کی تجویز کرتے ہیں۔

  3. انٹری پوائنٹس ریورس موم بتی کے اعلی / کم کے قریب مقرر کیے جاتے ہیں ، اسٹاپ نقصان کی سطح خود ریورس موم بتی کے اعلی / کم پر ہوتی ہے ، جس سے موثر رسک / انعام کے تناسب کی اجازت ہوتی ہے۔

  4. موم بتی کے تعلقات کے قواعد کا استعمال کرتے ہوئے الٹ سگنل کی توثیق کریں۔ مثال کے طور پر ، سرخ موم بتی کی کھلی قیمت آخری سبز موم بتی کے جسم سے اوپر ہے ، شور کو فلٹر کرنے کے لئے جسم مکمل طور پر گلے لگ جاتا ہے وغیرہ۔

  5. صرف مخصوص ٹریڈنگ اوقات کے دوران حکمت عملی کا استعمال کریں ، غیر معمولی قیمت کی حرکت سے غیر ضروری نقصانات سے بچنے کے ل major بڑے معاہدے کے رول اوور وغیرہ کے ارد گرد اتار چڑھاؤ کے ادوار سے گریز کریں۔

فوائد کا تجزیہ

اس حکمت عملی کے اہم فوائد میں شامل ہیں:

  1. سادہ اور موثر سگنل منطق جو سمجھنے اور عمل میں لانا آسان ہے۔

  2. رجحان اور الٹ کی بنیاد پر، بھونکنے والے بیل اور ریچھ کی منڈیوں کی طرف سے whipssaws سے بچنے.

  3. سرمایہ کی حفاظت کے لئے معقول سٹاپ نقصان کی جگہ کے ساتھ اچھا خطرہ کنٹرول.

  4. کم اعداد و شمار کی ضروریات مختلف پلیٹ فارمز اور ٹولز کو فٹ کرتی ہیں۔

  5. اعلی تجارتی تعدد فعال قلیل مدتی تجارتی طرز کے مطابق ہے.

خطرات اور حل

کچھ خطرات ہیں جن کا نوٹ کرنا ضروری ہے:

  1. ناکافی واپسی کے مواقع اور محدود سگنل۔ زیادہ سگنل کی اجازت دینے کے لئے واپسی کے معیار کو نرم کریں۔

  2. کبھی کبھار جھوٹے فرار. مجموعی منطق کے لئے مزید فلٹرز شامل کریں.

  3. راتوں رات اور غیر اہم سیشنوں میں اتار چڑھاؤ۔ امریکی ٹریڈنگ کے اوقات تک حکمت عملی کی کارروائی کو محدود کریں۔

  4. محدود اصلاح کی لچک۔ بہتر پیرامیٹر ٹیوننگ کے لئے مشین لرننگ پر غور کریں۔

بہتر مواقع

اصلاح کے لئے گنجائش ہے:

  1. رجحان کی تعریف کو بہتر بنانے کے لئے طویل عرصے سے EMA کی جانچ کریں.

  2. ایکویٹی انڈیکس فلٹرز کو اضافی رجحان فلٹرز کے طور پر شامل کریں۔

  3. آٹو ٹون انٹری اور سٹاپ نقصان کی سطح کے لئے مشین سیکھنے کی تکنیک کا استعمال کریں.

  4. اتار چڑھاؤ سے ایڈجسٹ پوزیشن سائزنگ اور متحرک اسٹاپ متعارف کروانا۔

  5. ایک ہی اثاثہ کے نظام کے خطرات کو متنوع کرنے کے لئے کراس اثاثہ اربیٹریج کا جائزہ لیں۔

نتیجہ

ٹرینڈ ٹریکنگ ریورس اسٹریٹیجی ایک بہت ہی عملی قلیل مدتی حکمت عملی کا فریم ورک پیش کرتی ہے جس کو محدود پیرامیٹرز اور اچھے ذاتی رسک کنٹرول کے ساتھ نافذ کرنا آسان ہے۔ یہ ڈے ٹریڈنگ فورموں پر فعال قلیل مدتی تاجروں کے لئے موزوں ہے۔ مزید تحقیق و ترقی کے ساتھ ، یہ درمیانی اور طویل مدتی الگورتھمک ٹریڈنگ کے لئے ممکنہ طور پر قابل اطلاق ہوسکتا ہے ، جس سے مضبوط استرتا اور ترقی کی صلاحیت کا مظاہرہ ہوتا ہے۔


/*backtest
start: 2023-12-01 00:00:00
end: 2023-12-31 23:59:59
period: 3h
basePeriod: 15m
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/
// © bdrex95

//@version=5

// Rob Reversal Strategy - Official
// Using Rob Reversal Indicator: Original
// Description
// This indicator is based on the strategy created by Trader Rob on the NQ 15m chart.
// 
// Timeframe for trading is 8:30am-1:15pm Central.
// 
// Above the EMA line, look for a long position. You will have a short candle, then a long candle that opens below the short candle. It will have a lower high and a lower low. Once the long candle closes, your entry will be 1 tick above the wick (green line) and stop loss will be at the bottom of the bottom wick (red line).
// 
// Below the EMA line, look for a short position. You will have a long candle, then a short candle that opens above the long candle. It will have a higher high and a higher low. Once the short candle closes, your entry will be 1 tick below the wick (green line) and stop loss will be at the top of the top wick (red line).
//

strategy("Trader Rob Reversal Strategy NQ 15min", shorttitle="Official Rob Rev Strat", overlay=true)


//--- Session Input ---
sess = input(defval = "0930-1415", title="Trading Session")
t = time(timeframe.period, sess)
sessionOpen = na(t) ? false : true

flat_time = input(defval = "1515-1558", title="Close All Open Trades")
ft = time(timeframe.period, flat_time)
flatOpen = na(ft) ? false : true


// Calculate start/end date and time condition
startDate = input(timestamp('2018-12-24T00:00:00'),group = "ALL STRATEGY SETTINGS BELOW")
finishDate = input(timestamp('2029-02-26T00:00:00'),group = "ALL STRATEGY SETTINGS BELOW")
time_cond = true


emaColor = input.color(color.orange, title="EMA Color")
emaLength = input.int(8, title="EMA Length")


emaInd = ta.ema(close, emaLength)


rr = input(1.0,"Enter RR",group = "TP/SL CONDITION INPUTS HERE")


sellShapeInput = input.string("Arrow", title="Sell Entry Shape", options=["Arrow", "Triangle"])
buyShapeInput = input.string("Arrow", title="Buy Entry Shape", options=["Arrow", "Triangle"])


sellShapeOption = switch sellShapeInput
    "Arrow" => shape.arrowdown
    "Triangle" => shape.triangledown
   
buyShapeOption = switch buyShapeInput
    "Arrow" => shape.arrowup
    "Triangle" => shape.triangleup


O = open
C = close
H = high
L = low


sellEntry = (C[1] > O[1]) and (C < O) and (H[1] < H) and (C < H[1]) and (C > L[1]) and (L > L[1]) and (C < emaInd) and sessionOpen and time_cond
buyEntry = (C[1] < O[1]) and (C > O) and (H[1] > H) and (L[1] > L) and (C < H[1]) and (C > L[1]) and (C > emaInd) and sessionOpen and time_cond


sellEntry_index = ta.valuewhen(sellEntry,bar_index,0)
sellEntry_hi = ta.valuewhen(sellEntry,high,0)
sellEntry_low = ta.valuewhen(sellEntry,low,0)
buyEntry_index = ta.valuewhen(buyEntry,bar_index,0)
buyEntry_hi = ta.valuewhen(buyEntry,high,0)
buyEntry_lo = ta.valuewhen(buyEntry,low,0)


plotshape(buyEntry, color = color.green, location = location.belowbar, style = buyShapeOption, size = size.small)
plotshape(sellEntry, color = color.red, location = location.abovebar, style = sellShapeOption, size = size.small)
plot(emaInd, color=emaColor)


// Risk Management
entry_price_long = (buyEntry_hi + syminfo.mintick)
entry_price_short = (sellEntry_low - syminfo.mintick)
long_sl_price = (buyEntry_lo-syminfo.mintick)
short_sl_price = (sellEntry_hi + syminfo.mintick)
long_tp_price = ((entry_price_long - long_sl_price)*rr) + entry_price_long
short_tp_price = entry_price_short - ((short_sl_price - entry_price_short)*rr)


long_sl_ticks = (entry_price_long - long_sl_price) / syminfo.mintick
short_sl_ticks = (short_sl_price - entry_price_short) / syminfo.mintick


long_tp_ticks = (long_tp_price - entry_price_long) / syminfo.mintick
short_tp_ticks = (entry_price_short - short_tp_price) / syminfo.mintick


// Positions
if (buyEntry)
    strategy.entry("Long", strategy.long,stop = H + syminfo.mintick)
if strategy.position_size > 0
    strategy.exit("Long Ex","Long", loss = long_sl_ticks, profit = long_tp_ticks, comment_loss = "SL Long", comment_profit = "TP Long")


if (sellEntry)
    strategy.entry("Short", strategy.short,stop = L - syminfo.mintick)
if strategy.position_size < 0
    strategy.exit("Short Ex","Short",loss = short_sl_ticks, profit = short_tp_ticks, comment_loss = "SL Short", comment_profit = "TP Short")


// Cancel order if close beyond ema
if (C < emaInd)
    strategy.cancel("Long")


if (C > emaInd)
    strategy.cancel("Short")


// Go flat at close (for futures funded account)
if strategy.position_size > 0 and flatOpen
    strategy.close_all(comment = "EOD Flat")
if strategy.position_size < 0 and flatOpen
    strategy.close_all(comment = "EOD Flat")
 
//END

مزید