-
تحتاج إلى إضافة تنبيه
مرحبا،
سيكون من دواعي سرورنا حقا إذا كان أي شخص يمكن أن يساعدني على إضافة تنبيه إلى بلدي ...
الرمز المدرج/---------------------------------------------- ------------------------------------------ سلسلة الإدخال __________ 1 __________ = xxxxxxxxxxxxxxxxxxxxx؛ سلسلة الإدخال __________ 2 __________ == رمز السهم =؛/ARROW تفاصيل سلسلة الإدخال __________ 3 __________ = xxxxxxxxxxxxxxxxxxxxx؛ input int ARROWUP = 217؛/ARROW CODE input int ARROWDN = 218؛/ARROWUPc = ARROWUPc = clrWhite؛/Arrow Up لون لون الإدخال ARROWDNc = clrWhite؛/Arrow Dn Color/------ -------------------------------------------------- --------------------------------/- buffer buffers double ArrUpBuffer # 91؛ # 93 ؛؛ double ArrDnBuffer # 91؛ # 93 ؛؛/-/ ------------------------------------------- ----------------------- /| وظيفة التهيئة الأولية المخصصة |/ ----------------------------------------------- ------------------- int inInit ()/- indior buffers mapping IndiorBuffers (2)؛ SetIndexBuffer (0، ArrUpBuffer)؛ SetIndexStyle (0، DRAW_ARROW، STYLE_SOLID، 2، ARROWUPc)؛ SetIndexArrow (0، ARROWUP)؛ SetIndexBuffer (1، ArrDnBuffer)؛ SetIndexStyle (1، DRAW_ARROW، STYLE_SOLID، 2، ARROWDNc)؛ SetIndexArrow (1، ARROWDN)؛ العودة (INIT_SUCCEEDED)؛/ ----------------------------------------------- ------------------- /| |/ ----------------------------------------------- ------------------- /| وظيفة التكرار indord مخصصة |/ ----------------------------------------------- ------------------- int OnCalculate (const int rates_total، const int prev_calculated، const datetime time # 91؛ # 93 ؛، const double open # 91؛ # 93؛ ، const double high # 91؛ # 93 ؛، const double low # 91؛ # 93 ؛، const double close # 91؛ # 93 ؛، const long tick tick_volume # 91؛ # 93 ؛، const long volume # 91؛ # 93؛ ، const int spread # 91؛ # 93؛ -RRB-/- int I، limit؛ limit = rates_total-prev_calculated ؛ if (prev_calculatedgt؛ 0) limit = limit 2؛ لـ (I = limit-2؛ igt؛ = 0؛ I--) if if (iMA (_Symbol، _Period، 5،0، MODE_LWMA، PRICE_LOW، I 1) lt؛ iBands (_Symbol، _Period، 20،2.0،0، PRICE_CLOSE، MODE_LOWER، I 1)) ArrUpBuffer # 91؛ I 1 # 93؛ = iBands (_Symbol، _Period، 20،2.0،0، PRICE_CLOSE، MODE_LOWER، I 1) -35 * pix_y ()؛ if (iMA (_Symbol، _Period، 5،0، MODE_LWMA، PRICE_HIGH، I 1) GT، iBands (_Symbol، _Period، 20،2.0،0 و PRICE_CLOSE و MODE_UPPER و I 1)) ArrDnBuffer # 91؛ I 1 # 93؛ = iBands (_Symbol، _Period، 20،2.0،0، PRICE_CLOSE، MODE_UPPER، I 1) 35 * pix_y ()؛/--------------- return (rates_total)؛/ ----------------------------------------------- ------------------- /| |/ ----------------------------------------------- ------------------- double pix_y () return ((ChartGetDouble (0، CHART_PRICE_MAX، 0) -ChartGetDouble (0، CHART_PRICE_MIN، 0))ChartGetInteger (0، CHART_HEIGHT_IN_PIXELS، 0))؛// ----------------------------------------------- ------------------- /| |/ ----------------------------------------------- -------------------
هذا الجزء من أجل شراء تنبيه
رمز مدرج إذا (iMA (_Symbol ، _Period ، 5،0 ، MODE_LWMA ، PRICE_LOW ، I 1) lt ؛ iBands (_Symbol ، _Period ، 20،2.0،0 ، PRICE_CLOSE ، MODE_LOWER ، I 1)) ArrUpBuffer # 91؛ I 1 # 93؛ = iBands (_Symbol، _Period، 20،2.0،0، PRICE_CLOSE، MODE_LOWER، I 1) -35 * pix_y ()؛
وهذا الجزء لتنبيه بيع
رمز مدرج إذا (iMA (_Symbol ، _Period ، 5،0 ، MODE_LWMA ، PRICE_HIGH ، I 1) gt ؛ iBands (_Symbol ، _Period ، 20،2.0،0 ، PRICE_CLOSE ، MODE_UPPER ، I 1)) ArrDnBuffer # 91؛ I 1 # 93؛ = iBands (_Symbol، _Period، 20،2.0،0، PRICE_CLOSE، MODE_UPPER، I 1) 35 * pix_y ()؛
شكرا لكم!
-
1 المرفق (المرفقات) جرب هذا. HTH M. EDIT: ملاحظة سوف تحتاج إلى تضمين ... #property indior_buffers 2 إذا كنت ترغب في الكشف عن مجموعتي الأسهم (لم تُظهر الكود الخاص بك ذلك افترض أن هذا هو ما تريد؟)
https://www.cavemantrading.com/attac...2066362460.mq4
-
مرحبا ، رمز السهم على ما يرام ... تم تنفيذ الجزء العلوي من التعليمات البرمجية بما في ذلك المخزن المؤقت indior ... إلا أنني لم آخر رمز كامل ... أود فقط أن أضيف تنبيه
-