Login Page - Create Account

Support Board


Date/Time: Wed, 01 May 2024 14:16:20 +0000



Post From: ZigZag Calculation Mode 2

[2017-11-20 12:56:59]
Shane111365 - Posts: 9
Dear SierraChart support,

The following is the quote from the Technical reference for ZigZag: Zig Zag

"For a current Uptrend: If the next bar's High is equal or greater than LastHigh, then LastHigh is set to the new High and the Up trend line is adjusted to the high of this next bar."
"For a current Downtrend: If the next bar's Low is equal or less than LastLow, then LastLow is set to the new Low and the Down trend line is adjusted to the low of this next bar."

I want to remove "is equal" so that
"For a current Uptrend: If the next bar's High is greater than LastHigh, then LastHigh is set to the new High and the Up trend line is adjusted to the high of this next bar."
"For a current Downtrend: If the next bar's Low is less than LastLow, then LastLow is set to the new Low and the Down trend line is adjusted to the low of this next bar."

I found out that the logic is controlled by InternalResettableZigZag2 function. I am not sure I am allowed to modify it or clone it. Please advise.