Zig function futures
ZIG function is a so-called future function with only two values. When you say ZIG (3,5), you mean that the closing price of the day has changed by 5% compared with the last ZIG reversal value. You said today's closing price was 25. If ZIG (3,5) is satisfied, only the closing price of the last reversal can be determined to be 25/ 1.05. And the ref (zig (3,5), 1) behind you is yesterday's reciprocal value, and there are only two possible values. So your formula zig (3,5) > ref (zig (3,5), 1) is meaningless in itself.