Login Page - Create Account

Support Board


Date/Time: Fri, 19 Apr 2024 12:26:19 +0000



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

View Count: 997

[2015-06-27 14:10:41]
marcovth - Posts: 61
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: 61
Can I please have a confirmation that this has been seen by the support team?

Thanks.
[2015-07-02 15:57:21]
marcovth - Posts: 61
Uhhh ???
[2015-07-03 23:12:42]
Sierra Chart Engineering - Posts: 104368
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. 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
[2015-07-04 14:31:59]
marcovth - Posts: 61
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: 104368
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. 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: 2015-07-05 22:35:33

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

Login

Login Page - Create Account