تنگ مائلیج کی حکمت عملی


تخلیق کی تاریخ: 2023-09-14 16:59:35 آخر میں ترمیم کریں: 2023-09-14 16:59:35
کاپی: 0 کلکس کی تعداد: 677
1
پر توجہ دیں
1617
پیروکار

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

اس حکمت عملی میں این آر 7 (NR7) اور فاصلہ طے کرنے کے ساتھ وقت کا تعین کیا گیا ہے۔

ٹرانزیکشن کی منطق یہ ہے:

  1. این آر 7 کی شناخت کریں ، جو کہ کم سے کم قیمتوں کی حد میں سب سے کم قیمتوں کی حد ہے

  2. میل کی شناخت کریں ، یعنی پچھلے دن سے کم قیمت ، پچھلے دن سے کم قیمت

  3. جب این آر 7 اور میل ایک ہی دن ظاہر ہوتے ہیں اور اختتامی قیمت اوپن قیمت سے کم ہوتی ہے

  4. اور جب ہم اس کو نیچے کی طرف منتقل کرتے ہیں تو اس میں کچھ بھی نہیں ہوتا ہے

  5. جب اگلے ٹریڈنگ دن کی اختتامی قیمت کھلنے کی قیمت سے کم ہو تو ، پوزیشن کو ختم کردیں

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

اسٹریٹجک فوائد

  • تنگ فاصلے اور لمبائی نے فیصلہ کیا ہے کہ تبدیلی کا وقت کب ہے۔

  • غلط سگنل سے بچنے کے لئے شرط کا مجموعہ

  • منتخب کثیر خلائی آپریشن

اسٹریٹجک رسک

  • NR7 اور مسافت کا مجموعہ کم عام ہے

  • اوسط لائن پیرامیٹرز کو بہتر بنانے کی ضرورت ہے

  • صرف خالی جگہ پر کام کرنے سے زیادہ مواقع نہیں ملتے

خلاصہ کریں۔

اس حکمت عملی کو موثر طریقے سے ریورس شناخت اور توثیق کے ذریعہ خالی کردیا گیا ہے۔ تاہم ، اس حکمت عملی کی تاثیر کا اندازہ لگانے کے لئے کم تجارتی تعدد کی ضرورت ہے۔ اس حکمت عملی کو پیرامیٹرز کی اصلاح اور کثیر خلائی تجارت کے ذریعہ بڑھایا جاسکتا ہے۔

حکمت عملی کا ماخذ کوڈ
/*backtest
start: 2023-08-14 00:00:00
end: 2023-09-13 00:00:00
period: 4h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=2
strategy("NR7ID: Narrow Range + Inside Day, Short Only Strategy (by ChartArt)", shorttitle="CA_-_NR7ID_Short_Strat", overlay=true) // max_bars_back=5000


// ChartArt's Narrow Range + Inside Day Strategy (Short Only)
//
// Version 1.1
// Idea by ChartArt on Oktober 22, 2016.
//
// This short only strategy determines when there is both
// a NR7 (narrow range 7, a trading day in which the range
// is narrower than any of the previous six days), plus a
// inside day (high of the current day is lower than the high
// of the previous day and the low of the current day is higher
// than the low of the previous day) both on the same trading day
// and enters a short trade when the close is lower than the
// open and the slope of the simple moving average is downwards, too.
//
// The strategy exits the short trade next time the close is
// lower than the open in any of the next trading days.
//
// In addition the NR7ID can be colored (if close lower open
// colored in red, else in green) and the SMA can be drawn
// with a color based on the direction of the SMA slope.
//
// List of my work: 
// https://www.tradingview.com/u/ChartArt/
// 
//  __             __  ___       __  ___ 
// /  ` |__|  /\  |__)  |   /\  |__)  |  
// \__, |  | /~~\ |  \  |  /~~\ |  \  |  
// 
// 


// NR7 Identifier
show_NR7=input(true, type=bool,title="Show Narrow Range 7 (NR7) ?")
range=(high-low)
nr7=(range < range[1]) and (range < range[2]) and (range < range[3]) and (range < range[4]) and (range < range[5]) and (range < range[6])
plotchar(show_NR7?nr7:na, char="7", location=location.abovebar, color=blue)

// Inside Day Identifier
show_insidebar = input(true, type=bool,title="Show Inside Day (I) ?")
insidebar =  (high < high[1] and low > low[1])
plotchar(show_insidebar?insidebar:na, char="i", location=location.abovebar, color=blue)

// NR7 + Inside Day Identifier
show_NR7ID_bear = input(true, type=bool,title="Show NR7ID (NR7 + Inside Day) bear color ?")
NR7ID = nr7 and insidebar
NR7ID_bear_color = NR7ID and open > close ? red : na
barcolor(show_NR7ID_bear?NR7ID_bear_color:na)
show_NR7ID_bull = input(false, type=bool,title="Show NR7ID (NR7 + Inside Day) bull color ?")
NR7ID_bull_color = NR7ID and open < close ? green : na
barcolor(show_NR7ID_bull?NR7ID_bull_color:na)

// Simple Moving Average
show_ma = input(true, type=bool,title="Show SMA ?")
ma_length = input(14,title="SMA Length")
ma = sma(close,ma_length)
ma_change = change(ma) > 0
ma_change_color = change(ma) > 0 ? green : change(ma) < 0 ? red : blue
plot(show_ma?ma:na,color=ma_change_color,linewidth=3)

// Short Strategy: NR7 + Inside Day + close is smaller than open + change of SMA is downwards
strategy.entry("sell", strategy.short, when = NR7ID and open > close and ma_change == false, comment="Short")
strategy.close("sell", when = open > close )

// (not enabled) Long Strategy: NR7 + Inside Day + close is larger than open + change of SMA is upwards
//strategy.entry("long", strategy.long, when = NR7ID and open < close and ma_change == true, comment="Long")
//strategy.close("long", when = open < close )