Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 22:46:13 +0000



Post From: ASCIL: How to draw on top (not under) the candlestick bar?

[2015-10-29 10:56:50]
User129630 - Posts: 22
When I draw a line (or a marker) on region 0 where the candlestick chart is resided, the drawings got drawn underneath the candlesticks, and hence not visible. How to make my drawings topmost, on top of everything (candlesticks, lines and others) so the drawings are visible.

The following code is what I have, I don't know if I had missed some settings. Please advise. Thanks.

  s_UseTool Tool;
  Tool.ChartNumber = sc.ChartNumber;
  Tool.DrawingType = DRAWING_MARKER;
  Tool.MarkerType = MARKER_X;
  Tool.MarkerSize = 4;
  Tool.LineWidth = 2;
  Tool.AddMethod = UTAM_ADD_ALWAYS;
  Tool.Region = 0;
  Tool.BeginDateTime = DateTime;
  Tool.BeginValue = Value;
  Tool.Color = RGB(255, 0, 0);
  sc.UseTool(Tool); // Here we make the function call to add the marker