Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 14:38:29 +0000



Post From: Can you add support for milliseconds for sc.GetContainingIndexForSCDateTime

[2023-08-24 04:13:26]
Sierra_Chart Engineering - Posts: 17194
You are not using the right constructor. The constructor you are using takes the time as seconds only.

We are not sure exactly what you want to do, but you should not be obtaining the Date-Time value as two separate integers. You can use these member functions to work with a single 64-bit integer:
inline int64_t GetInternalDateTime() const
    {
      return m_dt;
    }

    inline void SetInternalDateTime(int64_t InternalDateTimeValue)
    {
      m_dt = InternalDateTimeValue;
    }

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, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2023-08-24 04:13:38