ZIGZAG Oscillator.. A little help please..

 

Hello Everybody,

My names Dave and I am trying to create a Zigzag oscillator indicator that resembles a MACD - but without the MA line.

I have tried changing the code so as the ZZ appears in a separate window, THAT part worked. :)

But I cannot seem to make it operate so as when the ZZ is up the histogram turns green and when the histogram is down it turns red. :(

My coding knowledge is limited at best. :(

If anybody has any ideas on how I can resolve this problem,, I would be very grateful for your input.

Happy pipping for 2012!

Dave.

 
If you want Green and Red you need 2 histograms and 4 buffers.
Reason: