Login Page - Create Account

Support Board


Date/Time: Wed, 15 Jan 2025 23:51:44 +0000



Post From: UseTool - Issue

[2017-09-11 22:58:14]
Marek F - Posts: 244
I have studies that draw a rectangle (DRAWING_RECTANGLEHIGHLIGHT by UseTool) as black background, and next draw markers (DRAWING_MARKER by UseTool).
This is a code:
    if (sc.GetBarHasClosedStatus(sc.Index) == BHCS_BAR_HAS_CLOSED)
    {
      // Drawing Background (Rectangle)
      Tool.Clear();
      Tool.Region = 0;
      Tool.DrawUnderneathMainGraph = 0;
      Tool.AddMethod = UTAM_ADD_OR_ADJUST;
      Tool.LineNumber = 100;
      
      Tool.DrawingType = DRAWING_RECTANGLEHIGHLIGHT;
      Tool.SecondaryColor = RGB(0,0,0);
      Tool.TransparencyLevel = 0;
      Tool.LineWidth = 0;
      
      Tool.BeginIndex = 0;
      Tool.BeginValue = -10000.0f;
      Tool.EndIndex = sc.Index + 1;
      Tool.EndValue = YOffset.GetFloat() * 2.0f ;
      Tool.UseRelativeVerticalValues = true;
      
      sc.UseTool(Tool);
      
      
      // Drawing Trend Indicator (Marker)
      Tool.Clear();
      Tool.Region = 0;
      Tool.DrawUnderneathMainGraph = 0;
      
      Tool.AddMethod = UTAM_ADD_ALWAYS;
      Tool.LineNumber = 101;
      
      Tool.DrawingType = DRAWING_MARKER;
      Tool.MarkerType = MARKER_DASH;
      Tool.Color = RelativeTrend.DataColor[sc.Index];
      Tool.LineWidth = 4;
      Tool.UseBarSpacingForMarkerSize = 1;
      
      Tool.BeginIndex = sc.Index;
      Tool.BeginValue = YOffset.GetFloat();
      Tool.UseRelativeVerticalValues = true;
      
      sc.UseTool(Tool);
    }

When I updated SC from version 1585 to 1606, the markers are not visible.

Probably issue is that if the Tool.DrawUnderneathMainGraph is 0 (for DRAWING_RECTANGLEHIGHLIGHT) then any DRAWING_MARKERs are not visible.
If i set Tool.DrawUnderneathMainGraph = 1 (for DRAWING_RECTANGLEHIGHLIGHT) then markers are visible in the version 1606, but i would like that this rectangle hide the MainGraph.
Date Time Of Last Edit: 2017-09-11 22:58:57
imageUseTool - Issue.png / V - Attached On 2017-09-11 22:53:28 UTC - Size: 31.87 KB - 320 views