Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 02:44:46 +0000



[Programming Help] - Fire alert only within certain time parameters

View Count: 597

[2020-08-15 16:14:50]
User283743 - Posts: 38
I want this alert condition only to be checked between 10:45 and 16:10.
The alert works when I leave out the time specifications, but not when they are added, so I
assume there is a mistake in the formula from "BARTIME" onwards:

=OR( CROSSFROMBELOW(C, SG6), CROSSFROMABOVE(C, SG7), BARTIME >= TIME(10, 45, 0), BARTIME <= TIME(16, 10, 0))

Using it on 1min chart.
Please advise.

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

Login

Login Page - Create Account