Support Board
Date/Time: Wed, 05 Feb 2025 21:50:25 +0000
Post From: Question about the RectangleHighlight example in Studies.cpp
[2020-03-28 14:18:54] |
Yoda - Posts: 106 |
Currently the scsf_UseToolExampleRectangleHighlight in Studies.cpp draws a Rectangle starting in the middle of a candlestick and ends in the middle of the final candlestick. As a result, the rectangle is shifted by half a bar. This is particularly noticeable if you are drawing the rectangle on just one bar. The rectangle starts at the wick of the first bar and continues on to the next bar's wick. I'm not sure if this is an issue with SC or if this can be fixed inside the study. Does anyone have any suggestions on how can I start the rectangle at the left side of a candlestick and end it at the right side of the final candlestick so that the rectanglehightlight covers the full body of the candlesticks and does not leak into the following bar? |