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

Re: [amibroker] Canīt detect proper cum values - TJ please read



PureBytes Links

Trading Reference Links




Hello TJ,
 
thanks so much for this piece.
 
I still have to check if itīs EXACTLY what I need 
but I can already say itīs f§$%§% close!
 
Please allow some time to digest.
 
I may be back with some questions but this will 
take a while!!!!
 
Highly appreciate your 
help!
 
Sorry for the large image file - I forgot to 
convert!
 
Markus
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Tomasz Janeczko 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Monday, February 17, 2003 8:22 
  PM
  Subject: Re: [amibroker] Canīt detect 
  proper cum values - TJ please read
  
  Markus,
   
  Thank you for the chart and explanation of what you are 
  after. 
   
  (BTW: next time please send pictures as GIF or JPEG because 
  BMP files are very, very large).
   
  The code is provided below, it is based on the code 
  presented previously on this list:
  <A 
  href="">http://groups.yahoo.com/group/amibroker/message/24576
   
   
  
  /* SWING CHART 
  */
  swingsize = <FONT face="Courier New" color=#ff00ff 
  size=2>10;
  HP = <FONT face="Courier New" color=#0000ff 
  size=2>HHVBars( High, swingsize 
  ) == 0<FONT 
  face="Courier New" size=2>;
  LP = <FONT face="Courier New" color=#0000ff 
  size=2>LLVBars( Low, swingsize ) 
  == 0<FONT 
  face="Courier New" size=2>;<FONT face="Courier New" color=#0000ff 
  size=2>
  EnableScript(<FONT 
  face="Courier New" color=#ff00ff size=2>"jscript"<FONT 
  face="Courier New" size=2>);
  <%
  result = VBArray(AFL(<FONT face="Courier New" color=#ff00ff 
  size=2>"High")).toArray();
  function TrendLine( starti, startv, endi, endv )
  {
  for( j = starti; j <= endi; j++ )
  { 
  result[ j ] = startv + ( j - starti )*(endv-startv)/(endi-starti);
  }
  }
  High = VBArray(AFL(<FONT face="Courier New" color=#ff00ff 
  size=2>"High")).toArray();
  Low = VBArray(AFL(<FONT face="Courier New" color=#ff00ff 
  size=2>"Low")).toArray();
  HP = VBArray(AFL(<FONT face="Courier New" color=#ff00ff 
  size=2>"HP")).toArray();
  LP = VBArray(AFL(<FONT face="Courier New" color=#ff00ff 
  size=2>"LP")).toArray();
  endi = -1<FONT 
  face="Courier New" size=2>;
  starti = -<FONT face="Courier New" color=#ff00ff 
  size=2>1;
  dir = 0<FONT 
  face="Courier New" size=2>;
  for( i = High.length - <FONT face="Courier New" color=#ff00ff 
  size=2>0; i >= <FONT 
  face="Courier New" color=#ff00ff size=2>0<FONT face="Courier New" 
  size=2>; i-- )
  {
  if( dir == <FONT face="Courier New" color=#ff00ff 
  size=2>1 && LP[ i ] )
  {
  TrendLine( i, Low[ i ], endi, endv );
  endi = i;
  endv = Low[ i ];
  dir = -1<FONT 
  face="Courier New" size=2>;
  }
  else
  if( dir == -<FONT face="Courier New" color=#ff00ff 
  size=2>1 && HP[ i ] )
  {
  TrendLine( i, High[ i ], endi, endv );
  endi = i;
  endv = High[ i ];
  dir = 1<FONT 
  face="Courier New" size=2>;
  }
  else
  if( dir == <FONT face="Courier New" color=#ff00ff 
  size=2>0 && endi == 
  -1<FONT 
  face="Courier New" size=2> && LP[ i ] ) 
  {
  endi = i;
  endv = Low[ i ];
  dir = -1<FONT 
  face="Courier New" size=2>;
  }
  else
  if( dir == <FONT face="Courier New" color=#ff00ff 
  size=2>0 && endi == 
  -1<FONT 
  face="Courier New" size=2> && HP[ i ] ) 
  {
  endi = i;
  endv = High[ i ];
  dir = 1<FONT 
  face="Courier New" size=2>;
  }
  }
  AFL(<FONT face="Courier New" color=#ff00ff 
  size=2>"Graph0")=result;
  %>
  Graph0Color=colorRed;
  Graph1=Close;
  Graph1Style=<FONT face="Courier New" color=#ff00ff 
  size=2>64;
  Best regards,Tomasz 
  Janeczkoamibroker.com
  <BLOCKQUOTE 
  >
    ----- Original Message ----- 
    <DIV 
    >From: 
    IVA GmbH 
    To: <A title=amibroker@xxxxxxxxxxxxxxx 
    href="">amibroker@xxxxxxxxxxxxxxx 
    Sent: Monday, February 17, 2003 8:10 
    PM
    Subject: Re: [amibroker] Canīt detect 
    proper cum values - TJ please read
    
    All rite, TJ.
     
    Please have a look at the accompanying 
    chart:
     
    The yellow circled spots are the ones Iīm 
    interested in. More exactly: the highest high in the square in january 
    (labeled in my code "firstswingtop") and the lowest low in december (labeled 
    "firstswingbottom").
     
    The next top would be analogue "secondswingtop" 
    (at the end of november/beginning of december) and the next bottom would be 
    "secondswingbottom (occurring at the beginning of 
    november). 
     
    Iīll again attach the code for firstswingtop 
    and firstswingbottom.
     
    I came up with this code to find those price 
    extremes (or swing tops as if they are referred to).
     
    By simply changingthe variable "swingsize" I 
    can easily switch between timeframes of my choice.
     
    A later step would be to ask AB to connect 
    those price extremes (the green and red line) by using the plot function 
    which would give me this swing chart (i.e. the lines in the chart). But, of 
    course, this is another thing to work on...
     
    Does this give you an explanation what I intend 
    to do? Please fell free to ask back anytime!
     
     
     
    - - - - - - - - - -
    
    swingsize=5<FONT 
    face="Courier New" color=#6600aa>;
    weeklyrange=(<FONT face="Courier New" 
    color=#0000ff>Ref(<FONT 
    face="Courier New" color=#0000ff>HHV<FONT face="Courier New" 
    color=#6600aa>(<FONT face="Courier New" 
    color=#000000>High<FONT face="Courier New" 
    color=#6600aa>,swingsize),-<FONT face="Courier New" 
    color=#ff00ff>1)-<FONT 
    face="Courier New" color=#0000ff>Ref<FONT face="Courier New" 
    color=#6600aa>(LLV<FONT 
    face="Courier New" color=#6600aa>(<FONT face="Courier New" 
    color=#000000>Low<FONT face="Courier New" 
    color=#6600aa>,swingsize),-<FONT face="Courier New" 
    color=#ff00ff>1))*<FONT 
    face="Courier New" color=#ff00ff>0.1<FONT face="Courier New" 
    color=#6600aa>;
    Thresholddown=<FONT face="Courier New" 
    color=#0000ff>Ref(<FONT 
    face="Courier New" color=#0000ff>LLV<FONT face="Courier New" 
    color=#6600aa>(<FONT face="Courier New" 
    color=#000000>Low<FONT face="Courier New" 
    color=#6600aa>,swingsize),-<FONT face="Courier New" 
    color=#ff00ff>1<FONT face="Courier New" 
    color=#6600aa>)-weeklyrange;
    Thresholdup=Ref<FONT 
    face="Courier New" color=#6600aa>(<FONT face="Courier New" 
    color=#0000ff>HHV<FONT face="Courier New" 
    color=#6600aa>(<FONT face="Courier New" 
    color=#000000>High<FONT face="Courier New" 
    color=#6600aa>,swingsize),-<FONT face="Courier New" 
    color=#ff00ff>1<FONT face="Courier New" 
    color=#6600aa>)+weeklyrange;
    Linechangeup=<FONT face="Courier New" 
    color=#000000>High<FONT face="Courier New" 
    color=#6600aa>>Thresholdup;
    Linechangedown=<FONT face="Courier New" 
    color=#000000>Low<FONT face="Courier New" 
    color=#6600aa><thresholddown;
    z=Linechangedown;
    y=linechangeup;
    firstlinechangedown=<FONT face="Courier New" 
    color=#0000ff>LastValue<FONT face="Courier New" 
    color=#6600aa>(<FONT face="Courier New" 
    color=#0000ff>ValueWhen<FONT face="Courier New" 
    color=#6600aa>(z,<FONT face="Courier New" 
    color=#0000ff>Cum(<FONT 
    face="Courier New" color=#ff00ff>1<FONT face="Courier New" 
    color=#6600aa>),1<FONT 
    face="Courier New" color=#6600aa>));
    firstlinechangeup=<FONT face="Courier New" 
    color=#0000ff>LastValue<FONT face="Courier New" 
    color=#6600aa>(<FONT face="Courier New" 
    color=#0000ff>ValueWhen<FONT face="Courier New" 
    color=#6600aa>(y,<FONT face="Courier New" 
    color=#0000ff>Cum(<FONT 
    face="Courier New" color=#ff00ff>1<FONT face="Courier New" 
    color=#6600aa>),1<FONT 
    face="Courier New" color=#6600aa>));
    firstswingtop=<FONT face="Courier New" 
    color=#0000ff>Ref(<FONT 
    face="Courier New" color=#0000ff>HHV<FONT face="Courier New" 
    color=#6600aa>(<FONT face="Courier New" 
    color=#000000>High<FONT face="Courier New" 
    color=#6600aa>,(firstlinechangedown-firstlinechangeup)+<FONT 
    face="Courier New" color=#ff00ff>1<FONT face="Courier New" 
    color=#6600aa>),-(<FONT face="Courier New" 
    color=#0000ff>LastValue<FONT face="Courier New" 
    color=#6600aa>(Cum<FONT 
    face="Courier New" color=#6600aa>(<FONT face="Courier New" 
    color=#ff00ff>1<FONT face="Courier New" 
    color=#6600aa>))-firstlinechangedown));
    secondlinechangedown=<FONT face="Courier New" 
    color=#0000ff>LastValue<FONT face="Courier New" 
    color=#6600aa>(<FONT face="Courier New" 
    color=#0000ff>ValueWhen(z 
    AND<FONT 
    face="Courier New" color=#6600aa> <FONT face="Courier New" 
    color=#0000ff>Cum(<FONT 
    face="Courier New" color=#ff00ff>1<FONT face="Courier New" 
    color=#6600aa>)<<FONT face="Courier New" 
    color=#0000ff>LastValue<FONT face="Courier New" 
    color=#6600aa>(firstlinechangeup),<FONT face="Courier New" 
    color=#0000ff>Cum(<FONT 
    face="Courier New" color=#ff00ff>1<FONT face="Courier New" 
    color=#6600aa>),1<FONT 
    face="Courier New" color=#6600aa>));
    secondlinechangeup=<FONT face="Courier New" 
    color=#0000ff>LastValue<FONT face="Courier New" 
    color=#6600aa>(<FONT face="Courier New" 
    color=#0000ff>ValueWhen(y 
    AND<FONT 
    face="Courier New" color=#6600aa> <FONT face="Courier New" 
    color=#0000ff>Cum(<FONT 
    face="Courier New" color=#ff00ff>1<FONT face="Courier New" 
    color=#6600aa>)<<FONT face="Courier New" 
    color=#0000ff>LastValue<FONT face="Courier New" 
    color=#6600aa>(secondlinechangedown),<FONT face="Courier New" 
    color=#0000ff>Cum(<FONT 
    face="Courier New" color=#ff00ff>1<FONT face="Courier New" 
    color=#6600aa>),1<FONT 
    face="Courier New" color=#6600aa>));
    firstswingbottom=<FONT face="Courier New" 
    color=#0000ff>Ref(<FONT 
    face="Courier New" color=#0000ff>LLV<FONT face="Courier New" 
    color=#6600aa>(<FONT face="Courier New" 
    color=#000000>Low<FONT face="Courier New" 
    color=#6600aa>,(firstlinechangeup-secondlinechangedown)+<FONT 
    face="Courier New" color=#ff00ff>1<FONT face="Courier New" 
    color=#6600aa>),-(<FONT face="Courier New" 
    color=#0000ff>LastValue<FONT face="Courier New" 
    color=#6600aa>(Cum<FONT 
    face="Courier New" color=#6600aa>(<FONT face="Courier New" 
    color=#ff00ff>1<FONT face="Courier New" 
    color=#6600aa>))-firstlinechangeup));<FONT face="Courier New" 
    color=#000000>
    Filter<FONT face="Courier New" 
    color=#6600aa>=firstlinechangedown>firstlinechangeup;<FONT 
    face="Courier New" color=#0000ff>
    AddColumn(<FONT 
    face="Courier New" color=#0000ff>Cum<FONT face="Courier New" 
    color=#6600aa>(1<FONT 
    face="Courier New" color=#6600aa>), <FONT face="Courier New" 
    color=#ff00ff>"total bars"<FONT face="Courier New" 
    color=#6600aa>,1.0<FONT 
    face="Courier New" color=#6600aa>);<FONT face="Courier New" 
    color=#0000ff>
    AddColumn<FONT face="Courier New" 
    color=#6600aa>(firstswingtop,<FONT face="Courier New" 
    color=#ff00ff>"1. swing top"<FONT face="Courier New" 
    color=#6600aa>,1.2<FONT 
    face="Courier New" color=#6600aa>);<FONT face="Courier New" 
    color=#0000ff>
    AddColumn<FONT face="Courier New" 
    color=#6600aa>(firstswingbottom,<FONT face="Courier New" 
    color=#ff00ff>"1. swing bottom"<FONT face="Courier New" 
    color=#6600aa>,1.2<FONT 
    face="Courier New" color=#6600aa>);
     
     
     
    <BLOCKQUOTE 
    >
      ----- Original Message ----- 
      <DIV 
      >From: 
      Tomasz 
      Janeczko 
      To: <A 
      title=amibroker@xxxxxxxxxxxxxxx 
      href="">amibroker@xxxxxxxxxxxxxxx 
      
      Sent: Monday, February 17, 2003 7:41 
      PM
      Subject: Re: [amibroker] Canīt detect 
      proper cum values - TJ please read
      
      Markus,
       
      Franky I don't understand what is the 
      problem.
      One thing is for sure that using LastValue function 
      you
      get the LAST not the first value.  
       
      The first occurence could be retrieved this 
      way:
       
      condition = your condition here (may generate repetitive 
      signals)
      condfirsttime = Sum( Flip( condition, 0 ) ) == 
      1;
       
      CumValueAtFirstOccurence = ValueWhen( condfirsttime, 
      Cum(1) ); 
       
       
      I suggest the following: since the picture is better 
      than 1000 words
      it would be easier to understand what you are trying to 
      achieve if
      you make a screenshot of some chart and draw on this 
      chart
      what points you are interested in and annotate this 
      chart so it
      is clear what your target is. 
      Best regards,Tomasz 
      Janeczkoamibroker.com
      <BLOCKQUOTE 
      >
        ----- Original Message ----- 
        <DIV 
        >From: 
        IVA GmbH 
        
        To: <A 
        title=amibroker@xxxxxxxxxxxxxxx 
        href="">amibroker@xxxxxxxxxxxxxxx 
        
        Sent: Monday, February 17, 2003 
        5:37 PM
        Subject: Re: [amibroker] Canīt 
        detect proper cum values - TJ please read
        
        Jayson,
         
        sorry to cause ya so much 
        headache.
         
        I already tried your suggestion before I 
        asked online.
         
        If I do it as you now said, Iīm only given 
        the last barīs cum value (interestingly for firstswingtop AND for 
        firstswingbottom?????????????!!!!!!!!).
         
        Maybe TJ knows a 
        workaround?????
         
        TJ???????????????
         
        Markus
        <BLOCKQUOTE 
        >
          ----- Original Message ----- 
          <DIV 
          >From: 
          <A title=jcasavant@xxxxxxxxxxxx 
          href="">Jayson 
          To: <A 
          title=amibroker@xxxxxxxxxxxxxxx 
          href="">amibroker@xxxxxxxxxxxxxxx 
          
          Sent: Monday, February 17, 2003 
          5:27 PM
          Subject: RE: [amibroker] Canīt 
          detect proper cum values - TJ please read
          
          <SPAN 
          class=008182216-17022003>Markus,
          <SPAN 
          class=008182216-17022003>if firstswing returns a true or false 
          then  eliminating the h==firstswing and simply looking for 
          firstswing may solve your problem.so...
          <SPAN 
          class=008182216-17022003> 
          <SPAN 
          class=793204015-17022003><FONT face=Arial 
          color=#0000ff> Value1=Valuewhen(firstswingtop,cum(1),1)     
          
          <FONT face=Arial color=#0000ff 
          size=2>Value2=Valuewhen(firstswingbottom,cum(1),1)
           
          <SPAN 
          class=008182216-17022003>should allow you to find the last occurrence 
          of firstswing.......
           Jayson 
          <FONT face=Tahoma 
          size=2>-----Original Message-----From: funnybiz@xxxxxx 
          [mailto:funnybiz@xxxxxx]Sent: Monday, February 17, 2003 
          11:02 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: 
          Re: [amibroker] Canīt detect proper cum values - TJ please 
          read
          Hello Jayson,
           
          have I tried WHAT?
           
          Markus
          <BLOCKQUOTE 
          >
            ----- Original Message ----- 
            <DIV 
            >From: 
            <A title=jcasavant@xxxxxxxxxxxx 
            href="">Jayson 
            To: <A 
            title=amibroker@xxxxxxxxxxxxxxx 
            href="">amibroker@xxxxxxxxxxxxxxx 
            
            Sent: Monday, February 17, 2003 
            4:46 PM
            Subject: RE: [amibroker] Canīt 
            detect proper cum values - TJ please read
            
            <SPAN 
            class=793204015-17022003>Markus,
            <SPAN 
            class=793204015-17022003> 
            <SPAN 
            class=793204015-17022003>I do not know how you calculated firstswing 
            but have you tried...
            <SPAN 
            class=793204015-17022003> 
            
            <FONT face=Arial color=#000000 
            size=2>Value1=Valuewhen(firstswingtop,cum(1),1)     
            and
            <FONT face=Arial color=#000000 
            size=2>Value2=Valuewhen(firstswingbottom,cum(1),1)
            <SPAN 
            class=793204015-17022003>In your original cum(1) would be returned 
            for the last time High was equal to your trigger if this number 
            occurs several times than your cum(1) could be 
            misrepresented......
             Jayson 

            <FONT face=Tahoma 
            size=2>-----Original Message-----From: funnybiz@xxxxxx 
            [mailto:funnybiz@xxxxxx]Sent: Monday, February 17, 2003 
            10:05 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: 
            [amibroker] Canīt detect proper cum values - TJ please 
            read
            
            TJ,
            Iīm trying to retrieve 
            the cum values for the two variable below clled "firstswingtop" 
            and "firstswingbottom". I sent the complete code so that you 
            understand what those two variable are made up of.
            I figured that the cum values were 
            this
            <FONT face=Arial 
            color=#000000>Value1=Valuewhen(h==firstswingtop,cum(1),1)     
            and
            <FONT face=Arial 
            color=#000000>Value2=Valuewhen(l==firstswingbottom,cum(1),1)
            but I aly get the last bars cum 
            value. Why is that since the conditions above canīt apply to this 
            very last bar????????
            Iīm really puzzled, since 
            firstswingtop and firstswingbottom detect the 
            right high and low values    
;-))
            Markus
            - - - - - - - - - - - - - - - - - 
            - - - - - - - - - - - 
            swingsize=<FONT face="Courier New" 
            color=#ff00ff>5;
            weeklyrange=(<FONT face="Courier New" 
            color=#0000ff>Ref<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#0000ff>HHV<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#000000>High<FONT face="Courier New" 
            color=#6600aa>,swingsize),-<FONT face="Courier New" 
            color=#ff00ff>1<FONT face="Courier New" 
            color=#6600aa>)-<FONT face="Courier New" 
            color=#0000ff>Ref<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#0000ff>LLV<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#000000>Low<FONT face="Courier New" 
            color=#6600aa>,swingsize),-<FONT face="Courier New" 
            color=#ff00ff>1<FONT face="Courier New" 
            color=#6600aa>))*<FONT face="Courier New" 
            color=#ff00ff>0.1;
            Thresholddown=<FONT face="Courier New" 
            color=#0000ff>Ref<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#0000ff>LLV<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#000000>Low<FONT face="Courier New" 
            color=#6600aa>,swingsize),-<FONT face="Courier New" 
            color=#ff00ff>1<FONT face="Courier New" 
            color=#6600aa>)-weeklyrange;
            Thresholdup=<FONT face="Courier New" 
            color=#0000ff>Ref<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#0000ff>HHV<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#000000>High<FONT face="Courier New" 
            color=#6600aa>,swingsize),-<FONT face="Courier New" 
            color=#ff00ff>1<FONT face="Courier New" 
            color=#6600aa>)+weeklyrange;
            Linechangeup=<FONT face="Courier New" 
            color=#000000>High<FONT face="Courier New" 
            color=#6600aa>>Thresholdup;
            Linechangedown=<FONT face="Courier New" 
            color=#000000>Low<FONT face="Courier New" 
            color=#6600aa><thresholddown;
            z=Linechangedown;
            y=linechangeup;
            firstlinechangedown=<FONT face="Courier New" 
            color=#0000ff>LastValue<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#0000ff>ValueWhen<FONT face="Courier New" 
            color=#6600aa>(z,<FONT face="Courier New" 
            color=#0000ff>Cum<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#ff00ff>1<FONT face="Courier New" 
            color=#6600aa>),<FONT face="Courier New" 
            color=#ff00ff>1));
            firstlinechangeup=<FONT face="Courier New" 
            color=#0000ff>LastValue<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#0000ff>ValueWhen<FONT face="Courier New" 
            color=#6600aa>(y,<FONT face="Courier New" 
            color=#0000ff>Cum<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#ff00ff>1<FONT face="Courier New" 
            color=#6600aa>),<FONT face="Courier New" 
            color=#ff00ff>1));
            firstswingtop=<FONT face="Courier New" 
            color=#0000ff>Ref<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#0000ff>HHV<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#000000>High<FONT face="Courier New" 
            color=#6600aa>,(firstlinechangedown-firstlinechangeup)+<FONT 
            face="Courier New" color=#ff00ff>1<FONT face="Courier New" 
            color=#6600aa>),-(<FONT face="Courier New" 
            color=#0000ff>LastValue<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#0000ff>Cum<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#ff00ff>1<FONT face="Courier New" 
            color=#6600aa>))-firstlinechangedown));
            secondlinechangedown=<FONT face="Courier New" 
            color=#0000ff>LastValue<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#0000ff>ValueWhen<FONT face="Courier New" 
            color=#6600aa>(z <FONT face="Courier New" 
            color=#000000>AND 
            Cum<FONT 
            face="Courier New" color=#6600aa>(<FONT face="Courier New" 
            color=#ff00ff>1<FONT face="Courier New" 
            color=#6600aa>)<<FONT face="Courier New" 
            color=#0000ff>LastValue<FONT face="Courier New" 
            color=#6600aa>(firstlinechangeup),<FONT face="Courier New" 
            color=#0000ff>Cum<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#ff00ff>1<FONT face="Courier New" 
            color=#6600aa>),<FONT face="Courier New" 
            color=#ff00ff>1));
            secondlinechangeup=<FONT face="Courier New" 
            color=#0000ff>LastValue<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#0000ff>ValueWhen<FONT face="Courier New" 
            color=#6600aa>(y <FONT face="Courier New" 
            color=#000000>AND 
            Cum<FONT 
            face="Courier New" color=#6600aa>(<FONT face="Courier New" 
            color=#ff00ff>1<FONT face="Courier New" 
            color=#6600aa>)<<FONT face="Courier New" 
            color=#0000ff>LastValue<FONT face="Courier New" 
            color=#6600aa>(secondlinechangedown),<FONT face="Courier New" 
            color=#0000ff>Cum<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#ff00ff>1<FONT face="Courier New" 
            color=#6600aa>),<FONT face="Courier New" 
            color=#ff00ff>1));
            firstswingbottom=<FONT face="Courier New" 
            color=#0000ff>Ref<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#0000ff>LLV<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#000000>Low<FONT face="Courier New" 
            color=#6600aa>,(firstlinechangeup-secondlinechangedown)+<FONT 
            face="Courier New" color=#ff00ff>1<FONT face="Courier New" 
            color=#6600aa>),-(<FONT face="Courier New" 
            color=#0000ff>LastValue<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#0000ff>Cum<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#ff00ff>1<FONT face="Courier New" 
            color=#6600aa>))-firstlinechangeup));<FONT 
            face="Courier New" color=#6600aa><FONT face="Courier New" 
            color=#000000>
            Filter<FONT face="Courier New" 
            color=#6600aa>=firstlinechangedown>firstlinechangeup;<FONT 
            face="Courier New" color=#0000ff>
            AddColumn<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#0000ff>Cum<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#ff00ff>1), 
            "total 
            bars",<FONT 
            face="Courier New" color=#ff00ff>1.0<FONT face="Courier New" 
            color=#6600aa>);
            AddColumn<FONT face="Courier New" 
            color=#6600aa>(firstswingtop,<FONT face="Courier New" 
            color=#ff00ff>"1. swing top"<FONT face="Courier New" 
            color=#6600aa>,<FONT face="Courier New" 
            color=#ff00ff>1.2<FONT face="Courier New" 
            color=#6600aa>);
            AddColumn<FONT face="Courier New" 
            color=#6600aa>(firstswingbottom,<FONT face="Courier New" 
            color=#ff00ff>"1. swing bottom"<FONT face="Courier New" 
            color=#6600aa>,<FONT face="Courier New" 
            color=#ff00ff>1.2<FONT face="Courier New" 
            color=#6600aa>);<FONT face="Courier New" 
            color=#6600aa>
            AddColumn<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#0000ff>MA<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#000000>Volume<FONT face="Courier New" 
            color=#6600aa>,<FONT face="Courier New" 
            color=#ff00ff>50<FONT face="Courier New" 
            color=#6600aa>),"50DMA 
            Vol.",<FONT 
            face="Courier New" color=#ff00ff>1.2<FONT face="Courier New" 
            color=#6600aa>);
            AddColumn<FONT face="Courier New" 
            color=#6600aa>(<FONT face="Courier New" 
            color=#000000>Close<FONT face="Courier New" 
            color=#6600aa>, "last 
            close",<FONT 
            face="Courier New" color=#ff00ff>1.2<FONT face="Courier New" 
            color=#6600aa>);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. 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. 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. 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. 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. 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. 
      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. 
    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









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.