in Search

How can I make my volume green for up bars and red for down?

Last post 11-02-2004, 16:34 by Patrick. 0 replies.
Sort Posts: Previous Next
  •  11-02-2004, 16:34 163

    How can I make my volume green for up bars and red for down?

    To accomplish this, two custom indicators will be needed.
    The following formulas will display the volume green when the close price is greater than the prior closing price and display the volume red when the close price is less than the prior closing price. To create the indicator;

    Open the Tools menu
    Select Indicator Builder
    Click on New.
    Name your indicator (for example Volume Up)
    Enter the following syntax into the Formula field:

    If(C>=ref(C,-1),V,0)

    Click OK

    Open the Tools menu
    Select Indicator Builder
    Click on New.
    Name your indicator (for example Volume Down)
    Enter the following syntax into the Formula field:

    If(C<ref(C,-1),V,0)

    Click on OK.

    You should now have 2 new indicators in your QuickList.
    Apply the Volume Up indicator to a new inner windows in your chart
    Right click on the indicator and select properties.
    Change the color to green and style histogram, and then click on OK
    Apply the Volume Down indicator to same inner window as the Volume Up
    Right click on the indicator and select properties.
    Change the color to red and style histogram, and then click on OK

    I would recommend saving this as a template, perhaps your default template, so that you do not have to do this every time you want it applied to a chart.
    My Site
View as RSS news feed in XML