Support Board
Date/Time: Sun, 08 Sep 2024 01:32:55 +0000
BARTIME
View Count: 1161
[2017-01-06 02:59:15] |
Crtfyd - Posts: 278 |
I am using a simple alert within the alert condition I have this: =AND( H - L >= 100, C > O , BARTIME >= ((09*60+30.00)/(24*60)), BARTIME <= ((09*60+30:04)/(24*60))) When I delete the BARTIME and replace the comma after C>O with a parenthesis, it works fine, so I know the alert works. But I only want the alert on my 1 sec chart for the first 4 bars ( 9:30.00 to 9:30.04 ) I swear it worked b4 I updated to the last vs1493, but not 100% sure. I have copied pasted simple alerts from b4 the update, to new ones I'm adding now, but the arrow(from the alert condition) DISAPPEARS after I put that BARTIME on. I cant see a missing comma or anything else. What could be the problem for such an easy alert. I know it worked b4. Thx |
[2017-01-06 19:02:05] |
Merlin - Posts: 83 |
This may just be a typo in your post, but do you mean "30.04", not "30:04" ?
|
[2017-01-06 20:37:13] |
|
That is going to be the source of the problem what is described in post #2.
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 |
[2017-01-09 17:12:38] |
Crtfyd - Posts: 278 |
That was a typo, still have the problem. For instance:(I copy/pasted this one) =AND( ID19.SG1 >= ID19.SG1[-1], ID19.SG1[-1] < ID19.SG1[-2], ID3.SG2=H , BARTIME >((09*60+30.03)/(24*60)), BARTIME < ((11*60+00)/(24*60)) ) MY 09:30:02 bar still shows up. |
[2017-01-09 17:29:10] |
Crtfyd - Posts: 278 |
Ok, I found part of the problem. When I change the bartime to: BARTIME >((09*60+30.04)/(24*60)), BARTIME < ((11*60+00)/(24*60)) THEN the 09:30:02 arrow disappears. So it seems 2 bars (2 seconds) off! There are no Skips in bars or time. All of my 09:30:00, 09:30:01, 09:30:02, 09:30:03, 09:30:04,09:30:05...etc are there. So there's some kind of disconnect between the study recognizing/syncing with the actual bartime. Date Time Of Last Edit: 2017-01-09 17:30:40
|
[2017-01-09 18:13:32] |
|
When working with times, you want to use this function when comparing to BARTIME: http://www.sierrachart.com/index.php?page=doc/SpreadsheetFunctions.html#TIME_Function Also when doing comparisons involving BARTIME look at the example we give here for how to do this to avoid issues with floating-point error: http://www.sierrachart.com/index.php?page=doc/StudyChartAlertsAndScanning.php#BaseGraphIdentifiers 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 |
To post a message in this thread, you need to log in with your Sierra Chart account: