PureBytes Links
Trading Reference Links
|
Greg,
thank you very much - will try it.
Jan Philipp
----- Original Message -----
From: "dspm" <dspm02@xxxxxxxxxxx>
To: <realtraders@xxxxxxxxxxxxxxx>
Sent: Tuesday, March 04, 2003 10:24 AM
Subject: Re: [RT] Plotting indicator
> Jan Philipp,
>
> This modified stochastic may do what you want. Note that the colors
> appear different when it plots as lines instead of points, so an
> adjustment needs to be made. The difference is particularly apparant in
> realtime.
>
> /Greg
>
>
> {********************************************************}
> Inputs: Length(14), OverSold(20), OverBought(80);
>
> var: fk(0), fd(0);
> fk = FastK(Length);
> fd = FastD(Length);
>
> var: colr(0);
> if fk > OverBought then colr = red
> else if fk < OverSold then colr = green
> else colr = darkgray;
>
> Plot1(fk, "FastK", colr, default, iff(colr=darkgray,0,1));
> Plot2(fd, "FastD", blue, default, 0);
> Plot3(OverBought, "OverBought", darkgray, default, 0);
> Plot4(OverSold, "OverSold", darkgray, default, 0);
>
> { If Plot1 and Plot2 are points then the colors appear
> as you'd expect.
>
> But if they are lines, then a quirk in TS means the color
> won't be visible until the _following_ bar. So add this:
> }
>
> if colr <> colr[1] then begin
> Plot1[1](fk[1],"FastK",colr,default,iff(colr=darkgray,0,1));
> Plot2[1](fd[1], "FastD",blue,default,0);
> end;
>
>
>
> JHP wrote:
>
> > List,
> >
> >
> >
> > Is there a way to code an indicator to plot solid line of one color
> > for some values and different color for other values without getting
> > lines connecting the areas of the same color, e.g. to plot a
> >
> > stochastic with a different color for ob/os areas.
> > So far, the only way I found to avoid those lines is to plot point
> > or cross instead of a solid line.
> >
> >
> >
> > Jan Philipp
> >
>
>
>
> To unsubscribe from this group, send an email to:
> realtraders-unsubscribe@xxxxxxxxxxxxxxx
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
To unsubscribe from this group, send an email to:
realtraders-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|