View Single Post
  #1 (permalink)  
Old 06-29-2006, 12:50 AM
iscuba11's Avatar
iscuba11 iscuba11 is offline
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 399
iscuba11 is on a distinguished road
Exclamation Help needed with alert display function!

The alert does not include what currency pair moving average crossed over. How do I correct this code to pickup and identify the currency pair name like USDJPY in the alert display??


//----------------------- ALERT ON MA CROSS
//----------------------- SOURCE : FIREDAVE
void subCrossAlert(string type)
{
string AlertComment;

if(type=="UP") AlertComment = "Moving Average Cross UP !";
if(type=="DOWN") AlertComment = "Moving Average Cross DOWN !";

Alert(AlertComment);
PlaySound(SoundFilename);
}

//----------------------- END FUNCTION

Your help is much appreciated! Thanks in advance!
Reply With Quote