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

[amibroker] Re: ALERTIF () help please.



PureBytes Links

Trading Reference Links

Thanks Jayson, That is helpful

--- In amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx> wrote:
> Mmqp,
> below is a series of alerts that will be triggered, in either 
direction,
> when close crosses any of 3 study lines (trend lines, Raff 
channels etc) .
> Type refers to the alert window out put (buy,sell,short, cover) 
and look
> back simply refers to how many bars back the alert function looks. 
The help
> file gives more detailed explanation and examples as well......
> 
> Study("s1",1);
> Study("s2",1);
> Study("s3",1);
> 
> Buy=Cross(C, Study("s1",1));
> Sell=Cross(Study("s1",1), C);
> Buy1=Cross(C, Study("s2",1));
> Buy2=Cross(C, Study("s3",1));
> Sell1=Cross(Study("s2",1), C);
> Sell2=Cross(Study("s3",1), C);
> 
> sound= "SOUND g:\\DOWNLOADS\\Amibroker\\strategy alert.wav";
> sound2= "SOUND g:\\DOWNLOADS\\Amibroker\\siren.wav";
> 
> AlertIf(Buy, sound2, WriteVal(C,3.2)+ " Violation", 1,1+2+4+8,1 );
> AlertIf(Buy1, sound2, WriteVal(C,3.2)+ " s2 Violation", 
5,1+2+4+8,1 );
> AlertIf(Sell, sound,WriteVal(C,3.2)+ " Violation", 2,1+2+4+8,1 );
> AlertIf(Sell1, sound, WriteVal(C,3.2)+ " s2 Violation", 
6,1+2+4+8,1 );
> AlertIf(Buy2, sound2, WriteVal(C,3.2)+ " s3 Violation", 
7,1+2+4+8,1 );
> AlertIf(Sell2, sound, WriteVal(C,3.2)+ " s3 Violation", 
8,1+2+4+8,1 );
> 
> Regards,
> Jayson
> -----Original Message-----
> From: mmqp [mailto:mmqp@x...]
> Sent: Friday, October 10, 2003 2:52 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] ALERTIF () help please.
> 
> 
> Can someone give example of "type" and "lookback" examples or
> usages?  I do not understand these two parameters very well. TIA
> 
> 
>       Yahoo! Groups Sponsor
>             ADVERTISEMENT
> 
> 
> 
> 
> 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
> 
> 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 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/