Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 03:40:38 +0000



[Programming Help] - Using date and time data

View Count: 341

[2023-06-01 19:12:21]
WeroTrader - Posts: 46
Hello Sierra Chart Team

I'm trying to put the information returned by s_SCPositionData.LastFillDateTime into a "MyVariableData.Format()"; but I still don't understand how to place the format; I have been trying "%d%02d%02d", but have not been successful in determining the Year, Month, Day, Hour, Minute and Second from the string.

Could you help me or give me a guide to where I can refer to the correct documentation?

Thank you for your response and attention.
[2023-06-01 21:27:58]
John - SC Support - Posts: 36350
The documentation for this variable species the type as an "SCDateTime". Refer to the following:
Automated Trading From an Advanced Custom Study: [Type: SCDateTime] LastFillDateTime


Therefore, you need to refer to the information here:
Working with the SCDateTime Variables and Values
For the most reliable, advanced, and zero cost futures order routing, use 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