Login Page - Create Account

Support Board


Date/Time: Fri, 07 Aug 2020 08:51:19 +0000



[User Discussion] - I would like to request a flexible ACSIL line tool X1,Y1 .. X2,Y2 - style.

[2015-06-27 14:10:41]
marcovth - Posts: 58 | Ending Date: 2016-01-11 [Expired]
I would like to request a flexible ACSIL line tool X1,Y1 .. X2,Y2 - style.

Thanks in advance ! It would be very much appreciated.
[2015-06-29 13:47:13]
marcovth - Posts: 58 | Ending Date: 2016-01-11 [Expired]
Can I please have a confirmation that this has been seen by the support team?

Thanks.
[2015-07-02 15:57:21]
marcovth - Posts: 58 | Ending Date: 2016-01-11 [Expired]
Uhhh ???
[2015-07-03 23:12:42]
Sierra Chart Engineering - Posts: 88421 | Ending Date: 2021-04-05
This is not something we would develop, but there is the feature to draw directly to a chart through the GDI:
http://www.sierrachart.com/index.php?page=doc/doc_ACSILProgrammingConcepts.html#CustomFreeFormDrawing
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2015-07-04 14:31:59]
marcovth - Posts: 58 | Ending Date: 2016-01-11 [Expired]
What would be the big difference between ...

  Lines.Clear();
  Lines.ChartNumber = sc.ChartNumber;
  Lines.DrawingType = DRAWING_LINE;
  Lines.LineNumber = num;
  Lines.BeginDateTime = sc.BaseDateTimeIn[bar1];
  Lines.BeginValue = val1;
  Lines.EndDateTime = sc.BaseDateTimeIn[bar2];
  Lines.EndValue = val2;
  Lines.Color = Color;
  Lines.LineWidth = LineWidth;
  Lines.LineStyle = LineStyle;
  Lines.AddMethod = UTAM_ADD_OR_ADJUST;
  //Lines.AddAsUserDrawnDrawing = 1;
  //Lines.SquareEdge=1;
  Lines.FlatEdge=1;
  Lines.Region = Region;
  sc.UseTool(Lines);

And ...

  Lines.Clear();
  Lines.ChartNumber = sc.ChartNumber;
  Lines.DrawingType = DRAWING_LINE;
  Lines.LineNumber = num;
  Lines.X1 = X1;
  Lines.Y1 = Y1;
  Lines.X2 = X2;
  Lines.Y2 = Y2;
  Lines.Color = Color;
  Lines.LineWidth = LineWidth;
  Lines.LineStyle = LineStyle;
  Lines.AddMethod = UTAM_ADD_OR_ADJUST;
  //Lines.AddAsUserDrawnDrawing = 1;
  //Lines.SquareEdge=1;
  Lines.FlatEdge=1;
  Lines.Region = Region;
  sc.UseTool(Lines);

You have already all the code working to draw lines. Your code translates BeginDateTime, EndDateTime, BeginValue, EndValue into X1, X2, Y1, Y2 before drawing. The coordinate system would therefore only take 5 minutes to implement, and it would make a lot of serious coders very happy.

GDI absolutely doesn't work. It makes things very complicated for no reason compared to a simple X1,Y1 .. X2,Y2 implementation.

Please explain why your team would not add this?

Thanks in advance.
Date Time Of Last Edit: 2015-07-04 14:36:12
[2015-07-05 22:34:00]
Sierra Chart Engineering - Posts: 88421 | Ending Date: 2021-04-05
Almost no programming would take five minutes.

This could take hours of work.

We did not fully understand what you wanted. Initially we thought you just want to do freeform line drawing at those coordinates, which is something that we would never add.

Based on the additional information, the big question is what for? This is completely backwards and makes no sense to us. We have no knowledge of anyone who would find this useful and this therefore could not be correct:
and it would make a lot of serious coders very happy.

ACSIL already has a sc.YPixelCoordinateToGraphValue function. We can also add one for the x-coordinate to give you a particular Date-Time value. This is all we can do for you. There is definitely no chance we would add specifically what you are requesting.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
Date Time Of Last Edit: 2015-07-05 22:35:33

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

Login

Login Page - Create Account