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

Coding help for color?



PureBytes Links

Trading Reference Links

Randy Wrote: 
>I have been trying to plot a moving average where if it is going up it is
one color and if it is going down >it's a different color. I've done it a
couple of different ways but not receiving the desired effect.  One of >the
ways is listed below but it lags one bar in color.  Can someone please help
with the correct method.

Dear Randy,

	What I've done in a similar situation is to use two plots, that is
		If Direction = +1 then plot1( upvalue, "goingup" );
		If Direction = -1 then plot2( downvalue, "goingdown" );
	Then, simply set the properties of plot1 and plot2 style setting to plot
in points with a medium-heavy 'linesize'. Presto a line of big dots, one
color going up, and another color going down.
	I've been using TS4 until today. Assume it will work in TS6.

-- Arthur Cronos




_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
         MOBIUS MEGATAR TAPPING BASSES  
'Making Music Easier'   http://www.megatar.com
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/