Dynamic Candlestick width

Created at 16 Mar 2017, 17:22
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
IF

iForex2015

Joined 17.03.2015

Dynamic Candlestick width
16 Mar 2017, 17:22


Hi all,

Is there a way to get the width of candlestick dynamically in OnTick() or Calculate() methods ?

Thanks in advance.

 


@iForex2015
Replies

BeardPower
16 Mar 2017, 17:45

Are you referring to the OH/CL range?

If so, there is no function for getting the bar range. You have to calculate it yourself by using the OHCL values.


@BeardPower

BeardPower
16 Mar 2017, 17:49

RE:

But I guess you are referring to the scaling, hence OHLC would be the bar height.

No, there is no API support for chart specific settings.


@BeardPower

iForex2015
17 Mar 2017, 23:18

Dear BeardPower

Yes I was meaning thickness of candlestick. Thanks for the message. 


@iForex2015