Audio alert for MA convergence

 

Hi Everybody

Has anyone perhaps came across an EA that can scan multiple charts for 2 converging MA's and give an audible alarm when the scenario is detected?



Regards



Henry

 

B

Easy enough for you to write - you can refer to many pairs & time-frames from one EA, eg

   double OSMA_2 = iOsMA("USDCHF",PERIOD_H1,12,26,9,PRICE_CLOSE,2);
   double OSMA_1 = iOsMA("USDCHF",PERIOD_H1,12,26,9,PRICE_CLOSE,1);


   if((OSMA_2<0) && (OSMA_1>0)) PlaySound("yankee doodle.wav");

   if((OSMA_2>0) && (OSMA_1<0)) PlaySound("whistle dixie.wav");

NB - OSMA is the 'easier to code' version of the MACD

Good Luck

-BB-

Reason: