How to position a comment on a certian separate window

 

Hi Everyone,

I create a custom indicator on a separate window, which has a range from 0 to 10.

Could you please help me to put  1 comment on the left handside, at the level 5.0.

 Thank you for your help.

 HHC 

string short_name = "indicator at 5.0";
IndicatorShortName(short_name);
 
scfx: I create a custom indicator on a separate window, help me to put  1 comment on the left handside, at the level 5.0.

You don't.

You can figure how high 'level 5.0' is on the window and map that to pixels and use a label object.

You can find the left most bar and place a text object at 5.0, but you'll have to move it every new bar.

 

Thank you, WHRoeder.

HHC 

Reason: