Support Board
Date/Time: Wed, 15 Jan 2025 20:47:08 +0000
UseTool - Issue
View Count: 1133
[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
|
UseTool - Issue.png / V - Attached On 2017-09-11 22:53:28 UTC - Size: 31.87 KB - 320 views |
[2017-09-12 21:32:04] |
Sierra Chart Engineering - Posts: 104368 |
Chart Drawings that use s_UseTool::BeginIndex are put into a fast drawing list if they only use a single index coordinate. If they use more than one index coordinate, they are not put into this fast drawing list. They are instead put into the standard advanced custom study drawing list. The fast drawing list is always drawn first on the chart and will be underneath drawings in the standard advanced custom study drawing list. If this drawing ordering problem is an issue, then specify the horizontal coordinate by s_UseTool::BeginDateTime instead. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2017-09-12 21:32:51
|
To post a message in this thread, you need to log in with your Sierra Chart account: