Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 20:33:51 +0000



Post From: zig zag swings count

[2023-04-08 23:25:32]
Sawtooth - Posts: 4120
Try this in the Formula field of the Spreadsheet Formula study:
=IF(BARDATE>BARDATE[-1],0,IF(ID6.SG3>0,ID7.SG1[-1]+1,ID7.SG1[-1]))
where ID6 is the Zigzag study, and ID7 is this Spreadsheet Formula study.

This will reset at a new day, then count every ZZ reversal.