Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 04:02:21 +0000



[Programming Help] - Spreadsheet Persistent Variable Resetting Every New Trading Day

View Count: 459

[2020-09-16 04:10:40]
User355030 - Posts: 163
I currently have a persistent variable that plots a line. Is there a way to only make this line "active" for the trading day it triggered on? In other words, the persistent variable needs to zero out on a new calendar day (00:00:00).

@tomgilb
[2020-09-16 11:31:25]
Sawtooth - Posts: 3976
There is no one formula format that works for all persistent variable situations so, without more details, here is a way to identify a new day:

=INT(A3)>INT(A4)

Can you share the formula you are currently using? You can private message me if you like.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account