Login Page - Create Account

Support Board


Date/Time: Mon, 13 Jan 2025 06:10:17 +0000



Post From: Create a extending rectangle or rectangle in ascil code

[2017-03-27 12:22:03]
User210074 - Posts: 63
I would like to draw a extending rectangle.

int Transparency_Level = 60;
int Rectangle_Line_Width = 1;
int UniqueLineNumber = 0;
s_UseTool Tool;
Tool.Clear();
Tool.ChartNumber = sc.ChartNumber;
  Tool.DrawingType = DRAWING_RECTANGLEHIGHLIGHT;
   Tool.LineNumber = UniqueLineNumber + sc.Index;
Tool.BeginDateTime = sc.BaseDateTimeIn[sc.Index];
   Tool.BeginIndex = sc.Index;
   Tool.BeginValue = sc.Low[sc.Index];
   Tool.EndIndex = sc.Index;
   Tool.EndValue = sc.High[sc.Index];
   Tool.Color = RGB(0,200,200);
   Tool.TransparencyLevel = Transparency_Level;
   Tool.LineWidth = Rectangle_Line_Width;
sc.UseTool(Tool);
I tried this, but I have the following error message:

-- Starting build of Custom Studies Source files: sc_Test_Tools_Extending_Rectangle.cpp. -- 14:00:12

C:\WINDOWS\system32\cmd.exe /C "C:\SierraChart\ACS_Source\VisualCCompile.Bat"


C:\SierraChart\ACS_Source>call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
sc_Test_Tools_Extending_Rectangle.cpp
LINK : fatal error LNK1104: cannot open file 'C:\SierraChart\Data\sc_Test_Tools_Extending_Rectangle.cpp.dll'
-- End of Build -- 14:00:15

Can you give me an example of drawing an extending rectangle in code.
Sorry, I'm lost.