Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 05:30:49 +0000



s_SCTradeOrder

View Count: 1672

[2013-07-16 11:37:42]
User40073 - Posts: 23
Hello,

How can I get s_SCTradeOrder::EntryDateTime, ::LastActivityTime in milliseconds?

thanks

[2013-07-17 09:48:52]
Sierra Chart Engineering - Posts: 104368
This is supported. You just need to assign s_SCTradeOrder::EntryDateTime or LastActivityTime to a SCDateTimeMS type. Example:

  //When working with milliseconds it is necessary to define variables of type SCDateTimeMS
  SCDateTimeMS DateTimeMS;

  // Get the milliseconds for the current bar. Usually this will be 0. This is only an example of how to do it.
  DateTimeMS = sc.BaseDateTimeIn[sc.Index];
  int MilliSecond = DateTimeMS.GetMilliSecond();
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
[2013-07-17 09:49:23]
Sierra Chart Engineering - Posts: 104368
Although actually thinking about it, the milliseconds for these will always be 0.
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:

Login

Login Page - Create Account