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

Re: Indicator color change problem



PureBytes Links

Trading Reference Links

At 06:12 PM 5/29/2004, Abhijit Dey wrote:

>And if you insist on plotting it as lines, changing the indicator as follows
>should have the desired effect
>
>If Plot1 >= 0 Then
> SetPlotColor[1](1, UpColor)
>Else
> SetPlotColor[1](1, DnColor);

That changes the previous point and the complete line following that point after the fact (all except the last point, obviously).

So half of the line crossing zero is still wrong (the other half).

Lines are drawn between points and the code is executed at the points so there is no way to color half a line a different color...

Bob Fulks