Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 03:29:39 +0000



Post From: How to determine candle width (in pixels) in study ?

[2023-10-04 11:27:35]
erwinbeckers - Posts: 22
I'm using a GDI custom drawing function in my study and i'm trying to draw a rectangle around the current bar
To do this I need to be able to determine the candle width in pixels

I did find the sc.ChartBarSpacing which gives me the spacing between 2 bars, but I cannot find any documentation on how to get the actual width of the candles



regards
Erwin
Date Time Of Last Edit: 2023-10-04 11:28:30