Support Board
Date/Time: Fri, 10 Jan 2025 16:53:35 +0000
RoundDateTimeDownToMinute
View Count: 1178
[2016-09-08 16:54:21] |
User147461 - Posts: 33 |
Trying to learn how to use RoundDateTimeDownToMinute SCDateTime BarDateTime = sc.BaseDateTimeIn[sc.Index].RoundDateTimeDownToMinute; I get this compile error: error C3867: 'SCDateTime::RoundDateTimeDownToMinute': non-standard syntax; use '&' to create a pointer to member I've searched all the studies in the ACS_Source directory for an example with no luck, also searched this forum and the online documentation but can't find anything. Would you please provide example code for proper use? Thank you! |
[2016-09-08 18:30:29] |
Sierra Chart Engineering - Posts: 104368 |
There is an error in your code. It needs to be: SCDateTime BarDateTime = sc.BaseDateTimeIn[sc.Index].RoundDateTimeDownToMinute(); 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 |
[2016-09-08 20:36:11] |
User147461 - Posts: 33 |
SCDateTime BarDateTime = sc.BaseDateTimeIn[sc.Index].RoundDateTimeDownToMinute(); Sorry that didn't work either. Now I get this new compile error: Error C2440 'initializing': cannot convert from 'void' to 'SCDateTime' |
[2016-09-08 21:22:40] |
User147461 - Posts: 33 |
I got this to compile but it doesn't seem to be rounding to the nearest minute according to the debugger: SCDateTime BarDateTime = sc.BaseDateTimeIn[sc.Index]; BarDateTime.RoundDateTimeDownToMinute(); |
[2016-09-08 22:43:09] |
Sierra Chart Engineering - Posts: 104368 |
OK we see what the additional problem is. We have put together proper documentation and an example here: http://www.sierrachart.com/index.php?page=doc/SCDateTime.html#SCDateTimeMemberFunctions 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 Date Time Of Last Edit: 2016-09-08 22:43:23
|
To post a message in this thread, you need to log in with your Sierra Chart account: