Login Page - Create Account

Support Board


Date/Time: Tue, 07 May 2024 16:30:43 +0000



[Programming Help] - ACSIL code - Horizontal line

View Count: 1432

[2018-03-11 19:55:12]
VaclavS - Posts: 21
Hello, can I kindly ask someone to show to me ACSIL code how to get horizontal line on a chart?
[2018-03-11 21:24:00]
Zosimus - Posts: 345
s_UseTool Vaclacs_Line;
  
Vaclacs_Line.Clear();
Vaclacs_Line.ChartNumber = sc.ChartNumber;
Vaclacs_Line.DrawingType = DRAWING_HORIZONTALLINE;  
Vaclacs_Line.AddMethod = UTAM_ADD_OR_ADJUST;
Vaclacs_Line.Color = RGB(255, 0, 0); //the color of the line   
Vaclacs_Line.LineStyle = LINESTYLE_DASHDOTDOT;
Vaclacs_Line.LineWidth = 4;
Vaclacs_Line.UseRelativeVerticalValues = 0;
Vaclacs_Line.BeginValue = sc.Close[sc.Index];
sc.UseTool(Vaclacs_Line);

[2020-10-31 11:56:13]
goodness - Posts: 8
Thank you, that posts helped me, but maybe you can help again.

I would like to switch that line with an on/off button (respective shortcut).

How to realize that?

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

Login

Login Page - Create Account