الاخوة المبرمجين الأفاضل تحية طيبة
ارجو اذا امكن اضافة تنبيه صوتي لمؤشر cci comodity channel indicator ) الموجود في الميتاتريدر انا استخدم المؤشر باعدادات 100 واضع مستويات على المؤشر كخطوط هي صفر و200 و400 و600 و -200 -400 -600 واحتاج لاضافة تنبيه اذا قطع المؤشر مستوى 200 كمثال في المؤشر او مستوى -200 . في بحثي عن تنبيه صوتي للمؤشر في النت وجدت الكود ادناه ولكن لعدم خبرتي في المؤشرات والبرمجة لا اعرف كيف يضاف الى المؤشر والكود هو
Open your first CCI with MetaEditor, find code below and add/replace with new code
s.
extern bool Alerts = true; //<<-- find this one
extern string Alert_Sound = "alert.wav"; //<<-- find this one
extern int Number_Of_Alerts=3; //<<-- add this
int Alert_Up, Alert_Down; //<<-- add this
next is a little need an extra careful
if (dUpCCIBuffer[1]!=EMPTY_VALUE && dUpCCIBuffer[1]!=0) //<<--find this one
{ //<<--find this one
if (Alert_Up <= Number_Of_Alerts) //<<--add this
{ //<<--add this
Alert(Symbol(), "- CCI has crossed up!"); //<<--add this
PlaySound(Alert_Sound); //<<--add this
Alert_Up++; //<<--add this
} //<<--add this
} //<<--add this
else //<<--add this
Alert_Up = 0; //<<--add this
if (dDownCCIBuffer[1]!=EMPTY_VALUE && dDownCCIBuffer[1]!=0) //<<--find this one
{ //<<--find this one
if (Alert_Down <= Number_Of_Alerts) //<<--add this
{ //<<--add this
Alert(Symbol(), "- CCI has crossed down!"); //<<--add this
PlaySound(Alert_Sound); //<<--add this
Alert_Down++; //<<--add this
} //<<--add this
} //<<--add this
else //<<--add this
Alert_Down = 0; //<<--add this
Hope that works, Compiled w/o error but I didn't test it
الاخوة المبرمجين الأفاضل تحية طيبة
ارجو اذا امكن اضافة تنبيه صوتي لمؤشر cci comodity channel indicator ) الموجود في الميتاتريدر انا استخدم المؤشر باعدادات 100 واضع مستويات على المؤشر كخطوط هي صفر و200 و400 و600 و -200 -400 -600 واحتاج لاضافة تنبيه اذا قطع المؤشر مستوى 200 كمثال في المؤشر او مستوى -200 . في بحثي عن تنبيه صوتي للمؤشر في النت وجدت الكود ادناه ولكن لعدم خبرتي في المؤشرات والبرمجة لا اعرف كيف يضاف الى المؤشر والكود هو
Open your first CCI with MetaEditor, find code below and add/replace with new code
s.
extern bool Alerts = true; //<<-- find this one
extern string Alert_Sound = "alert.wav"; //<<-- find this one
extern int Number_Of_Alerts=3; //<<-- add this
int Alert_Up, Alert_Down; //<<-- add this
next is a little need an extra careful
if (dUpCCIBuffer[1]!=EMPTY_VALUE && dUpCCIBuffer[1]!=0) //<<--find this one
{ //<<--find this one
if (Alert_Up <= Number_Of_Alerts) //<<--add this
{ //<<--add this
Alert(Symbol(), "- CCI has crossed up!"); //<<--add this
PlaySound(Alert_Sound); //<<--add this
Alert_Up++; //<<--add this
} //<<--add this
} //<<--add this
else //<<--add this
Alert_Up = 0; //<<--add this
if (dDownCCIBuffer[1]!=EMPTY_VALUE && dDownCCIBuffer[1]!=0) //<<--find this one
{ //<<--find this one
if (Alert_Down <= Number_Of_Alerts) //<<--add this
{ //<<--add this
Alert(Symbol(), "- CCI has crossed down!"); //<<--add this
PlaySound(Alert_Sound); //<<--add this
Alert_Down++; //<<--add this
} //<<--add this
} //<<--add this
else //<<--add this
Alert_Down = 0; //<<--add this
Hope that works, Compiled w/o error but I didn't test it
ربما يكون خطوة مفيدة
شاكر لكم مقدما اي مساعدة
wadzaman
https://forum.arabictrader.com/u21200.html
10-10-2013 06:08 AM