View Single Post
  #5 (permalink)  
Old 06-29-2006, 02:41 AM
iscuba11's Avatar
iscuba11 iscuba11 is offline
Senior Member
 
Join Date: May 2006
Location: Houston
Posts: 399
iscuba11 is on a distinguished road
Cool

Quote:
Originally Posted by lowphat
this is whut i use
Alert (Symbol()," ",Period(), "Phats Dirty Little Secret @ "Bid);
so maybe u would do something like
if(type=="UP") Alert (Symbol()," ",Period(), "Moving Average Cross UP @ "Bid;

Here us what it looks like now. Now I get the error: 'end_of_program' unbalanced left parenthesis. Very frustrating!

//----------------------- 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 !";
if(type=="UP") Alert (Symbol()," ", Period(), "Moving Average Cross UP @ "Bid;

Alert(AlertComment);
PlaySound(SoundFilename);
}

//----------------------- END FUNCTION
Reply With Quote