[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




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 title=amibroker@xxxxxxxxxxxxxxx 
  href="">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 
  face="Courier New" color=#0000ff 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.






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.