Login Page - Create Account

Support Board


Date/Time: Mon, 21 Apr 2025 14:53:47 +0000



Post From: Bug Report: s_UseTool Drawing Partially Displayed When Crossing More Than 3 High=Low Bars

[2025-02-25 13:37:25]
User856649 - Posts: 9
Problem Description:
When I use the s_UseTool drawing tool to draw a line on the chart, it only displays partially.
I observed that this issue occurs when the drawing line starts/ends with 3 or more dashed bars (High = Low bars).
I am using a manual loop.

Why I Don't Think It's an Issue with My Code:
After simply changing the index, the drawing displays correctly. This can be observed in the attached screenshots: good.png (index = 133) and bad.png (index = 143).

Chart: NVDA_NQTV 1000 Tick Bar
Version: 2741
Date: 2025-01-30 to 2025-01-30

core code:
if (index == 133) {
  s_UseTool Box;
  Box.Clear();
  Box.ChartNumber = sc.ChartNumber;
  Box.DrawingType = DRAWING_LINE;
  Box.AddMethod = UTAM_ADD_OR_ADJUST;
  Box.BeginValue = 120.00f;
  Box.EndValue = 120.00f;
  Box.Color = RGB(0, 255, 255);
  Box.BeginIndex = index;
  Box.EndIndex = index-10;
  Box.LineWidth = 5;
  Box.LineStyle = LINESTYLE_DASH;
  Box.TransparencyLevel = 50;
  Box.AddAsUserDrawnDrawing = 1;
  LineNumberCounter++;
  Box.LineNumber = LineNumberCounter;
  sc.UseTool(Box);
}