اتشكرك
ممكن نعدل على الكود
بحيث البيع يبقى كما هو
ولكن الشراء
اذا كونت الشمعة اللو ادنى السفلي والهاي اعلى المتوسط يبقى شراء
مع ارفاق الكود بالكامل للشراء والبيع وتعريف المدخلات وفقك الله
اتشكرك
ممكن نعدل على الكود
بحيث البيع يبقى كما هو
ولكن الشراء
اذا كونت الشمعة اللو ادنى السفلي والهاي اعلى المتوسط يبقى شراء
مع ارفاق الكود بالكامل للشراء والبيع وتعريف المدخلات وفقك الله
يوجد اكسبيرت تطبيقي مفتوح الكود بالموضوع التعليمي حاول تعديل الشروط بما تريد وارفقه هنا للتصحيح
تفضل اخي
ويارت تضفله الترلينغ ستوب
اتشكرك
السلام عليكم
للتذكير
للمشاركة رقم 1134#
التعديل الأخير تم بواسطة samizhraldeen ; 28-03-2018 الساعة 07:54 AM
صباح الخير
اتشكرك اخي حسن وفقك الله
اخواتى
MathCeil ماذا تعنى هذا الامر المحجوز وبماذا تستخدم ؟
الدايره FOR هل تاتى بناتج الصفقة بعد نهاية عملها فقط يعنى عندما يساوي 0 = 0
لان الدايره تفضل تعمل وتاتى بنتائج صفقات اخري لنفس الاكسيبرت
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:
الوظيفة MathCeil تقوم بحساب أكبر قيمة صحيحة للرقم المدخل ( 5.5 تصبح 6 و -5.5 تصبح -5 )بالنسبة للحلقة for راجع المشاركة التالي :
https://www.fxprg.com/vb/showthread.php?t=31457&page=29&p=879880&viewfull=1 #post879880
تسلم عينك ياغالى
والله كلامك ودروسك بي دي اف كلها محشوره معلومات مهمه
طيب ايه الفرق بينMathCeil وNormalizeDouble
لان بالدروس شايف حاطط الثانية داخل الاولى وهما الاتنين بنفس الوظيفة
MathMin(NormalizeDouble(LastOrderLots()*LotsMpOnLo ss,2)
وتشكر
العلامات المرجعية