Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 16:47:30 +0000



Persistant veriables using time instead of bars

View Count: 136

[2024-05-15 04:53:12]
aswade3451 - Posts: 19
Hi SC team,
I know that I can use the example provided in the documentation "Persistent and Incrementing variables" to count the amount of bars since an event, but is there an example or a way I can count the amount of time a event has occurred instead? Or maybe a way to reference the current time vs the time an event occurred? Thanks!
[2024-05-15 11:40:38]
Sawtooth - Posts: 4119
You can modify this example to measure time since an event:
Spreadsheet Example Formulas and Usage: Cancel Unfilled Working Order n Minutes After Entry

The event start time is in Y3/Z3.
The measure of time since an event is in the J27 formula.

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

Login

Login Page - Create Account