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

Re: Sound Device



PureBytes Links

Trading Reference Links

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;