Support Board
Date/Time: Mon, 25 Nov 2024 08:35:05 +0000
Post From: Count Number of times of New Alert Condition Since Previous Color Bar Alert Triggered
[2024-03-29 11:23:45] |
User664207 - Posts: 9 |
Using Color Bar Based on Alert and/or Spreadsheet Formula study, how can I keep track of this kind of scenario: 1) Color Bar Based on Alert Condition is True, say a Long Signal (ID1.SG1) 2) Then while #1 being true, start to track number of times a lower low occurs, L<L[-1] 3) Cancel counting running total of Lower Lows based on Color Bar Short Signal being true (ID1.SG2) I tried hacking a solution with custom code using a persistent variable but my coding skills aren't great and can't seem to get it to count correctly. So either maybe there is a better example of this in the code base I can refer to for help, or a much easier way to do it? Thanks for any help!! |