Login Page - Create Account

Support Board


Date/Time: Fri, 10 May 2024 02:33:30 +0000



Tool: Ellipse

View Count: 1360

[2015-01-19 18:49:37]
QnReally - Posts: 181
I tried a few things but I can't figure out if I am really doing something wrong. I am trying to draw an ellipse highlight but it draws a rectangle highlight. I only have one instance of Sierra Chart installed on my computer. I recently switched to 2010 VC++ from the 2008 version. I am running v1224 of SC currently.

SCSFExport scsf_TestEllipse(SCStudyGraphRef sc)
{
  if (sc.SetDefaults)
  {
    sc.GraphName="Test Ellipse";
    sc.StudyDescription="Test Ellipse Drawing";
    sc.AutoLoop = 0;
    sc.FreeDLL = 1;
    return;
  }
  if (sc.HideStudy) return;
  s_UseTool Tool;
  Tool.Clear();
  Tool.ChartNumber = sc.ChartNumber;
  Tool.Tool = DRAWING_ELLIPSEHIGHLIGHT;
  Tool.Region = sc.GraphRegion;
  Tool.AddMethod = UTAM_ADD_OR_ADJUST;
  Tool.TransparencyLevel = 50;
  Tool.LineWidth = 0;
  Tool.UseRelativeVerticalValues = 1;
  Tool.BeginDateTime = 40;
  Tool.BeginValue = 40;
  Tool.EndDateTime = 70;
  Tool.EndValue = 60;
  Tool.SecondaryColor = RGB(128,128,128);
  Tool.LineNumber = 102;
  sc.UseTool(Tool);
}

http://www.sierrachart.com/image.php?l=1421693306518.png

Do you have any pointers on what could be wrong? Thanks.
[2015-01-19 19:44:49]
Al SC Developer - Posts: 434
You should be setting the DrawingType instead of Tool:

DrawingType = DRAWING_ELLIPSEHIGHLIGHT;

[2015-01-19 20:45:25]
Sierra Chart Engineering - Posts: 104368
Tool.Tool is old and only there for back compatibility. We do need to remove it.

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