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

RE: [amibroker] 3rd logical alert



PureBytes Links

Trading Reference Links


<SPAN 
class=334184617-31102002>Richard,
you 
lose me here. you want an alert if you get a buy condition. You want an alert if 
you get a sell condition. Your want a 3rd alert when there is no buy or 
sell. Why on earth would you want an alert on EVERY SINGLE BAR?? at 
any rate it is easier to create a third variable....<FONT 
color=#0000ff><FONT 
size=2>

test=Buy<FONT 
color=#282828>==<FONT 
color=#ff00ff>0 <FONT 
color=#000000>AND<FONT 
color=#282828> Sell<FONT 
size=2>=<FONT 
color=#282828>=0<FONT 
color=#282828>;
AlertIf(<SPAN 
class=334184617-31102002>test<FONT 
size=2>,"SOUND 
C:\\Windows\\Media\\start<FONT 
face="Courier New">.wav",<FONT 
face="Courier New">"Audio Buy",<FONT 
face="Courier New">2,<FONT 
face="Courier New">1<FONT 
face="Courier New">);
the 
error below is in your use of 
parenthesis...
<SPAN 
class=334184617-31102002> 
<FONT color=#0000ff 
face="Courier New" size=2> <FONT 
color=#0000ff>
Jayson 

<FONT face=Tahoma 
size=2>-----Original Message-----From: Richard Harper 
[mailto:rdharper@xxxx]Sent: Thursday, October 31, 2002 11:24 
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 3rd 
logical alert

Jason;
As you may have read, my alerts are working great, shown 
here.
AlertIf<FONT 
face="Courier New">(Buy,<FONT color=#ff00ff 
face="Courier New">"SOUND C:\\Windows\\Media\\Notify.wav"<FONT 
face="Courier New">,"Audio 
Buy",<FONT color=#ff00ff 
face="Courier New">2,<FONT color=#ff00ff 
face="Courier New">1);
<FONT 
size=2>AlertIf<FONT 
face="Courier New">(Sell,<FONT color=#ff00ff 
face="Courier New">"SOUND C:\\Windows\\Media\\ding.wav"<FONT 
face="Courier New">,"Audio 
Sell",<FONT color=#ff00ff 
face="Courier New">2,<FONT color=#ff00ff 
face="Courier New">1);<FONT 
face=Arial>
I'd like to add one more, which would alert an inbetween 
condition, not buy AND not sell;
I tried the following, which is not quite correct. Can you show 
me?
AlertIf<FONT 
face="Courier New">(((<FONT 
face="Courier New">Buy<FONT 
face="Times New Roman">=0) AND (<FONT 
face="Courier New">Sell<FONT 
face="Times New Roman">=0)),<FONT 
color=#ff00ff face="Courier New">"SOUND C:\\Windows\\Media\\<FONT 
color=#ff00ff face="Times New Roman">start<FONT color=#ff00ff 
face="Courier New">.wav",<FONT 
color=#ff00ff face="Courier New">"Audio Buy"<FONT 
face="Courier New">,2<FONT 
face="Courier New">,1<FONT 
face="Courier New">);
Thanks,
RichardPost 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service.