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

RE: [amibroker] ALERTIF () help please.



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>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<FONT 
color=#282828 size=2>("s1"<FONT 
color=#282828 size=2>,1<FONT 
color=#282828 size=2>);<FONT color=#0000ff 
size=2>
Study<FONT color=#282828 
size=2>("s2"<FONT color=#282828 
size=2>,1<FONT color=#282828 
size=2>);
Study<FONT color=#282828 
size=2>("s3"<FONT color=#282828 
size=2>,1<FONT color=#282828 
size=2>);
 
Buy<FONT 
color=#0000ff>=Cross<FONT 
size=2>(C, <FONT 
size=2>Study("s1"<FONT 
size=2>,1<FONT color=#282828 
size=2>));
Sell<FONT 
color=#0000ff>=Cross<FONT 
size=2>(Study(<FONT 
size=2>"s1",1), 
C<FONT 
face=Arial color=#0000ff>);
Buy1=<FONT 
color=#0000ff>Cross(<FONT 
size=2>C<FONT 
size=2>, Study(<FONT 
size=2>"s2",1<FONT 
color=#282828 size=2>));
Buy2=<FONT 
color=#0000ff>Cross(<FONT 
size=2>C<FONT 
size=2>, Study(<FONT 
size=2>"s3",1<FONT 
color=#282828 size=2>));
Sell1=<FONT 
color=#0000ff>Cross(<FONT 
size=2>Study("s2"<FONT 
size=2>,1), <FONT 
size=2>C<FONT face=Arial 
color=#0000ff>);
Sell2=<FONT 
color=#0000ff>Cross(<FONT 
size=2>Study("s3"<FONT 
size=2>,1), <FONT 
size=2>C<FONT face=Arial 
color=#0000ff>);
 
sound= <FONT face=Arial 
color=#0000ff size=2>"SOUND g:\\DOWNLOADS\\Amibroker\\strategy 
alert.wav"<FONT face=Arial 
color=#0000ff>;
sound2= <FONT face=Arial 
color=#0000ff size=2>"SOUND g:\\DOWNLOADS\\Amibroker\\siren.wav"<FONT 
color=#282828 size=2>;
 
AlertIf<FONT color=#282828 
size=2>(Buy<FONT 
color=#282828 size=2>, sound2, <FONT color=#0000ff 
size=2>WriteVal(<FONT 
size=2>C<FONT color=#282828 
size=2>,3.2<FONT color=#282828 
size=2>)+ " Violation"<FONT 
color=#282828 size=2>, 1<FONT 
color=#282828 size=2>,1<FONT 
color=#282828 size=2>+2<FONT 
color=#282828 size=2>+4<FONT 
color=#282828 size=2>+8<FONT 
color=#282828 size=2>,1<FONT 
color=#282828 size=2> );<FONT color=#0000ff 
size=2>
AlertIf<FONT color=#282828 
size=2>(Buy1, sound2, WriteVal<FONT 
color=#282828 size=2>(C<FONT 
face=Arial>,<FONT color=#ff00ff 
size=2>3.2)+ <FONT color=#ff00ff 
size=2>" s2 Violation", <FONT 
color=#ff00ff size=2>5,<FONT 
color=#ff00ff size=2>1+<FONT 
color=#ff00ff size=2>2+<FONT 
color=#ff00ff size=2>4+<FONT 
color=#ff00ff size=2>8,<FONT 
color=#ff00ff size=2>1 
);
AlertIf<FONT color=#282828 
size=2>(Sell<FONT 
color=#282828 size=2>, sound,<FONT color=#0000ff 
size=2>WriteVal(<FONT 
size=2>C<FONT color=#282828 
size=2>,3.2<FONT color=#282828 
size=2>)+ " Violation"<FONT 
color=#282828 size=2>, 2<FONT 
color=#282828 size=2>,1<FONT 
color=#282828 size=2>+2<FONT 
color=#282828 size=2>+4<FONT 
color=#282828 size=2>+8<FONT 
color=#282828 size=2>,1<FONT 
color=#282828 size=2> );<FONT color=#0000ff 
size=2>
AlertIf<FONT color=#282828 
size=2>(Sell1, sound, WriteVal<FONT 
color=#282828 size=2>(C<FONT 
face=Arial>,<FONT color=#ff00ff 
size=2>3.2)+ <FONT color=#ff00ff 
size=2>" s2 Violation", <FONT 
color=#ff00ff size=2>6,<FONT 
color=#ff00ff size=2>1+<FONT 
color=#ff00ff size=2>2+<FONT 
color=#ff00ff size=2>4+<FONT 
color=#ff00ff size=2>8,<FONT 
color=#ff00ff size=2>1 
);
AlertIf<FONT color=#282828 
size=2>(Buy2, sound2, WriteVal<FONT 
color=#282828 size=2>(C<FONT 
face=Arial>,<FONT color=#ff00ff 
size=2>3.2)+ <FONT color=#ff00ff 
size=2>" s3 Violation", <FONT 
color=#ff00ff size=2>7,<FONT 
color=#ff00ff size=2>1+<FONT 
color=#ff00ff size=2>2+<FONT 
color=#ff00ff size=2>4+<FONT 
color=#ff00ff size=2>8,<FONT 
color=#ff00ff size=2>1 
);
AlertIf<FONT color=#282828 
size=2>(Sell2, sound, WriteVal<FONT 
color=#282828 size=2>(C<FONT 
face=Arial>,<FONT color=#ff00ff 
size=2>3.2)+ <FONT color=#ff00ff 
size=2>" s3 Violation", <FONT 
color=#ff00ff size=2>8,<FONT 
color=#ff00ff size=2>1+<FONT 
color=#ff00ff size=2>2+<FONT 
color=#ff00ff size=2>4+<FONT 
color=#ff00ff size=2>8,<FONT 
color=#ff00ff size=2>1 );
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: mmqp 
[mailto:mmqp@xxxxxxxxx]Sent: Friday, October 10, 2003 2:52 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
ALERTIF () help please.Can someone give example of 
"type" and "lookback" examples or usages?  I do not understand these 
two parameters very well. TIASend 
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
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. 







Yahoo! Groups Sponsor












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 the Yahoo! Terms of Service.