Support Board
Date/Time: Tue, 26 Nov 2024 22:26:09 +0000
[User Discussion] - Coding Request
View Count: 1270
[2014-06-30 23:34:19] |
User43894 - Posts: 7 |
Hello SC, I have tried to ask this before on the support board and I received no response, so I will ask you. How do I code an alert if I want the background color to change when there is no more than 2 minutes between this current bar and two bars prior on a 10 Range chart for the NG. This is what I have so far.... =bartime[2]-bartime[0]<timevalue"00:02:00" Thanks in advance. (2nd Request) |
[2014-07-01 05:13:00] |
Sierra Chart Engineering - Posts: 104368 |
This is the formula: = (BARTIME[0] - BARTIME[2]) < (2/1440.0) We also recommend enabling the option to reset the alert condition on a new bar. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2014-07-01 19:00:02] |
User43894 - Posts: 7 |
SC: When SC evaluates the timevalue, does it use the open of the bar like it does to print the times on the bottom of a chart? And thanks for your reply, that is exactly what i wanted to do. |
[2014-07-01 19:09:23] |
Sierra Chart Engineering - Posts: 104368 |
The time of a bar is the starting time of the bar.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2014-07-01 19:30:09] |
User43894 - Posts: 7 |
SC One other thing I thought of is how do i evaluate for just a touch of a moving average as compared to a close above or below a moving average? i have this right now =crossover(sg1,C) Where sg1 is the moving average and C is the close as you know. Thanks in advance. Date Time Of Last Edit: 2014-07-01 19:31:04
|
To post a message in this thread, you need to log in with your Sierra Chart account: