Support Board
Date/Time: Wed, 05 Feb 2025 22:00:25 +0000
Post From: Question about the RectangleHighlight example in Studies.cpp
[2020-03-29 14:33:53] |
Yoda - Posts: 106 |
This is just how Chart Drawings work. There is not a way to change this. You cannot set a Rectangle drawing on a single bar.
It appears that I may not have explained myself sufficiently because I've seen examples of this working. To provide further explanation, I don't require a rectangle on a single bar. However, I do require that the rectangles start on the left side of a bar and end on the right side of the final bar. Here is an example using OHLC bars in SC: https://mboxwave.com/sierra-chart-indicator-settings And here is an example of the rectangles being correctly drawn in real time on candlestick bars in SC: https://www.youtube.com/watch?v=dsVclmg7M4U So I'm concluding that what I'm looking for is possible since others have this working in SC. Ideally, the best solution would be for SC to adjust the code such that the rectangles did not use the wicks of the bars but their bodies. If SC is not able/willing to do this, I should be grateful if someone could explain how I can do this. |