Support Board
Date/Time: Sat, 11 Jan 2025 17:45:19 +0000
Post From: How does Tool.DrawingType == DRAWING_LINE work?
[2016-12-19 05:58:37] |
Edge Player Trading - Posts: 9 |
The following code draws a line from the starting bar to the last bar of history. However, this code is in a if-block and only gets executed once and there is no code that extends the line. Does the DRAW_LINE work like the DRAW_RAY? If so, is it possible to stop it from extending itself? Thanks. if (sc.SetDefaults) { sc.GraphName = "Point & Figure Chart"; sc.AutoLoop = 1; // 0; sc.GraphRegion = 0; sc.StandardChartHeader = 1; sc.ValueFormat = VALUEFORMAT_INHERITED; sc.FreeDLL = 1; } . . . s_UseTool Tool; Tool.DrawingType = DRAWING_LINE; Tool.EndValue = sc.BaseData[SC_POINT_FIGURE_LOW][sc.ArraySize - 1]; Tool.Color = RGB(0, 0, 255); Tool.AddMethod = UTAM_ADD_OR_ADJUST; Tool.BeginDateTime = sc.BaseDateTimeIn[sc.Index - 3]; Tool.EndDateTime = sc.BaseDateTimeIn[sc.ArraySize - 1]; Tool.BeginValue = sc.BaseData[SC_POINT_FIGURE_LOW][sc.Index - 3]; sc.UseTool(Tool); |