PureBytes Links
Trading Reference Links
|
On Wed, 26 Dec 2001, Mike Eggleston wrote:
> Hi,
>
> I am plotting multiple values in the same indicator and I want plot3() to
> be plot1[1], and that's fine, but I want plot3() to change colors
> every bar. I tried
>
> vars: flip(0);
>
> if flip = 0 then begin
> setplotcolor(3, lightgray);
> flip = 1;
> end else begin
> setplotcolor(3, cyan);
> flip = 0;
> end;
>
> But this changes plot color on every tick rather than every bar.
> How do I do each minute/bar?
>
> Mike
>
found it:
Vars: modtime(0);
modtime = mod(currenttime, 15) + 1;
setplotcolor(4, modtime);
|