Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 03:02:32 +0000



ACSIL Drawing Tools

View Count: 1083

[2018-03-29 16:00:41]
User439067 - Posts: 48
Hey guys - when you use a drawing tool again on a bar the first drawing disappears. How do you make all of the drawings stay on the chart or for example leave the last 10 drawings on the chart.

Thanks in advance!

s_UseTool WinningTradeDotsHigh;
  int UniqueLineNumber = 74191;//any random number.

  WinningTradeDotsHigh.Clear(); // Reset tool structure. Good practice but unnecessary in this case.
  WinningTradeDotsHigh.ChartNumber = sc.ChartNumber;

  WinningTradeDotsHigh.DrawingType = DRAWING_MARKER;
  WinningTradeDotsHigh.LineNumber = UniqueLineNumber + 1;

  WinningTradeDotsHigh.BeginDateTime = sc.BaseDateTimeIn[sc.Index];

  WinningTradeDotsHigh.Color = RGB(0, 200, 200);
  WinningTradeDotsHigh.AddMethod = UTAM_ADD_OR_ADJUST;

  WinningTradeDotsHigh.MarkerType = MARKER_POINT;
  WinningTradeDotsHigh.MarkerSize = 2;

  WinningTradeDotsHigh.LineWidth = 5;
WinningTradeDotsHigh.BeginValue = etc...
sc.UseTool(WinningTradeDotsHigh);

[2018-03-29 19:38:29]
Sierra Chart Engineering - Posts: 104368
Do not assign the line number:
WinningTradeDotsHigh.LineNumber

Let it be automatically assigned. Refer to the documentation here:
https://www.sierrachart.com/index.php?page=doc/ACSILDrawingTools.html#LineNumber
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

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

Login

Login Page - Create Account