Login Page - Create Account

Support Board


Date/Time: Wed, 15 May 2024 13:30:08 +0000



Unexpected draw behavior with DrawingType: DRAWING_RECTANGLE_EXT_HIGHLIGHT

View Count: 662

[2017-02-21 23:08:32]
User735389 - Posts: 188
I want to draw a rectangle that extents to the end of the right side of the chart. So I am using the Drawing Tool and setting the parameters:


Tool.DrawingType = DRAWING_RECTANGLE_EXT_HIGHLIGHT;
Tool.EndDateTime = 150;

It appears to be working properly when the BeginDateTime value is in view of the chart. But if I scroll left, where BeginDateTime is no longer in the chart view, the Rectangle will then be drawn across the entire chart. Is there a way to defeat this behavior (not draw the rectangle)?

Screenshots attached
Date Time Of Last Edit: 2017-02-21 23:09:19
imageIn view (correct behavior).GIF / V - Attached On 2017-02-21 23:07:29 UTC - Size: 30.36 KB - 206 views
imageNot in view (undesired behavior).GIF / V - Attached On 2017-02-21 23:07:34 UTC - Size: 28.52 KB - 217 views
[2017-02-22 03:01:16]
Sierra Chart Engineering - Posts: 104368
In this particular case, Tool.EndDateTime needs to be set to an actual bar Date-Time. It should be at a time that is about 10 bars forward from the Begin Date Time.


Although the exact amount does not matter. As long as it is at least one or two bars forward.
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-02-22 05:45:13
[2017-02-22 05:22:30]
User735389 - Posts: 188
ah i see, i misunderstood the documentation. thanks!

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account