Program 88 | Markplex Relative Volume

5 days ago
5

Program 88 calculates and plots the Markplex Relative Volume. For daily, weekly and monthly bars this is calculated by subtracting the moving average of the volume from the Current volume. This value is plotted.

For minute bars the average is calculated in two different ways.

In the first the relative volume is calculated in the same way as for daily, weekly and monthly bars.

In the second approach the program stores the volume at a specific time for a user input (Length) number of previous occurences. For example, if Length is set to 4, for the 10:00 bar the program would store the volume for this bar, the volume of the previous 10:00 bar, the volume for the 10:00 bar before that and the one before that. The sum of these values is then averaged and thisaverage value is used to calculate the Markplex Relative Volume. It is designed to be used with Intraday, time-based bars (e.g. 1 min, 10 min, 60min etc )

The program uses the Dictionary and Vector classes. For each different bar time on the chart a 'key' is stored. For a new key a vector is created and stored as the associated value. As the same time/key is encountered again the volume is added to the vector. When the vector exceeds Length the element at the zero position (i.e. the oldest) is deleted.

See https://markplex.com/easylanguage-programs/program-88-markplex-relative-volume/

Loading 1 comment...