Login Page - Create Account

Support Board


Date/Time: Sat, 27 Apr 2024 05:00:16 +0000



[Programming Help] - Zig Zag Cumulative Volume On Top Of Pivots

View Count: 2645

[2018-11-27 23:22:28]
Alberto Gauer - Posts: 121
Hi there,

What is the parameter to show the volume in numbers format on top of each pivot? Like in the image attached.

Thanks.
imagezigzagvoume.png / V - Attached On 2018-11-27 23:22:12 UTC - Size: 7.03 KB - 685 views
[2018-11-28 00:26:46]
Usermb - Posts: 126
Display ZigZag Volume?!
[2018-11-28 15:22:06]
John - SC Support - Posts: 31159
Refer to this Input setting for the Zig Zag study here:
Zig Zag: Display Zig Zag Volume
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2018-12-06 21:41:39]
Alberto Gauer - Posts: 121
Refer to this Input setting for the Zig Zag study here:
Zig Zag: Display Zig Zag Volume

Hi John.

Would like to know if the calculation method for each leg is simple summing and subtracting? (talking about the cumulative volume option to be displayed)

I was reading a book by Tim Ord called "The Secret Science of Price And Volume", and he says that the correct way to calculate the volume on a leg of a swing is using the average value of the volume of all the bars that make up the leg, not the sum. This way you can see the true force of the move when you compare to another leg.

For example, an up swing made up of 4 bars with 2000 volume each will have 8000 total, then a swing low is made on 3 bars, two with 3000 and one with 2000, total 8000. Based on this arithmetic it would appear that the down swing has equal power, but no, it is stronger.

Average up move was 2000, the average on the decline was 2,667, so the downleg has 33% more power than the upleg.

Is it possible to add this option to the code, to calculate the average value of the zig zag legs too?
Date Time Of Last Edit: 2018-12-06 21:45:46
[2018-12-06 23:01:33]
John - SC Support - Posts: 31159
The Zig Zag Volume to Accumulate is simply a sum of the specified volume type.

The fastest way to get the Average Volume would be to modify the study yourself as we are simply busy with lots of other things and do not know when we would be able to get to this.

You will find the study in studies5.cpp in the ACS_Source folder under your main Sierra Chart installation. Within that program, there is a call to AccumulateZigZagVolume which is found in studies7.cpp.

Refer to the following for information on how to create a custom study:
How to Build an Advanced Custom Study from Source Code
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2018-12-06 23:31:09]
Alberto Gauer - Posts: 121
The Zig Zag Volume to Accumulate is simply a sum of the specified volume type.

The fastest way to get the Average Volume would be to modify the study yourself as we are simply busy with lots of other things and do not know when we would be able to get to this.

You will find the study in studies5.cpp in the ACS_Source folder under your main Sierra Chart installation. Within that program, there is a call to AccumulateZigZagVolume which is found in studies7.cpp.

I can try and do that if you tell me which line to delete and which command to add so the study will divide the total volume of a leg by the number of bars of the leg.

How am I supposed to know that, I am no coder... This seems like a very easy thing to do to a coder in a couple of minutes...
Date Time Of Last Edit: 2018-12-06 23:31:58
[2018-12-07 22:34:35]
Alberto Gauer - Posts: 121
A coder, please? Or at least someone who has the skill to delete a code line and replace with another?

Seriously, this must be kindergarden level stuff for people with this knowledge.

And to be honest, this is the most important feature of this study, to be able to display average volume of legs, as the total sum is useless for VSA analysis...
Date Time Of Last Edit: 2018-12-07 22:35:10

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account