SMA، EMA اور حجم پر مبنی سادہ رفتار حکمت عملی


تخلیق کی تاریخ: 2023-12-08 11:15:30 آخر میں ترمیم کریں: 2023-12-08 11:15:30
کاپی: 8 کلکس کی تعداد: 709
1
پر توجہ دیں
1621
پیروکار

SMA، EMA اور حجم پر مبنی سادہ رفتار حکمت عملی

جائزہ

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

حکمت عملی کا اصول

اس حکمت عملی کے لئے ٹریڈنگ Einty سگنل جنریشن کی منطق یہ ہے کہ: ایس ایم اے اشارے کو ای ایم اے اشارے سے زیادہ ملنے کے ساتھ ساتھ اور 3 مسلسل K لائنوں یا 4 مسلسل K لائنوں کے ساتھ ایک اوپر کی طرف رجحان پیدا ہوتا ہے ، اور درمیانی K لائن کی کم از کم قیمت اوپر کی طرف جانے والی K لائن کی اوپن قیمت سے زیادہ ہے جب ایک داخلہ سگنل پیدا ہوتا ہے۔

ایکسٹ سگنل جنریشن کی منطق یہ ہے: جب SMA اشارے کے نیچے ای ایم اے کوڈ کو عبور کرتے ہیں تو ایکسٹ سگنل پیدا ہوتا ہے۔

اس حکمت عملی میں صرف زیادہ ہیڈ ہوتے ہیں ، خالی ہیڈ نہیں ہوتے۔ اس کے اندراج اور خارجی منطق میں مسلسل اوپر کی طرف رجحانات کی کچھ شناخت کی صلاحیت ہے۔

طاقت کا تجزیہ

یہ حکمت عملی مندرجہ ذیل فوائد رکھتی ہے:

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

  2. عام طور پر استعمال ہونے والے تکنیکی اشارے جیسے SMA ، EMA اور حجم کے استعمال سے پیرامیٹرز کو ایڈجسٹ کرنے میں لچک؛

  3. اس کے نتیجے میں ، آپ کے پاس مسلسل اضافے کے رجحانات کی شناخت کرنے کی صلاحیت ہے ، جس سے آپ اس رجحان میں کچھ مواقع کا فائدہ اٹھا سکتے ہیں۔

خطرے کا تجزیہ

اس حکمت عملی میں مندرجہ ذیل خطرات بھی ہیں:

  1. اس کے علاوہ ، یہ بھی کہا گیا ہے کہ مارکیٹوں کو نیچے کی طرف جانے یا اس کی بحالی کی شناخت نہیں کی جاسکتی ہے ، جس سے بڑے پیمانے پر واپسی ہوسکتی ہے۔

  2. اس کے نتیجے میں ، اس طرح کی سرمایہ کاری کی وجہ سے ، سرمایہ کاروں کے لئے یہ ممکن نہیں ہے کہ وہ اپنے منافع کے مواقع کو ضائع کردیں ، اور اس طرح ، ان کے لئے یہ ممکن ہے کہ وہ اپنے منافع کے مواقع سے محروم رہیں۔

  3. ہائی فریکوئینسی کے اعداد و شمار کے لئے ٹرانزیکشن کی پیمائش کی کارکردگی خراب ہے، پیرامیٹرز کو ایڈجسٹ کرنے کی ضرورت ہے؛

  4. خطرے کو کنٹرول کرنے کے لئے سٹاپ نقصان کا استعمال کریں.

اصلاح کی سمت

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

  1. غیر ملکی تجارت کے مواقع کو بڑھانا ، غیر ملکی تجارت کے دو طرفہ تجارت کو زیادہ سے زیادہ کرنا ، اور کساد بازاری کے رجحانات کا فائدہ اٹھانا۔

  2. رجحانات کا تعین کرنے کی صلاحیت کو بہتر بنانے کے لئے جدید اشارے جیسے ایم اے سی ڈی ، آر ایس آئی اور دیگر کے ساتھ مل کر حکمت عملی کا استعمال کرنا۔

  3. اسٹاپ نقصان کی منطق کو بہتر بنانا اور واپسی کے خطرے کو کم کرنا۔

  4. پیرامیٹرز کو ایڈجسٹ کریں ، مختلف ادوار کے اعداد و شمار کی جانچ کریں ، بہترین پیرامیٹرز کا مجموعہ تلاش کریں۔

خلاصہ کریں۔

یہ حکمت عملی مجموعی طور پر ایک بہت ہی سادہ رجحان کی پیروی کرنے والی حکمت عملی ہے ، جس میں SMA ، EMA اور ٹرانزیکشن حجم کے اشارے کے ذریعہ داخلے کا وقت طے کیا جاتا ہے۔ اس کی خوبی یہ ہے کہ یہ سادہ اور آسان ہے ، ابتدائی سیکھنے کے لئے موزوں ہے ، لیکن اس میں استحکام اور کمی کے رجحانات کی نشاندہی نہیں کی جاسکتی ہے۔ اس میں کچھ خطرہ ہے۔

حکمت عملی کا ماخذ کوڈ
/*backtest
start: 2023-11-07 00:00:00
end: 2023-12-02 00:00:00
period: 2h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © slip_stream

//@version=4

// Simple strategy for riding the momentum and optimising the timings of truer/longer price moves upwards for an long posistions on a daily basis (can be used, but with less effect
// on other time frames. Volume settings would have to be adjusted by the user accordingly. (short positions are not used).
// This strategy has default settings of a short(er) SMA of 10, a long(er) EMA of 20, and Volume trigger of 10 units and above. All these settings can be changed by the user
// using the GUI settings and not having to change the script.

// The strategy will only open a long position when there is a clear indication that price momentum is upwards through the SMA moving and remaining above the EMA (mandatory) and price period indicators
// of either 1) a standard 3 bar movement upwards, 2) a standard but "aggressive" 3 or 4 bar play where the low of the middle resting bars can be equal to or higher than (i.e. not
// the more standard low of about half) of the opening of the ignition bar. The "aggression" of the 3/4 bar play was done in order to counteract the conservatisme of having a mandatory
// SMA remaining higher than the EMA (this would have to be changed in the script by the user if they want to optimise to their own specifications. However, be warned, all programmatic
// settings for the maximum acceptable low of the middle resting bars runs a risk of ignoring good entry points due to the low being minutely e.g. 0.01%, lower than the user defined setting)


strategy(title = "Simple Momentum Strategy Based on SMA, EMA and Volume", overlay = true, pyramiding = 1, initial_capital = 100000, currency = currency.USD)


// Obtain inputs
sma_length = input(defval = 10, minval=1, type = input.integer, title = "SMA (small length)")
ema_length = input(defval = 20,minval=1, type = input.integer, title = "EMA (large length)")
volume_trigger = input(defval = 10, title = "Volume Trigger", type = input.integer)
sma_line = sma(close, sma_length)
ema_line = ema(close, ema_length)


// plot SMA and EMA lines with a cross for when they intersect
plot(sma_line, color = #8b0000, title = "SMA")
plot(ema_line, color = #e3d024, title = "EMA")
plot(cross(sma_line, ema_line) ? sma_line : na, style = plot.style_cross, linewidth = 4, color = color.white)


// Create variables
// variables to check if trade should be entered
//three consecutive bar bar moves upwards and volume of at least one bar is more than 10
enter_trade_3_bar_up = sma_line > ema_line and close[1] >= close [2] and close[3] >= close[4] and close[2] >= close[3] and (volume[1] >= volume_trigger or volume[2] >= volume_trigger or volume[3] >= volume_trigger)
// aggressive three bar play that ensures the low of the middle bar is equal to or greater than the open of the instigator bar. Volume is not taken into consideration (i.e. aggressive/risky)
enter_3_bar_play = sma_line > ema_line and close[1] > close[3] and low[2] >= open[3]
// aggressive four bar play similar to the 3 bar play above
enter_4_bar_play = sma_line > ema_line and close[1] > close[4] and low[2] >= open[4]
trade_entry_criteria = enter_trade_3_bar_up or enter_3_bar_play or enter_4_bar_play // has one of the trade entry criterias returned true?

// exit criteria for the trade: when the sma line goes under the ema line
trade_exit_criteria = crossunder (sma_line, ema_line)


if (year >= 2019)
    strategy.entry(id = "long", long = true, qty = 1, when = trade_entry_criteria)
    strategy.close(id = "long", when = trade_exit_criteria, qty = 1)
    // for when you want to brute force close all open positions: strategy.close_all (when = trade_exit_criteria)