Login Page - Create Account

Support Board


Date/Time: Tue, 16 Aug 2022 21:45:34 +0000



[User Discussion] - ACSIL: multiple drawings

View Count: 837

[2014-02-18 14:40:21]
User40117 - Posts: 56
hello,

i'm unable to draw multiple markers in the same chart, the ToolID is a const int

what am i doing wrong ?


        
        Tool.Clear();
        Tool.DrawingType = DRAWING_MARKER;
        Tool.LineNumber = ToolId + 1;
        Tool.BeginDateTime = sc.BaseDateTimeIn[sc.Index];
        Tool.BeginValue = sc.High[sc.Index];
        Tool.Color = RGB(0,200,200);
        Tool.AddMethod = UTAM_ADD_OR_ADJUST;
        Tool.MarkerType = MARKER_X;
        Tool.MarkerSize = 8;
        Tool.LineWidth = 5;
        sc.UseTool(Tool);

[2014-02-18 16:27:21]
ejtrader - Posts: 686
Just a suggestion - Looks like the issue is with this.. and make the ToolID as regular int rather than Const

Tool.LineNumber = ToolId + 1;

Try replacing it with

Tool.LineNumber = ToolId++;

Date Time Of Last Edit: 2014-02-18 16:29:03

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

Login

Login Page - Create Account