سؤال حول رمز المؤشر - (3 خطوط)
Results 1 to 4 of 4

Thread: سؤال حول رمز المؤشر - (3 خطوط)

  1. #1
    1. ما هي الدالتان المحددتان في الموقع؟

    2.why 720 قيمة على خط ملحوظ؟



    الرمز:



    Inserted Code/ --------------------------------------------- --------------------- /| DailyBreakout.mq4 |/| حقوق الطبع والنشر © 2008 ، روبرت هيل. |/ ----------------------------------------------- ------------------- # حقوق الملكية الفكرية حقوق النشر © 2008، Robert Hill #property link NONE #property indior_chart_window/---- input parameters extern bool Alerts = false؛ extern int GMTshift = 0؛ extern Int LabelShift = 20؛ extern int LineShift = 40؛ extern string pd = PipsAboveBelowSR for Alert؛ ex int int PipDistance = 1؛ لون extern StandardFontColor = أبيض؛ extern int StandardFontSize = 8؛ لون extern supportcolor = الأحمر؛ extern color ResistanceColor = Lime؛ datetime LabelShiftTime، LineShiftTime؛ ضعف yesterday_high = 0؛ double_low = 0؛ double LastHigh، LastLow، x؛ ضعف R1 = 0 ؛ ضعف S1 = 0 ؛ bool firstS1 = true؛ bool firstR1 = true؛ مزدوجة myPoint؛/ ----------------------------------------------- ------------------- /| وظيفة التهيئة مؤشر مخصص/ ----------------------------------------------- ------------------- init init () {//---- indiors myPoint = SetPoint (Symbol ())؛/---- return (0)؛ }/ ---------------------------------------------- -------------------- /| وظيفة إلغاء مؤشر Custor/ ----------------------------------------------- ------------------- int deinit () {//---- TODO: أضف رمزك هنا/---- ObjectDelete (R1 Label)؛ ObjectDelete (خط R1) ؛ ObjectDelete (S1 Label)؛ ObjectDelete (خط S1) ؛ عودة (0)؛ } مضاعفة SetPoint (سلسلة mySymbol)/lt؛ lt؛ lt؛ lt؛ lt؛ lt؛ lt؛ ----- لماذا هنا على الدينيت ؟؟؟؟؟ ------------ ---- {double mPoint، myDigits؛ myDigits = MarketInfo (mySymbol، MODE_DIGITS)؛ إذا كانت (myDigits lt؛ 4) mPoint = 0.01؛ آخر mPoint = 0.0001؛ العودة (mPoint)؛ } int doAlerts ()/lt؛ lt؛ lt؛ lt؛ lt؛ lt؛ lt؛ lt؛ lt؛ ------- لماذا هنا على deint ؟؟؟؟؟؟ ------- ---------- {double DifAboveR1، PipsLimit؛ مزدوجة DifBelowS1 ؛ DifBelowS1 = S1 - Close # 91؛ 0 # 93 ؛؛ DifAboveR1 = غلق # 91 ؛ 0 # 93؛ - R1 PipsLimit = PipDistance * myPoint؛ if (DifBelowS1 gt؛ PipsLimit) firstS1 = true؛ if (DifBelowS1 lt؛ = PipsLimit DifBelowS1 gt؛ 0) {if (firstS1) {Alert (Below S1 Line by، DifBelowS1، for، Symbol ()، -، Period ())؛ PlaySound (alert.wav)؛ firstS1 = كاذبة؛ }} if if (DifAboveR1 gt؛ PipsLimit) firstR1 = true؛ if (DifAboveR1 lt؛ = PipsLimit DifAboveR1 gt؛ 0) {if (firstR1) {Alert (Above R1 Line by، DifAboveR1، for، Symbol ()، -، Period ())؛ النوم (2000)؛ PlaySound (timeout.wav)؛ firstR1 = كاذبة؛ }}}/ -------------------------------------------- ---------------------- /| دالة التكرار مؤشر مخصص|/ ----------------------------------------------- ------------------- int start () {int counted_bars = IndiorCounted ()؛/---- TODO: أضف رمزك هنا double_high = 0؛ double day_low = 0؛ double_open = 0؛ double_open = 0؛ double cur_day = 0؛ مزدوجة prev_day = 0؛ int cnt = 720 ؛/lt؛ lt؛ lt؛ lt؛ lt؛ ---- لماذا 720 ؟؟؟؟؟؟؟ ------------------- -------------------------------/---- exit إذا كانت الفترة أكبر من 4 ساعات من المخططات إذا (الفترة ( ) gt؛ 240) {Print (Error - Chart period is than 4 hr.)؛ عودة (-1)؛/then exit}/---- الحصول على أسعار يومية جديدة بحساب محاور cur_day = 0؛ prev_day = 0؛/---- احصل على أسعار يومية جديدة بحساب المحاور بينما (cnt! = 0) {cur_day = TimeDay (Time # 91؛ cnt # 93؛ - (GMTshift * 3600))؛ if (prev_day! = cur_day) {yesterday_high = day_high؛ yesterday_low = day_low؛ day_high = High # 91؛ cnt # 93 ؛؛ day_low = Low # 91؛ cnt # 93 ؛؛ prev_day = cur_day ، } if (High # 91؛ cnt # 93؛ gt؛ day_high) {day_high = High # 91؛ cnt # 93 ؛؛ } if (Low # 91؛ cnt # 93؛ lt؛ day_low) {day_low = Low # 91؛ cnt # 93 ؛؛ } cnt--؛ } S1 = بالامس. R1 = yesterday_high LabelShiftTime = Time # 91؛ LabelShift # 93 ؛؛ LineShiftTime = Time # 91؛ LineShift # 93 ؛؛/---- Set تسميات سطر على نافذة المخطط البياني DisplayLabel (تسمية R1 ، R1 ، R1 ، StandardFontSize ، StandardFontColor) ؛ DisplayLabel (S1 label، S1، S1، StandardFontSize، StandardFontColor)؛/--- رسم خطوط محورية على المخطط DisplayLine (خط S1 ، S1 ، 0 ، STYLE_DASHDOTDOT ، SupportColor) ؛ DisplayLine (خط R1 ، R1 ، 0 ، STYLE_DASHDOTDOT ، ResistanceColor) ؛/---- done/الآن تحقق من التنبيه إذا كانت (التنبيهات) DoAlerts ()؛/---- return (0)؛ }/---- Set تسميات سطر على إطار المخطط void DisplayLabel (سلسلة LabelName ، سلسلة LabelText ، LabelPos مزدوجة ، int LabelFontSize ، لون LabelColor) {if (ObjectFind (LabelName)! = 0) {ObjectCreate (LabelName، OBJ_TEXT، 0 ، LabelShiftTime ، LabelPos) ؛ ObjectSetText (LabelName ، LabelText ، LabelFontSize ، Arial ، LabelColor)؛ } else {ObjectMove (LabelName، 0، LabelShiftTime، LabelPos)؛ }}/--- رسم خطوط محورية على المخطط البياني void DisplayLine (string LineName ، LinePos مزدوج ، int LineWidth ، int LineType ، لون LineColor) {if (ObjectFind (LineName)! = 0) {ObjectCreate (LineName، OBJ_HLINE، 0، LineShiftTime ، LinePos) ؛ ObjectSet (LineName، OBJPROP_STYLE، LineStyle)؛ ObjectSet (LineName، OBJPROP_COLOR، LineColor)؛ if (LineWidth gt؛ 0) ObjectSet (LineName، OBJPROP_WIDTH، LineWidth)؛ } else {ObjectMove (LineName، 0، LineShiftTime، LinePos)؛ }}/ --------------------------------------------- ---------------------

    شكرا المسروقات .

  2. #2

    Quote Originally Posted by ;
    1. ما هي الدالتان المحددتان في الموقع؟ 2.why 720 قيمة على خط ملحوظ؟ الرمز: شكرا نهب.
    1. هم ليسوا في الحافة المضمّنة من قبل {} هم خارجها. 2. 720 هو 12 ساعة بقيمة دقائق.

  3. #3
    شكرا نهب لاعادتها بسرعة. لماذا 12 ساعة ولا تسمح انظر 24 (على الأرجح) لا أفهم هذا واحد.

  4. #4

    Quote Originally Posted by ;
    شكرا نهب لاعادتها بسرعة. لماذا 12 ساعة ولا تسمح انظر 24 (على الأرجح) لا أفهم هذا واحد.
    لا أستطيع الإجابة على ذلك دون النظر إلى الكود بالتفصيل لنرى ما يفعله وليس لدي وقت - ولكنه لا يبدو فعالاً للغاية بالنسبة لي في هذا المجال ويبدو أنه يفعل 720 تكرارية لتلك القطعة من رمز كل علامة للبيانات التي ثابتة

أذونات النشر

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •  
  • رمز 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.