Login Page - Create Account

Support Board


Date/Time: Thu, 27 Feb 2025 06:25:31 +0000



Time in trade

View Count: 523

[2021-06-25 19:46:04]
User39772 - Posts: 311
Hello,

is there a function available in ACSIL, that tells me the time a trade is open (CurrentTime - EntryTime).
[2021-06-25 21:05:00]
John - SC Support - Posts: 38222
No, there is not a function or variable that has that specific information, but you can determine it from the information in the s_SCPositionData structure. Refer to the information starting here:
Automated Trading From an Advanced Custom Study: sc.GetTradePositionForSymbolAndAccount()
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