Sunday 14 October 2012

VWAP: Problem With Colour Change

I been trying to post my Volume Weighted Average Price (VWAP) indicator, but I'm having a problem with the change over of colour when price closes above/below the VWAP line. Here is a picture of said problem:

VWAP,volume,moving average,MA
 You can see where the circles are that the red line should have disappeared as soon as the bar closed. But as it turns out the red line will stop moving in the direction of the price movement as soon as the price cross the line, and if the price remains above the line the red line will then cease to exist, and the blue line will take over.
So, the problem lies with the red line not moving with the price action even though the bar has yet to close.


This is my predicament. Hopefully I can come up with some sort of solution to the problem. But for now the posting of the VWAP indicator will be postponed.

No comments:

Post a Comment