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

Adding sound (Your Voice)



PureBytes Links

Trading Reference Links

Resent-Date: Tue, 7 Apr 1998 20:59:52 -0700
Date: Tue, 07 Apr 1998 22:59:44 -0500
From: "Dr. John F. Clayburg" <clayburg@xxxxxxxxxx>
Reply-To: clayburg@xxxxxxxxxx
Organization: http:/pionet.net/~clayburg/
X-Mailer: Mozilla 3.01 (Win95; I)
To: omega-list@xxxxxxxxxx
Subject: Re: Sound Device
Resent-From: omega-list@xxxxxxxxxx
X-Mailing-List: <omega-list@xxxxxxxxxx> archive/latest/16955
X-Loop: omega-list@xxxxxxxxxx
Resent-Sender: omega-list-request@xxxxxxxxxx

Here's the routine I use to add sound files to the MACD indicator. You
can record your own .wav files  using the recorder in Windows to alert
you to a specific event using your own voice.

Input: FastMA(8),SlowMA(35),MacdMA(9), BuyLvl(1), SellLvl(-1);
Vars: 	zz(false);

Plot1(MACD(Close,FastMA,SlowMA),"MACD");
Plot2(XAverage(MACD(Close,FastMA,SlowMA),MacdMA),"MACDAvg");
Plot3(BuyLvl,"BuyLvl");
Plot4(SellLvl,"Sell_Lvl");

If MACD(Close,FastMA,SlowMA) crosses above SellLvl or
MACD(Close,FastMA,SlowMA) crosses below BuyLvl then begin
	If CheckAlert then alert = true;
	zz = PlaySound("d:\omega\MACD_9.wav");
end;