[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




<FONT 
face="Courier New" color=#000000 size=3>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">AlertIf<FONT 
color=#000000>(Buy,""<FONT 
color=#000000>,"BUY"<FONT 
color=#000000>,0<FONT 
color=#000000>,15<FONT 
color=#000000>,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


ADVERTISEMENT



<img
src="" width=300 height=250 border=0>











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.