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

RE: [amibroker] AB Alerts & my first AFL attempt



PureBytes Links

Trading Reference Links




Yes, 
perhaps it is easier to think of each bar rather than each day. AB looks at 
every bar so if you are looking at 15 min bars and ask for ref(c,-1) then you 
are looking at the close of the previous bar (prev 15 min)..
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: Richard Jay 
[mailto:lists@xxxxxxxxxxxxxxxxxx]Sent: Saturday, June 07, 2003 7:45 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker] AB 
Alerts & my first AFL attempt
Oh I meant to say - this is with Realtime data ... so it's 
each tick not todays closing price..... or is each tick regarded as a 
close ?
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  walt 
  
  To: <A 
  href="" 
  title=amibroker@xxxxxxxxxxxxxxx>amibroker@xxxxxxxxxxxxxxx 
  Sent: Sunday, June 08, 2003 12:32 
AM
  Subject: RE: [amibroker] AB Alerts & 
  my first AFL attempt
  
  <SPAN 
  class=546132123-07062003>Almost 
  OK, use "ref" to get the previous close:
  <SPAN 
  class=546132123-07062003> 
  <FONT 
  color=#0000ff face="Courier New" size=3>prevCl= 
  ref(close,-1);
  <SPAN 
  class=546132123-07062003> 
  <FONT 
  color=#0000ff>//buy if current close crosses 
  above previous close rule...
  <FONT 
  color=#0000ff>Buy = Cross( close, 
  prevCl+prevCl*0.35/100 );
  <SPAN 
  class=546132123-07062003> 
  <SPAN 
  class=546132123-07062003>//sell if current close crosses below previous close 
  rule...
  <FONT 
  color=#0000ff>Sell = 
  Cross(prevCl-prevCl*0.35/100, close);
  <FONT 
  face="Courier New"><FONT 
  size=+0>AlertIf(Buy,<FONT 
  color=#ff00ff>"",<FONT 
  color=#ff00ff>"BUY",<FONT 
  color=#ff00ff>0,<FONT 
  color=#ff00ff>15,<FONT 
  color=#ff00ff>1<FONT 
  color=#000000>);
  <FONT 
  color=#0000ff>
  AlertIf<FONT 
  face="Courier New">(Sell,<FONT 
  color=#ff00ff>"",<FONT 
  color=#ff00ff>"SELL",<FONT 
  color=#ff00ff>0,<FONT 
  color=#ff00ff>15,<FONT 
  color=#ff00ff>2);<FONT 
  size=1>
  <FONT 
  color=#0000ff> 
  <FONT 
  color=#0000ff>                                
  Walt
  
    <FONT face=Tahoma 
    size=2>-----Original Message-----From: Richard Jay 
    [mailto:lists@xxxxxxxxxxxxxxxxxx]Sent: Saturday, June 07, 2003 
    7:11 PMTo: amibroker@xxxxxxxxxxxxxxxSubject: 
    [amibroker] AB Alerts & my first AFL attemptI 
    have a number of mechanical trading rules which I'd like to 
    incorporateinto AB.For example: Take PREV CLOSE, multiply by 
    0.35 then divide by 100.  Add thisto PREV CLOSE and BUY when next 
    day crosses above. Subtract this from PREVCLOSE and SELL when next day 
    crosses below.Rather than doing all the math manually, I'd like to 
    incorporate this intoAB as an alert.  I have two formulae so 
    far:Buy = Cross( Avg, Close+Close*0.35/100 );Sell = Cross( Avg, 
    Close-Close*0.35/100 );Does that "say" the same as my description 
    above ??  If so, what do I donext to incorporate this as an alert 
    ?R.Send 
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.