Support Board
Date/Time: Mon, 20 Jan 2025 23:17:19 +0000
Post From: use Tool
[2018-07-10 20:32:47] |
User39772 - Posts: 311 |
Is there a known problem with use tool. The moment I enable sc.UseTool(Tool) (see below) SC freezes: s_UseTool Tool; Tool.Clear(); // Reset tool structure. Good practice but unnecessary in this case. Tool.ChartNumber = sc.ChartNumber; Tool.DrawingType = DRAWING_TEXT; Tool.BeginIndex = sc.IndexOfLastVisibleBar-5; Tool.BeginValue = 1.1742; // sc.High[sc.Index]; Tool.Color = RGB(0, 0, 0); Tool.AddMethod = UTAM_ADD_OR_ADJUST; Tool.MarkerType = MARKER_X; Tool.MarkerSize = 10; Tool.LineWidth = 10; Tool.Text.Format("Test"); //sc.UseTool(Tool); My intention is to have different strings at different locations in the chart. Do I need a new tool for every string or is it possible to create different strings at different locations with one tool ? |