Support Board
Date/Time: Mon, 28 Oct 2024 11:17:24 +0000
Price values of User Drawn Tools in ACSIL
View Count: 1029
[2016-01-12 18:40:28] |
buylosellhi - Posts: 60 |
Hi, I'm trying to retrieve the price values of a User Drawn Tool, for eg., a Pitchfork. I can get the Date/Time from DrawingObject.BeginDateTime etc but I cant seem to get the price values using DrawingObject.BeginValue. I'm using the sc.GetUserDrawnChartDrawing(...) function. I'd really appreciate if somebody could please point me in the right direction. Thanks in advance. |
[2016-01-13 11:11:33] |
Sierra Chart Engineering - Posts: 104368 |
We are working on an example for this. Will be ready tomorrow.
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 |
[2016-01-14 02:52:29] |
Sierra Chart Engineering - Posts: 104368 |
Here is a code example which should help: if (sc.GetUserDrawnChartDrawing(0, DRAWING_UNKNOWN, ChartDrawing, -1) > 0) { SCString BeginDateTimeString = sc.FormatDateTime(ChartDrawing.BeginDateTime); SCString EndDateTimeString = sc.FormatDateTime(ChartDrawing.EndDateTime); SCString Msg; Msg.Format("Details of last Chart Drawing on chart: BeginDateTime=%s, EndDateTime=%s, BeginValue=%f, EndValue=%f." , BeginDateTimeString.GetChars(), EndDateTimeString.GetChars(), ChartDrawing.BeginValue, ChartDrawing.EndValue); sc.AddMessageToLog(Msg, 1); } 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 Date Time Of Last Edit: 2016-01-14 02:52:58
|
[2016-01-14 04:37:08] |
buylosellhi - Posts: 60 |
Thanks for the example code. I realized I was doing the same thing but displaying my values formatted as %d by mistake and thats why the numbers didnt make any sense. Your reply helped clean it up !
|
To post a message in this thread, you need to log in with your Sierra Chart account: