| 
 PureBytes Links 
Trading Reference Links 
 | 
Jim:
>does someone have an indicator which would plot all intraday bars of a week
>in the same color?
>and every week a new color. so 4 different colors a month and it starts
>again from the beginning?
The problem here is that there are not 4 weeks in a month.  After
a while the first color will appear in the middle of a month.  If
that's acceptable, then I'd do it something like this:
 -----------------------------------------------------------------
var: barcolor(0);
array: weekcolor[3](0);
if currentbar = 1 then begin {initialize}
   weekcolor[0] = red;
   weekcolor[1] = yellow;
   weekcolor[2] = green;
   weekcolor[3] = magenta;
end;
if DayOfWeek(date) < DayOfWeek(date[1]) then begin
   barcolor = barcolor + 1;  {new week started, cycle bar color}
   if barcolor > 3 then barcolor = 0;
end;
PlotPaintBar(H, L, O, C, "chart", barcolor);
 -----------------------------------------------------------------
-- 
  ,|___    Alex Matulich -- alex@xxxxxxxxxxxxxx
 // +__>   Director of Research and Development
 //  \ 
 // __)    Unicorn Research Corporation -- http://unicorn.us.com
 |