Support Board
Date/Time: Tue, 04 Mar 2025 12:15:10 +0000
[Programming Help] - Zig Zag Cal MODE 1 - ISSUE
View Count: 939
[2021-12-07 10:08:02] |
User75949 - Posts: 126 |
I'm experiencing an issue on the Zig Zag on calculating mode 1 (% calculation) I made a control and it seems to me that the calculation is WRONG. ON THE ZIG ZAG INDICATOR I've setted Calc mode 1 to show me rotation larger than 10% and that's ok If i put the "Display Lenght of ZigZag" in Point it calculates correctly as you can see the calculation is correct (the difference from the extremes of the ZigZag length) But if I put in the "Display Lenght of ZigZag" in Percentages this calculation in my opinion is wrong as you can see from the images. Could you please explain for example how it is calculated 36.14% ? To have a correct and useful number it should be 17783.5/59282.0*100=29.998% (in this rotation mkt has fell 29.99% from the extreme of the Zig Zag line) Please let me know if I'm missing something because at this point I'm doubting of he whole calculation of ZigZag in Mode 1. Attached alle the images tks in advance regards |
![]() ![]() ![]() |
[2021-12-07 11:03:26] |
User907968 - Posts: 833 |
Zig Zag Percent: This displays the length of the Zig Zag line as a percent difference using the most recent value as the denominator.
Most recent price = close = ~49000 17783.5 / 49000 * 100 = 36.29% |
[2021-12-07 15:04:14] |
User75949 - Posts: 126 |
Ok, tks for the explanation, It would be much more meaningful having at the denominator instead of the closing price, the previous rotational price so that the resulting % would be how much the price decreased/increased on that rotation (in %). Is there a way I could change this? Tks in advance R. |
[2022-01-12 09:03:59] |
User75949 - Posts: 126 |
No chances to have this opportunity? I mean to calculate the % change with the previious (H/L) swing at the denominator? this would be much more meaningful, or at least the chance to set it in this way, so the the % would show the total way made from the previous exttreme H/L to the successive turning point. When Zig Zag is set with calculation mode 3 it does it correctly, it displays the amount of point corresponding to the total lenght of the line, which is completely meaningful. Il would be great if you can make this little change tks |
[2022-01-12 15:00:01] |
|
You can modify this study to your requirements. Refer to: How to Build an Advanced Custom Study from Source Code: Searching for Source Code for Sierra Chart Built-In Studies Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: