PureBytes Links
Trading Reference Links
|
One more thing:
You may have nested AlertIf statements [similar to WriteIf()
function].
Example:
b=Cross(70,StochD());
bb=Cross(StochD(),70);
bbb=Cross(StochD(),30);
s1="SOUND C:\\Windows\\Media\\Tada.wav";
s2="SOUND C:\\Windows\\Media\\Chord.wav";
s3="SOUND C:\\Windows\\Media\\Done.wav";
AlertIf( b, s1,"text1",AlertIf(bb,s2,"text2",AlertIf
(bbb,s3,"text3")));
Plot(StochD(),"StochD",1,1);
--- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx>
wrote:
>here is the full IB code.
>
> function T3(array,p,s)
> {
> e1=EMA(C,p);
> e2=EMA(e1,p);
> e3=EMA(e2,p);
> e4=EMA(e3,p);
> e5=EMA(e4,p);
> e6=EMA(e5,p);
> c1=-s^3;
> c2=3*(s^2+s^3);
> c3=-6*s^2-3*s-3*s^3;
> c4=1+3*s+3*s^2+s^3;
> Ti3=c1*e6+c2*e5+c3*e4+c4*e3;
> return ti3;
> }
> s=0.7;
> T3A=T3(C,3,s);T3B=T3(C,5,s);
> Plot(T3A,"T3A",colorBlack,1);Plot(T3B,"T3B",colorWhite,1);
> Sell=Cross(T3b,T3a);Buy=Cross(T3a,T3b);
> PlotShapes(shapeDownArrow*Sell,colorRed);
> PlotShapes(shapeUpArrow*Buy,colorGreen);
> AlertIf( Sell, "SOUND C:\\Windows\\Media\\Tada.wav", "Audio alert");
> AlertIf( Buy, "SOUND C:\\Windows\\Media\\Chimes.wav", "Audio
alert");
>
> Turn on the speakers, move the cursor from bar to bar and enjoy !!
> [Tada.wav and Chimes.wav is from my W98 Media. Replace them
according
> to your H/D Media file]
> Dimitris Tsokakis
> --- In amibroker@xxxxxxxxxxxxxxx, "Prashanth" <prash454@xxxx> wrote:
> > Hi Dimitris,
> >
> > I in no way wanted to discourage Bruiser from asking his
questions.
> If u check the mails, U will see that I was the first person who
> responded to him. In my last letter also I asked him to first check
> if the Alertif funcion is working by using the simple MACD cross
> example given in the help files. If that itself wouldnt work, I
think
> one can assume that there is a problem with either the Sound file,
> Speaker or even the Sound Card.
> >
> > I myself have benefitted immensely from this group, but all the
> same I am extremely sorry if my letter was misunderstood.
> >
> > Regards
> > Prashanth
> >
> >
> > ----- Original Message -----
> > From: DIMITRIS TSOKAKIS
> > To: amibroker@xxxxxxxxxxxxxxx
> > Sent: Friday, April 30, 2004 1:20 PM
> > Subject: [amibroker] Re: What's wrong with this formula?
> >
> >
> > Bruiser,
> > Do not hesitate to ask, this is a free forum. If some reader is
> not
> > interested, it is easy to delete incoming messages.
> > BTW, did you solve the problem ?
> > [I never use Alertif() function and I can not help in this
> specific
> > part, I think the rest is clear...]
> > Dimitris Tsokakis
> > > -----Original Message-----
> > > From: bruiserbbq [mailto:bruiserbbq@x...]
> > > Sent: Thursday, April 29, 2004 11:17 PM
> > > To: amibroker@xxxxxxxxxxxxxxx
> > > Subject: [amibroker] Re: What's wrong with this formula?
> > >
> > >
> > > Thanks for all your help guys, very much appreciated. And
> OK..I'm
> > > sorry I took up too much BB time...but I couldn't figure my
> > problem
> > > out...even after consulting the help files.
> > >
> > > Thanks once again.
> > >
> > > Dumb Ol'Bruiser.
> > >
> > >
> > >
> > > Send BUG REPORTS to bugs@xxxx
> > > Send SUGGESTIONS to suggest@xxxx
> > > -----------------------------------------
> > > Post AmiQuote-related messages ONLY to:
> amiquote@xxxxxxxxxxxxxxx
> > > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > > --------------------------------------------
> > > Check group FAQ at:
> > > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > >
> > >
> > > Yahoo! Groups Sponsor
> > > ADVERTISEMENT
> > >
> > >
> > >
> > >
> > >
> > > --------------------------------------------------------------
--
> ----
> > --------
> > > --
> > > Yahoo! Groups Links
> > >
> > > a.. To visit your group on the web, go to:
> > > http://groups.yahoo.com/group/amibroker/
> > >
> > > b.. To unsubscribe from this group, send an email to:
> > > amibroker-unsubscribe@xxxxxxxxxxxxxxx
> > >
> > > c.. Your use of Yahoo! Groups is subject to the Yahoo!
> Terms of
> > Service.
> >
> >
> >
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx
> > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > --------------------------------------------
> > Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> >
> >
> > Yahoo! Groups Sponsor
> > ADVERTISEMENT
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------
--
> ----------
> > Yahoo! Groups Links
> >
> > a.. To visit your group on the web, go to:
> > http://groups.yahoo.com/group/amibroker/
> >
> > b.. To unsubscribe from this group, send an email to:
> > amibroker-unsubscribe@xxxxxxxxxxxxxxx
> >
> > c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms
of
> Service.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|