Anybody have any ideas on this?

Thanks.

--- In [email protected], "richcb750" <[EMAIL PROTECTED]> wrote:
>
> The following formula acts right when I use the commented out PlotText
> line.  But if I use the PlotShapes line instead, the shape is plotted
> for every bar.  What am I doing wrong with the plotshapes?
> 
> Thanks,
> Richard
> 
> bcount = 0;
> bperfect = 0;
> for( i = 4; i < BarCount; i++ ) 
> { 
>  if(bcount == 9)
>  {
>       bcount = 0;
>       bperfect = 0; 
>  }
>  if(Close[i] < Close[i-4])
>  {
>       bcount++;       
>       // for perfection, low of 8 or 9 must be less than lows of both 6 and 7
>       if(bcount==8)
>       {
>               if((Low[i] < Low[i-1]) AND (Low[i] < Low[i-2]))
>                       bperfect = 1;
>       }
>       if(bcount==9 AND bperfect==0)
>       {
>               if((Low[i] < Low[i-2]) AND (Low[i] < Low[i-3]))
>                       bperfect = 1;
>       }
>  }
>  else
>  {
>       bcount = 0;
>       bperfect =0;
>  }
>  if((bcount == 9) AND (bperfect==1)){
>       //PlotText( "" + bcount, i, L[ i ]-.10, colorRed ); 
>       PlotShapes(shapeDigit9, colorBlue, 0, L[i], -20);       
>  }
>  else if(bcount){
>       PlotText( "" + bcount, i, L[ i ]-.10, colorBlack ); 
>  }
> }
>


Reply via email to