Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 13:56:07 +0000



Post From: api request for tool config

[2014-06-27 18:52:04]
Sierra Chart Engineering - Posts: 104368
Hello,

Something like this is already supported. You can specify an existing drawing tool configuration when adding a drawing through ACSIL:
// example using a tool config to set drawing properties
  Tool.Clear(); // reset tool structure for our next use
  Tool.ChartNumber = sc.ChartNumber;
  Tool.DrawingType = DRAWING_HORIZONTALLINE;
  Tool.LineNumber = UniqueLineNumber +23;
  // Set BarIndex to 20 bars from the end
  BarIndex = sc.ArraySize - 20;
  BarIndex = max(BarIndex,0);
  Tool.BeginValue = sc.Close[BarIndex];
  Tool.Region = 0;
  Tool.UseToolCfgNum = 1; // must be 1-8
  Tool.AddMethod = UTAM_ADD_OR_ADJUST;

  sc.UseTool(Tool); // Here we make the function call to add the line

There are no plans to add anything new or different.

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: 2014-06-27 18:52:45