IndicatorArea: Align Text Position to Window

Created at 05 Mar 2020, 07:42
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!
K1

K100

Joined 04.11.2018

IndicatorArea: Align Text Position to Window
05 Mar 2020, 07:42


Hi.

Currently using : IndicatorArea.DrawText("Text1", "Text1", index, price, Color);

To draw text on the indicator area however  : VerticalAlignment.Top && StaticPosition.TopLeft  (Obsolete ) are not accepted for the Y position of text in the indicator area

How could i go about aligning the text to the top of the Indicator Window ?

The values of the indicator range changes frequently , so i cannot simply use a Y constant.

Any ideas ?

 

Thanks

 


@K100
Replies

PanagiotisCharalampous
05 Mar 2020, 08:44

Hi Hans,

You need to use DrawStaticText instead.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

K100
05 Mar 2020, 09:31

RE:

PanagiotisCharalampous said:

Hi Hans,

You need to use DrawStaticText instead.

Best Regards,

Panagiotis 

Join us on Telegram

 

Great. Thank you


@K100