[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Do any Easylanguage Experts have a clue about this ?


  • To: "Omega-List \(E-mail\)" <Omega-List@xxxxxxxxxx>
  • Subject: Do any Easylanguage Experts have a clue about this ?
  • From: "Jerry War" <drwar@xxxxxxxxx>
  • Date: Tue, 22 Oct 2002 05:49:29 -0700

PureBytes Links

Trading Reference Links

I have tried using playsound to get my attention when an alert ocurrs.
Easylanguage returns a true like it is supposed to if it finds
the wav file and the alert pops up on the screen but no sound. The wav file
plays fine by double clicking from explorer, so my sound card and speakers
are working fine. Does anyone have any ideas ? The code is pretty simple it
is inserted below. This is ts2000i.

Thanks
Jerry



Input: Price(Close), Length1(9), Length2(22), Displace(0);

If Displace >= 0 OR CurrentBar > AbsValue(Displace) Then Begin
	Plot1[Displace](AverageFC(Price, Length1), "SimpAvg1");
	Plot2[Displace](AverageFC(Price, Length2), "SimpAvg2");

{Alert Criteria}
	Condition1 = Plot1 <> Plot2;
	IF Plot1 Crosses Above Plot2 AND Condition1 Then
		Begin
			Print(PLaySound("c:\ultilities\sounds\Ahooga.wav"));
		 	Alert("LongEminent");
		End
	Else
		IF Plot1 Crosses Below Plot2 AND Condition1 Then
		Begin
			Print(PLaySound("c:\ultilities\sounds\Ahooga.wav"));
			Alert("Short Eminent");
    	End;
End;