Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 15:47:57 +0000



[Programming Help] - formula time-counting issue

View Count: 362

[2023-11-19 07:23:20]
User278398 - Posts: 291
hello,
by second(now()) i can make triger between 0-60 sec (every 1 min the counter become to 0)
( for exa:, if i want to get triger at every 23 sec in each min so: =if(second(now())=23,1,0) )...

I'm trying to figure how can i triger, every 4 min and 23 sec.
(i want to get triger at 9:34:23,after that the next triger is at 9:39:23
(every 5 min the counter become to 0) )

1. how can i triger by a similar way (by counting over time) ?
2. other way?

thank you?
[2023-11-19 15:20:41]
Sawtooth - Posts: 4120
Try this:

- Add a time-based chart with this Bar Period: 0-4-23
If you want the seconds count to start at 09:30:00 :
- 'New Bar At Session Start' needs to be Yes
- Session Start Time needs to be 09:30:00

- Add the CountDown Timer study, and set 'Alert on New Bar' to Yes.

Countdown Timer
Date Time Of Last Edit: 2023-11-19 15:31:57
[2023-11-20 01:46:11]
User719512 - Posts: 264
Add CountDown Timer to a 5 min chart.
Add Color Bar Based On Alert Condition to generate your trigger.
Set the Alert for when there are 37 seconds left on the timer.
See attached for how this looks.
image37 seconds to go.png / V - Attached On 2023-11-20 01:45:35 UTC - Size: 213.97 KB - 62 views
[2023-11-20 11:13:53]
User278398 - Posts: 291
thank you both !
....

" Add CountDown Timer to a 5 min chart.
Add Color Bar Based On Alert Condition to generate your trigger.
Set the Alert for when there are 37 seconds left on the timer.
See attached for how this looks. "
///
in the right pic there is the 5 min chart, which in there i did what u mention.
in the left pic there is the 1 sec chart which in there i want to get the red line that i draw(every 4:23 min, and in this exa, it is at 15:59:23).

as u can see i got "yellow" at all backgroud.... what i need to change to get the line at 15:59:23?

thank you
image1.png / V - Attached On 2023-11-20 11:08:00 UTC - Size: 1.52 MB - 75 views

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

Login

Login Page - Create Account