Login Page - Create Account

Support Board


Date/Time: Fri, 27 Jan 2023 08:30:33 +0000



Tool.BeginIndex

View Count: 826

[2014-10-03 21:32:55]
QnReally - Posts: 181
if (sc.UserDrawnChartDrawingExists(sc.ChartNumber, UniqueLineNumber + ni)) {
  Tool.Clear();
  if (sc.GetUserDrawingByLineNumber(sc.ChartNumber, UniqueLineNumber + ni, Tool, DRAWING_PITCHFORK_SCHIFF, 0)) {
    BI = Tool.BeginIndex; BV = Tool.BeginValue;
    Buffer.Format("Retr LN = %d usi=%d bi=%d bv=%.2f ", UniqueLineNumber + ni, sc.UpdateStartIndex, BI, BV); sc.AddMessageToLog(Buffer, 0);
  }
}

I am getting a value of -1 for the Tool.BeginIndex. This used to work a couple of months ago but it stopped working with one of the later releases. I am on 1191 at the moment. Has something changed in the API? I have not changed my code but I understand I could still have a problem on my end. The Tool.BeginValue prints correctly though.

Thanks.
[2014-10-03 21:48:15]
Sierra Chart Engineering - Posts: 104348
We will look into this, but if it is user drawn, the X-coordinate is held as a Date-Time always in the internal list, I think.
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
[2014-10-04 21:21:00]
Al SC Developer - Posts: 434
This function is being restored in ver 1200

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account