Login Page - Create Account

Support Board


Date/Time: Fri, 19 Apr 2024 10:44:37 +0000



[Programming Help] - Optimizing Tools in ACSIL

View Count: 459

[2020-07-06 19:30:54]
PS2004 - Posts: 37
Is there any other ways of optiminzing ACSIL drawn Tools in Sierra Chart than in the following code sniplet?
I have 3 copy of a same Study added to a Chart, each for a specific use.
There are 4 type of Tools used in each Study, so there are 12 in total (all of them is used frequently).

When only one Study is added to the Chart, it's kinda fast and faltering free, but when the second and third is added, it becames very sluggish and irresponsive.

The coding one of them:
Tool.Clear();
Tool.ChartNumber = sc.ChartNumber;
Tool.AddMethod = UTAM_ADD_OR_ADJUST;
Tool.LineNumber = Tool_LineNumber;
Tool.DrawingType = DRAWING_LINE;
Tool.Color = COLOR_BLUE;
Tool.LineWidth = 3;
Tool.Region = sc.GraphRegion;

Tool.BeginIndex = Last_SpecificIndex;
Tool.BeginValue = MovAvg[Last_SpecificIndex];
Tool.EndIndex = HighestValue_Index;
Tool.EndValue = HighestValue;

Tool.AddAsUserDrawnDrawing = 0;
sc.UseTool(Tool);

Tool_LineNumber = Tool.LineNumber;

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

Login

Login Page - Create Account