ملٹی انڈیکیٹر کمبو ٹریڈنگ حکمت عملی

مصنف:چاؤ ژانگ، تاریخ: 2023-09-13 12:18:05
ٹیگز:

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

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

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

  2. RSI اور اسٹوکاسٹکس کا حساب زیادہ خرید/زیادہ فروخت کی سطحوں کے لئے لگائیں۔

  3. جب ای ایم اے بول سگنل دیتے ہیں تو طویل عرصے تک داخل کریں، آر ایس آئی زیادہ نہیں ہے اور اسٹاک زیادہ نہیں ہے.

  4. مختصر میں داخل ہوں جب EMAs bear سگنل دیتے ہیں، RSI oversold نہیں ہے اور اسٹاک oversold نہیں ہے۔

  5. باہر نکلیں جب کسی بھی اشارے مخالف سگنل دیتا ہے.

فوائد:

  1. کثیر اشارے کی تصدیق سے درستگی میں اضافہ ہوتا ہے۔

  2. مارکیٹ کی بہتر تشخیص کے لئے اشارے ایک دوسرے کی تکمیل کرتے ہیں۔

  3. واضح تجارتی قواعد بیک ٹسٹنگ اور عمل درآمد کو آسان بناتے ہیں۔

خطرات:

  1. اشارے کے مابین ضرورت سے زیادہ بے کار ہونے سے گریز کریں۔

  2. پیچیدہ کثیر اشارے کی اصلاح.

  3. زیادہ اشارے ضروری نہیں کہ کارکردگی کو بہتر بنائیں۔

خلاصہ یہ کہ کثیر اشارے کا نقطہ نظر فیصلوں کو کسی حد تک بہتر بنا سکتا ہے لیکن اس میں آسان اور قابل اعتماد حکمت عملیوں کے لئے اصلاح کی مشکل اور بے کارگی کو متوازن کرنے کی ضرورت ہے۔


/*backtest
start: 2022-09-06 00:00:00
end: 2023-09-12 00:00:00
period: 3d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=5
// strategy(title='Combined Strategy', default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=.0020, pyramiding=0, slippage=3, overlay=true)

//----------//
// MOMENTUM //
//----------//
ema8 = ta.ema(close, 5)
ema13 = ta.ema(close, 9)
ema21 = ta.ema(close, 13)
ema34 = ta.ema(close, 21)
ema55 = ta.ema(close, 34)

plot(ema8, color=color.new(color.red, 0), style=plot.style_line, title='5', linewidth=1)
plot(ema13, color=color.new(color.orange, 0), style=plot.style_line, title='9', linewidth=1)
plot(ema21, color=color.new(color.yellow, 0), style=plot.style_line, title='13', linewidth=1)
plot(ema34, color=color.new(color.aqua, 0), style=plot.style_line, title='21', linewidth=1)
plot(ema55, color=color.new(color.lime, 0), style=plot.style_line, title='34', linewidth=1)

longEmaCondition = ema8 > ema13 and ema13 > ema21 and ema21 > ema34 and ema34 > ema55
exitLongEmaCondition = ema13 < ema55

shortEmaCondition = ema8 < ema13 and ema13 < ema21 and ema21 < ema34 and ema34 < ema55
exitShortEmaCondition = ema13 > ema55

// ----------  //
// OSCILLATORS //
// ----------- //
rsi = ta.rsi(close, 14)
longRsiCondition = rsi < 70 and rsi > 40
exitLongRsiCondition = rsi > 70

shortRsiCondition = rsi > 30 and rsi < 60
exitShortRsiCondition = rsi < 30

Stochastic
length = 14, smoothK = 3, smoothD = 3
kFast = ta.stoch(close, high, low, 14)
dSlow = ta.sma(kFast, smoothD)

longStochasticCondition = kFast < 80
exitLongStochasticCondition = kFast > 95

shortStochasticCondition = kFast > 20
exitShortStochasticCondition = kFast < 5

//----------//
// STRATEGY //
//----------//

longCondition = longEmaCondition and longRsiCondition and longStochasticCondition and strategy.position_size == 0
exitLongCondition = (exitLongEmaCondition or exitLongRsiCondition or exitLongStochasticCondition) and strategy.position_size > 0

if (longCondition)
  strategy.entry("LONG", strategy.long)
if (exitLongCondition)
  strategy.close("LONG")

shortCondition = shortEmaCondition and shortRsiCondition and shortStochasticCondition and strategy.position_size == 0
exitShortCondition = (exitShortEmaCondition or exitShortRsiCondition or exitShortStochasticCondition) and strategy.position_size < 0

if (shortCondition)
  strategy.entry("SHORT", strategy.short)
if (exitShortCondition)
  strategy.close("SHORT")



مزید