Colour of MA Line

 
Hi

Is it possible to change the colour of a moving average line (red/blue) depending on whether the current value is greater or less than the value on the previous bar ? If I can how do i manage the colour of the current bit of the line as the current moving average value changes

Thanks - any help is much appreciated

Paul
 
apologies i found an example !