Support Board
Date/Time: Tue, 11 Mar 2025 18:14:21 +0000
TIME_PERIOD_LENGTH_UNIT_QUARTERS
View Count: 717
[2019-10-01 14:38:12] |
User462086 - Posts: 196 |
Hi, I'm working with some long term calculations and wonder if this constant could be added to the 'sc.Input[].GetTimePeriodType()' input function? I realize 3*TIME_PERIOD_LENGTH_UNIT_MONTHS can be equivalent in some situations, but having this constant built-in would make using it with, for example, 'sc.GetStartOfPeriodForDateTime()' much easier/cleaner. Many thanks for the consideration!! |
[2019-10-06 20:50:07] |
|
We will see about this.
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 |
[2019-10-07 13:44:47] |
User462086 - Posts: 196 |
Using a '3' for the 'TimePeriodLength' appears to be returning the start of quarters rather than "3 months relative to the input date." This wasn't obvious to me previously. Case closed. sc.GetStartOfPeriodForDateTime( inputDateTime, TIME_PERIOD_LENGTH_UNIT_MONTHS, 3, 1 ); |
To post a message in this thread, you need to log in with your Sierra Chart account: