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

RE: [amibroker] Another AlertIf() Question



PureBytes Links

Trading Reference Links

Terry,
Thanks. I thought I tried that and received a coding error . I tried it again and it does seem like it fixed my problem with the signal from yesterday showing up in the Alert Output window.
I can turn the volume back up!!!
Thanks again for your help.
Scott
 
 
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]On Behalf Of Terry
Sent: Friday, May 20, 2005 4:17 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Another AlertIf() Question

Change lookback parameter to 0 instead of 1.

Terry

Scott Mariani wrote:

>I am having problems getting the Alert Output and Scan Results to
>agree and play the audio signal to play at right time.
>
>I set up a scan to run every minute.
>
>Senario 1:
>When I use "AlertIf( Buy, "SOUND
>C:\\WINNT\\Media\\Pirates.wav", "Audio alert", 1 );" With my Scan
>range set to n=1 I get no hits in the Scan Reults or Alert Output
>Windows. This is good and what I would expect.
>
>Senario 2:
>When I change my range to n=2, with the same AlertIf statement, I get
>1 hit in my Scan Results window, nothing in the Alert Output window,
>and no audio alert at all.
>
>Senario 3:
>When I change the AlertIf to add the "1+2" flag, "AlertIf(
>Buy, "SOUND C:\\WINNT\\Media\\Pirates.wav", "Audio alert", 1 ,
>1+2 );", and range set to n=1, I get a hit in the Alert Output window
>and the audio plays. The signal does not show up in the Scan Results
>window.
>
>Problem: The signal was from yesterday, why is it showing up in the
>Alert Output window?
>
>Senario 4:
>When I change the range to n=2 using the AlertIf above I now get 1
>hit in both Alert Output and Scan Results windows. The audio plays
>fine. This is great if you want to listen to your audio alert every
>minute but not too helpfull.
>
>Problem: How do I get Senario 3 to scan only today, "Lookback=1"
>didnt do it, alert me in the Alert Output and Scan Results window and
>play my audio signal when my condition is met?
>
>Thanks, Scott
>
>
>
>
>
>
>Please note that this group is for discussion between users only.
>
>To get support from AmiBroker please send an e-mail directly to
>SUPPORT {at} amibroker.com
>
>For other support material please check also:
>http://www.amibroker.com/support.html
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>

>


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





Yahoo! Groups Links