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

Re: [amibroker] AFL Help/Graham



PureBytes Links

Trading Reference Links




Thanks Graham!  That works.
 
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  <A title=gkavanagh@xxxxxxxxxxxxx 
  href="">Graham 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Tuesday, November 04, 2003 6:12 
  PM
  Subject: RE: [amibroker] AFL Help
  
  ok, for that you would be 
  best to use Addtocomposite, then view the composite 
created
  Hopefully this will 
  work
  In AA run this 
  scan
  <FONT 
face=Arial> 
  
  newh = Cross(C, 
  ref(HHV,250),-1));
  
  newl = Cross( 
  ref(LLV,250),-1),C);
  <FONT 
  face=Arial>buy=0;
  <SPAN 
  class=518500500-05112003>AddToComposite( newh, "~advdec", "H", flags = 
  atcFlagDefaults );
  <SPAN 
  class=518500500-05112003>AddToComposite( newl, "~advdec", "L", flags = 
  atcFlagDefaults );
  <FONT 
  size=3> 
  <SPAN 
  class=518500500-05112003>
  Then in 
  your IB window selecting the ticker <FONT 
  face="Times New Roman">~advdec
  <FONT 
face=Arial> 
  <FONT 
  face=Arial>Plot(H-L,"adv-dec",4,4);
  <FONT 
face=Arial> 
  <FONT 
face=Arial> 
  Cheers,Graham<A 
  href="">http://groups.msn.com/ASXShareTrading<A 
  href="">http://groups.msn.com/FMSAustralia 
  
  
    
    <FONT 
    face=Tahoma size=2>-----Original Message-----From: Brian Elijah 
    [mailto:cadvantag@xxxxxxxxxxxxxx] Sent: Wednesday, 5 November 
    2003 7:57 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: 
    [amibroker] AFL Help
    Graham,
     
    I am trying to create a indicator that was 
    mentioned in the book "Trading for a Living". It talks about taking the 
    total number of new highs and total number of new lows of the entire market 
    and creating a indicator that has the Total New Highs minus Total New 
    Lows.
     
    Brian
    <BLOCKQUOTE 
    >
      ----- Original Message ----- 
      <DIV 
      >From: 
      <A title=gkavanagh@xxxxxxxxxxxxx 
      href="">Graham 
      To: <A 
      title=amibroker@xxxxxxxxxxxxxxx 
      href="">amibroker@xxxxxxxxxxxxxxx 
      
      Sent: Tuesday, November 04, 2003 5:44 
      PM
      Subject: RE: [amibroker] AFL 
      Help
      
      Brian, do you want 
      to find the values of the differences, or number of times they 
      happen?
      This should give you 
      the count of the number of times they occur and find the 
      difference
      <FONT 
      face=Arial> 
      newh = Cross(C, 
      ref(HHV,250),-1));
      
      newl = Cross( 
      ref(LLV,250),-1),C);
       
      newhyr = 
      cum(newh);
      newlyr = 
      cum(newl);
      <FONT 
      face=Arial> 
      newtotalyr = newhyr - 
      newlyr;
      <FONT 
      face=Arial> 
      Plot(newtotalyr, "", 
      4,4);
      <FONT 
      face=Arial> 
      <FONT 
      face=Arial> 
      <FONT 
      face=Arial> 
      Cheers,Graham<A 
      href="">http://groups.msn.com/ASXShareTrading<A 
      href="">http://groups.msn.com/FMSAustralia 
      
      
        
        <FONT 
        face=Tahoma size=2>-----Original Message-----From: Brian 
        Elijah [mailto:cadvantag@xxxxxxxxxxxxxx] Sent: Wednesday, 5 
        November 2003 6:31 AMTo: 
        amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] AFL 
        Help
        I am trying to write a scan that uses the 
        total new highs minus the total new lows and use it as a 
        indicator.
         
        I tried this but it doesnt give the total 
        of new highs or total of new lows. How do I get totals?
         
        
        newhyr = Ref<FONT 
        size=1>(HHV<FONT 
        size=1>(Close, 250<FONT 
        size=1>), -1);
        newl = Ref<FONT 
        size=1>(LLV<FONT 
        size=1>(Close, 2<FONT 
        color=#ff00ff size=1>50),-<FONT color=#ff00ff 
        size=1>1);
        newhightotal = newhyr - newl;
        Plot( 
        newhightotal, 
        "<FONT face="Courier New" 
        color=#ff00ff size=1>New High-New Low<FONT color=#ff00ff 
        size=1>", <FONT face="Courier New" 
        color=#ff00ff size=1>4,<FONT 
        face="Courier New" color=#ff00ff size=1>4<FONT 
        size=1>);
         
        Thanks,
        BrianSend 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. 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. 
      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. 
    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 









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.