Support Board
Date/Time: Tue, 26 Nov 2024 04:35:47 +0000
Get x coordinate for future SCDateTime
View Count: 279
[2024-01-03 18:55:48] |
erwinbeckers - Posts: 22 |
I'm looking for an ACSIL function to get the x-pixel coordinate for a future date/time I've found sc.GetNearestMatchForSCDateTime() which works fine for the most part, but not when the date/time references a future date/time and that is exactly my use case I want to render upcoming news events by vertical lines. So let's say the current chart time is 13:55 and that there is an upcoming news event at 15.00 Then I would like to draw a vertical line at 15:00. This should be possible since the x-axis already shows future time and the standard drawing tools allows us to draw a line in the future However, I would like to use the new graphics drawing functions to render the events See below for an example where there is a news event at 3pm which is indicated by a red vertical line Please advise https://www.sierrachart.com/image.php?Image=1704307895145.png |
[2024-01-03 19:39:27] |
User431178 - Posts: 541 |
The function linked below also includes the forward area. sc.GetNearestMatchForSCDateTimeExtended() You may wish to set/adjust the forward columns also. ACSIL Interface Members - sc.Subgraph Array: sc.Subgraph[].ExtendedArrayElementsToGraph |
[2024-01-04 01:38:11] |
Sierra_Chart Engineering - Posts: 17179 |
Use these functions: sc.BarIndexToXPixelCoordinate() sc.GetNearestMatchForSCDateTimeExtended() 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 |
[2024-01-04 08:28:36] |
erwinbeckers - Posts: 22 |
Thanks, sc.GetNearestMatchForSCDateTimeExtended() is exactly what i was looking for :-) |
To post a message in this thread, you need to log in with your Sierra Chart account: