يمكن للشخص الرجاء مساعدتي مع هذا الرمز. . . .
Results 1 to 5 of 5

Thread: يمكن للشخص الرجاء مساعدتي مع هذا الرمز. . . .

  1. #1
    اهلا ياجماعة،

    يمكن للشخص الرجاء مساعدتي مع هذا.

    عندما يتم استيفاء الشرط لتنبيه التنبيه ، فإنه يستمر في الظهور كل بضع ثوانٍ لفترة الشريط. أركض هذا على جداول ساعة واحدة لكنه يستمر في فرض نافذة التنبيه على المنبثقة.

    أيضا ، إذا كان بإمكاني وقف ظهوره (حتى أنا فقط أبلغت مرة واحدة) هل إعادة تعيين التنبيه حتى إذا تم تشغيله في 3 أشرطة الوقت إذا كان الشرط هو الصحيح مرة أخرى.

    إذا كان أي شخص قادر على المساعدة سأكون ممتنا له.

    مع تحياتي
    ستيف



    // ----------------------------------------------- -------------------
    //| My_First_Indior.mq4 |
    //|
    http://www.forex-tsd.com|
    // ----------------------------------------------- -------------------
    # property حقوق الطبع والنشر ستيف داوسون
    #property indior_separate_window
    #property indior_buffers 2
    #property indior_color1 Red
    #property indior_color2 Green
    //---- مخازن
    double ExtMapBuffer1 []؛
    double ExtMapBuffer2 []؛
    bool buf_alert_already_triggered؛
    // ----------------------------------------------- -------------------
    //| وظيفة التهيئة مؤشر مخصص
    // ----------------------------------------------- -------------------
    int init ()
    {
    //---- المؤشرات
    SetIndexStyle (0، DRAW_HISTOGRAM، EMPTY، 3)؛
    SetIndexBuffer (0، ExtMapBuffer1)؛
    SetIndexStyle (1، DRAW_HISTOGRAM، EMPTY، 3)؛
    SetIndexBuffer (1، ExtMapBuffer2)؛
    string short_name = MAX - OBOS Histogram with Alerts !؛
    IndiorShortName (SHORT_NAME)؛
    عودة (1)؛
    }
    // ----------------------------------------------- -------------------
    //| وظيفة إلغاء مؤشر Custor
    // ----------------------------------------------- -------------------
    int deinit ()
    {
    //----
    //----
    عودة (0)؛
    }
    // ----------------------------------------------- -------------------
    //| وظيفة التكرار مؤشر مخصص
    // ----------------------------------------------- -------------------
    بداية int ()
    {
    int counted_bars = IndiorCounted ()؛
    //---- تحقق من وجود أخطاء محتملة
    إذا (counted_barslt؛ 0) return (-1)؛
    ///---- سيتم حساب آخر شريط عد
    إذا (counted_barsgt؛ 0) counted_bars--؛
    int pos = Bars-counted_bars؛
    double dVal، dLow، dResult، value؛
    تعليق (مرحبًا! أنا هنا على نوافذ المخطط الرئيسي!) ؛
    //---- حلقة الحساب الرئيسية لتحميل ArrayBsearch
    بينما (posgt؛ = 0)
    {
    dVal = iCustom (NULL، 0، J_TPO، 13،0، pos)؛
    إذا (dVal gt؛ 0)
    {
    dResult = 1 ؛
    }
    آخر
    {
    dResult = -1؛
    }

    //هذا هو المكان الذي يتم فيه تعيين اللون
    إذا (dResult == 1)
    {
    ExtMapBuffer2 [pos] = dResult؛
    }
    آخر
    {
    ExtMapBuffer1 [pos] = dResult؛
    }



    //ExtMapBuffer1 [pos] = dResult؛
    pos = pos - 1؛
    }
    //الآن يتم تحميل العازلة

    //هل التنبيه شيء الآن
    if ((((ExtMapBuffer1 [0] == 1) || (ExtMapBuffer2 [0] == 1)) ((ExtMapBuffer1 [1] == -1) || (ExtMapBuffer2 [1] == -1))) (buf_alert_already_triggered == 0))
    {
    تنبيه (شراء محتمل ، الرمز () ، على ، فترة () ، مخطط!) ؛
    buf_alert_already_triggered = 1؛
    آخر
    {
    buf_alert_already_triggered = 0؛
    }

    if ((((ExtMapBuffer1 [0] == -1) || (ExtMapBuffer2 [0] == -1)) ((ExtMapBuffer1 [1] == 1)) || (ExtMapBuffer2 [1] == 1)) (buf_alert_already_triggered == 0))
    {
    تنبيه (ممكن بيع ، الرمز () ، على ، فترة () ، الرسم البياني!) ؛
    buf_alert_already_triggered = 1؛
    آخر
    {
    buf_alert_already_triggered = 0؛
    }
    //----
    عودة (0)؛
    }
    // ----------------------------------------------- -------------------

  2. #2
    هذا الجزء يعيده إلى 0} آخر {buf_alert_already_triggered = 0؛ } تحتاج إلى تغيير ذلك

  3. #3
    شكرا توم انه يعمل بشكل جيد الآن. سؤال واحد آخر إذا كنت لا تمانع. إذا كان في الحالتين 10 في القضبان يفترض أن يتم إطلاق التنبيه مرة أخرى ما الذي سيحدث؟ هل تتم إعادة ضبط المتغير على الشريط التالي أم لا يعمل التنبيه مرة أخرى حتى أعيد تشغيل النظام الأساسي؟ شكرا ستيف

  4. #4
    أنت بحاجة إلى بعض طريقة لتعيينها إلى 0

  5. #5
    #property indior_chart_window #property indior_buffers 8 #property indior_color1 Magenta #property indior_color2 Aqua #property indior_color3 Magenta #property indior_color4 Aqua #property indior_color5 Magenta #property indior_color6 Aqua #property indior_color7 Magenta #property indior_color8 Aqua/---- input parameters extern double stoch_period = 9؛ extern double stoch_max = 53؛ extern double stoch_min = 47؛ extern double atr_current_norm_factor = 0.435؛ extern double atr_before_norm_factor = 1.5؛ extern double atr_period = 7؛ extern int atr_before_step = 1؛ extern Int NumBars = 10000؛/إذا كنت ترغب في عرض قيم مؤشر ALL ، قم بتعيين هذا إلى 0 - سوف تستخدم ذاكرة أكبر للسبب/---- buffers double sell_stop_dot_buf []؛ double buy_stop_dot_buf []؛ double sell_stop_line_buf []؛ double buy_stop_line_buf []؛ double sell_signal_buf []؛ double buy_signal_buf []؛ مضاعفة down_buf []؛ مضاعفة up_buf []؛ int init () {SetIndexStyle (0، DRAW_ARROW)؛ SetIndexArrow (0115)؛ SetIndexBuffer (0، sell_stop_dot_buf)؛ SetIndexLabel (0، sell_stop_dot)؛ SetIndexEmptyValue (0، EMPTY_VALUE)؛ SetIndexStyle (1، DRAW_ARROW)؛ SetIndexArrow (1115)؛ SetIndexBuffer (1، buy_stop_dot_buf)؛ SetIndexLabel (1، buy_stop_dot)؛ SetIndexEmptyValue (1، EMPTY_VALUE)؛ SetIndexStyle (2، DRAW_LINE)؛ SetIndexBuffer (2، sell_stop_line_buf)؛ SetIndexLabel (2، sell_stop_line)؛ SetIndexEmptyValue (2، EMPTY_VALUE)؛ SetIndexStyle (3، DRAW_LINE)؛ SetIndexBuffer (3، buy_stop_line_buf)؛ SetIndexLabel (3، buy_stop_line)؛ SetIndexEmptyValue (3، EMPTY_VALUE)؛ SetIndexStyle (4، DRAW_ARROW)؛ SetIndexArrow (4108)؛ SetIndexBuffer (4، sell_signal_buf)؛ SetIndexLabel (4، sell_signal)؛ SetIndexEmptyValue (4، EMPTY_VALUE)؛ SetIndexStyle (5، DRAW_ARROW)؛ SetIndexArrow (5108)؛ SetIndexBuffer (5، buy_signal_buf)؛ SetIndexLabel (5، buy_signal)؛ SetIndexEmptyValue (5، EMPTY_VALUE)؛ SetIndexStyle (6، DRAW_HISTOGRAM)؛ SetIndexBuffer (6، down_buf)؛ SetIndexLabel (6، down_trend)؛ SetIndexStyle (7، DRAW_HISTOGRAM)؛ SetIndexBuffer (7، up_buf)؛ SetIndexLabel (7، up_trend)؛ } int start () {double stoch_current، atr_current_normalised، atr_before_normalised؛ double value3، value4، value5، val1، val2، clos_diff، r؛ int flag1، flag2؛/flags = 1 عندما ينخفض ​​الزوج بسرعة. stoch is below below stoch_min and diff in Closes exceeds atr_current_normalised./flags = 2 عندما يرتفع الزوج بسرعة. Stoch فوق stoch_max والفرق في Closes يتجاوز atr_current_normalised. if (NumBars == 0) int shift = Bars - MathMax (stoch_period، atr_period)؛ آخر التحول = MathMax (القضبان ، NumBars) - MathMax (stoch_period ، atr_period) ؛ while (shiftgt؛ = 0) {atr_current_normalised = iATR (NULL، 0، atr_period، shift) * atr_current_norm_factor؛ atr_before_normalised = atr_before_norm_factor * iATR (NULL، 0، atr_period atr_before_step، shift)؛stoch_current = iStochastic (NULL، 0، stoch_period، stoch_period، 1،0،0،0، shift)؛ val1 = 0؛ val2 = 0؛ value4 = عالي [shift] atr_before_normalised؛ value5 = Low [shift] - atr_before_normalised؛ close_diff = MathAbs (إغلاق [shift] - إغلاق [shift 2])؛/Process Sharp Drops Rises if (close_diff gt؛ atr_current_normalised) if (stoch_current lt؛ stoch_min flag1! = 1)/pair drops down quickly {value3 = High [shift] atr_before_normalised4؛ علم 1 = 1 ؛ val1 = value3 ؛ r = value3 ؛ sell_signal_buf [التحول] = value3. sell_stop_line_buf [التحول] = value3. } آخر إذا ارتفع (stoch_current gt؛ stoch_max flag1! = 2)/pair بسرعة {value3 = Low [shift] - atr_before_normalised4؛ علم 1 = 2 ؛ val2 = value3؛ r = value3 ؛ buy_signal_buf [التحول] = value3. buy_stop_line_buf [التحول] = value3. }/عملية قطرات صغيرة ترتفع إذا (val1 == 0 val2 == 0)/switch (flag1) {case 1: if (value4 lt؛ r) {r = value4؛ } sell_stop_dot_buf [shift] = r؛ sell_stop_line_buf [التحول] = ص. استراحة؛ الحالة 2: if (value5 gt؛ r) {r = value5؛ } buy_stop_dot_buf [shift] = r؛ buy_stop_line_buf [التحول] = ص. استراحة؛ } if (close_diff gt؛ atr_current_normalised) {if (stoch_current lt؛ stoch_min) flag2 = 1؛ آخر إذا كان (stoch_current gt؛ stoch_max) flag2 = 2؛ } if ((stoch_current lt؛ stoch_min flag2 == 1) || (stoch_current lt؛ stoch_min flag2 == 0)) {if (close_diff gt؛ atr_current_normalised) {down_buf [shift] = High [shift]؛ up_buf [shift] = Low [shift]؛ }} آخر إذا ((stoch_current gt؛ stoch_max flag2 == 2) || (stoch_current gt؛ stoch_max flag2 == 0)) {up_buf [shift] = High [shift]؛ down_buf [shift] = Low [shift]؛ } /------------------------------------------ تحول--؛ }}

أذونات النشر

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •  
  • رمز BB مفعل
  • الابتسامات مفعلة
  • رمز[IMG] مفعل
  • رمز [VIDEO] مفعل
  • رمز HTML غير مفعل
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.