Support Board
Date/Time: Fri, 24 Jan 2025 00:50:38 +0000
Candle order withing specific time
View Count: 592
[2018-12-27 06:42:12] |
UserZiltoid - Posts: 57 |
Hello SC, Hope it's not a dummy question (Since I didn't find any documentation for my question). In my study I need to cancel non filled orders within 30 seconds. Yet I can't use the "sc.GetCurrentDateTime" function becuase of the REPLAY issues. So how can I accomplish that? Thanks! |
[2018-12-27 19:42:59] |
Sierra Chart Engineering - Posts: 104368 |
Use this function during real-time updating: sc.GetCurrentDateTime() During a chart replay use this: ACSIL Interface Members - Variables and Arrays: sc.LatestDateTimeForLastBar And you can determine if there is a replay active with this variable: ACSIL Interface Members - Variables and Arrays: sc.ReplayStatus 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: