Support Board
Date/Time: Thu, 16 Jan 2025 07:00:17 +0000
chart period ASCIL
View Count: 1161
[2017-10-14 05:08:41] |
michelh - Posts: 159 |
Hi Sierra, I have a study in my default study collection that I only want to run on chart periods of 30, 60, 120 minutes. Instead of creating multiple study collections for different bar periods, I was looking through the ASCIL hoping to find a Sierra chart bar period. What I want to do is to code the indicator to check if the chart period is 30, 60, or 120 minutes --> If yes --> run the indicator (to show alerts), else --> ignore. I can't seem to find the bar period in the ASCIL. I only found stuff relating to daily bar periods. Am I missing something? thanks! |
[2017-10-14 10:23:07] |
Marmany - Posts: 307 |
Easily calculated from sc.BaseDateTimeIn[sc.Index-1] - sc.BaseDateTimeIn[sc.Index-2]
|
[2017-10-14 19:21:59] |
Walt Dickerson - Posts: 8 |
You can use sc.SecondsPerBar ACSIL Interface Members - Variables and Arrays: sc.SecondsPerBar |
[2017-10-14 22:41:51] |
Sierra Chart Engineering - Posts: 104368 |
Yes, you will want to use: ACSIL Interface Members - Variables and Arrays: sc.SecondsPerBar 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: