النتائج 1 إلى 10 من 3641

الموضوع: الموضوع المخصص للأسئلة البرمجية mql4

العرض المتطور

المشاركة السابقة المشاركة السابقة   المشاركة التالية المشاركة التالية
  1. #1
    عضو جديد
    تاريخ التسجيل
    Mar 2018
    المشاركات
    59

    افتراضي

    اخواتى
    MathCeil ماذا تعنى هذا الامر المحجوز وبماذا تستخدم ؟
    الدايره FOR هل تاتى بناتج الصفقة بعد نهاية عملها فقط يعنى عندما يساوي 0 = 0
    لان الدايره تفضل تعمل وتاتى بنتائج صفقات اخري لنفس الاكسيبرت

  2. #2
    عضو جديد
    تاريخ التسجيل
    Mar 2018
    الدولة
    Tunis
    المشاركات
    19

    افتراضي


    MathCeil
    The function returns integer numeric value closest from above.

    Parameters
    val
    [in] Numeric value.
    Return Value
    Numeric value representing the smallest integer that exceeds or equals to val.
    Note
    Instead of the MathCeil() function you can use ceil().



    For Loop Operator
    The for operator consists of three expressions and an executable operator:

    Expression1 describes the loop initialization. Expression2 checks the conditions of the loop termination. If it is true, the loop body for is executed. The loop repeats expression2 until it becomes false. If it is false, the loop is terminated, and control is given to the next operator. Expression3 is calculated after each iteration.
    The for operator is equivalent to the following succession of operators:


    Any of the three or all three expressions can be absent in the for operator, but the semicolons (;) that separate them must not be omitted. If expression2 is omitted, it is considered constantly true. The for(;;) operator is a continuous loop, equivalent to the while(1) operator. Each expression 1 or 3 can consist of several expressions combined by a comma operator ','.
    Note
    If it is expected that a large number of iterations will be handled in a loop, it is advisable that you check the fact of forced program termination using the IsStopped() function.
    Examples:

  3. #3
    مشرف برمجة الصورة الرمزية kira-h
    تاريخ التسجيل
    Apr 2017
    المشاركات
    14,888

    افتراضي

    الوظيفة MathCeil تقوم بحساب أكبر قيمة صحيحة للرقم المدخل ( 5.5 تصبح 6 و -5.5 تصبح -5 )
    بالنسبة للحلقة for راجع المشاركة التالي :
    https://www.fxprg.com/vb/showthread.php?t=31457&page=29&p=879880&viewfull=1 #post879880

  4. #4
    عضو جديد
    تاريخ التسجيل
    Mar 2018
    المشاركات
    59

    افتراضي

    تسلم عينك ياغالى
    والله كلامك ودروسك بي دي اف كلها محشوره معلومات مهمه

    طيب ايه الفرق بين
    MathCeil و
    NormalizeDouble
    لان بالدروس شايف حاطط الثانية داخل الاولى وهما الاتنين بنفس الوظيفة
    MathMin(NormalizeDouble(LastOrderLots()*LotsMpOnLo ss,2)

    وتشكر

  5. #5
    مشرف برمجة الصورة الرمزية kira-h
    تاريخ التسجيل
    Apr 2017
    المشاركات
    14,888

    افتراضي

    الفرق واضح فكما قلنا الوظيفة الاولى تقوم بحساب أكبر قيمة صحيحة لعدد عشري
    والثاني اي NormalizeDouble به اعدادين، الاول تقوم بتحديد العدد الذي نريد تحويله والثاني نحدد عدد الاعشار بعد الفاصلة
    مثلا
    النتيجة هي 3.24 بحيث نريد رقمين (2) فقط بعد الفاصلة

    اما الشرط بالدرس معناه اننا نريد اقصى قيمة للناتج ذو رقمين بعد الفاصلة
    التعديل الأخير تم بواسطة kira-h ; 30-03-2018 الساعة 04:56 PM

العلامات المرجعية

العلامات المرجعية

ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •