Thread: How to code?
View Single Post
  #1033 (permalink)  
Old 06-17-2008, 11:24 AM
graemenash graemenash is offline
Junior Member
 
Join Date: Dec 2005
Posts: 11
graemenash is on a distinguished road
Line colour

Hi again

I am creating an indicator which draws a line across the chart (in a similar way to a moving average does).

The line is plotted with values taken from a buffer.

I'd like the line to be drawn green if the value on the current bar is higher than the value on the previous bar, and red if it is lower.

How can I do this?

Thanks in advance for any help.
Reply With Quote