DYO: Average Volume


The following DYO is marking when the volume is exceeding 1.5 times the 50 day average volume.  

Line A plots the volume bar in the Volume sub-window.   Plotting of volume by the chart has been turned off on the chart's property form.  Press CTRL-P to show the chart property form and uncheck the Show Volume checkbox.

Line B will calculate a 50 period Average of the volume.

Line C multiples the Average by 1.50 and plots this level as a Red curve in the Volume sub-window.

Line D tests to see if the Volume from Line A is greater than 1.5 * the Average Volume from Line C.

If the test on Line D fails, there is nothing more to do and execution aborts.

Line F tests to see if the Close is above the Open.

Line G will execute Line H if the Line F test is True.   Line H plots a Green volume bar when Close > Open.

Line I will execute Line J if the Line F test is False.   Line J plots a Red volume bar when Close <= Open.

This example is available as the AverageVol Template which can be downloaded from the Ensign web site using the Internet Services form.


Last modified 8/7/08 3:57 PM