Download MetaTrader 5
To add comments, please log in or register
1000 paid orders are executed in Freelance service. Sign up!
Ellie
16
Ellie 2012.08.13 18:37 

Hi, could anyone point me in the right direction to find the above? I used the search function but didn't find anything :(

I have the two I have attached here but one only does the arrow - no sound or po up, and the other does both but the sound alert keeps going non stop :(

Any help appreciated..tnx

Files:
Simon Gniadkowski
Moderator
17963
Simon Gniadkowski 2012.08.13 18:39  
Ellie
16
Ellie 2012.08.13 18:40  
This is second version I found.
Files:
Ellie
16
Ellie 2012.08.13 18:41  

Thanks Raptor but that's where I got one of the above.
Simon Gniadkowski
Moderator
17963
Simon Gniadkowski 2012.08.13 18:45  
You could always got one of them modified specifically for your needs : Coding for MT4 & MT5
Ellie
16
Ellie 2012.08.13 18:51  

Thanks again, was hoping there was already one freely available in the public domain ;)

I may come back to that if I have no luck in my search tho.

Thanks for your help :)

onewithzachy
2274
onewithzachy 2012.08.13 22:07  

Hi DW1000,

Open your first CCI with MetaEditor, find code below and add/replace with new codes.

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

duduvillanueva
10
duduvillanueva 2014.07.02 16:12  
onewithzachy:

Hi DW1000,

Open your first CCI with MetaEditor, find code below and add/replace with new codes.

next is a little need an extra careful

Hope that works, Compiled w/o error but I didn't test it


Hi can you add and alert the the arrow shows? sound or pop up please? Thanks


------------

...
qjol
3243
qjol 2014.07.02 22:41  
please don't upload decompiled code here
Alain Verleyen
Moderator
28524
Alain Verleyen 2014.07.03 15:26  
qjol:
please don't upload decompiled code here
Decompiled code removed.
/
To add comments, please log in or register