Login Page - Create Account

Support Board


Date/Time: Sun, 22 Dec 2024 21:25:27 +0000



Post From: Tool: Ellipse

[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.