Login Page - Create Account

Support Board


Date/Time: Sun, 28 Apr 2024 21:11:25 +0000



Post From: Text with ACSIL

[2014-05-04 19:19:45]
QnReally - Posts: 181
Is there a way to draw some text using ACSIL in the fill space but towards the top of the window and keep it there stationary as the new bars are painted in the chart?

I tried to use Tool.UseRelativeValue = 1 with DRAWING_TEXT and DRAWING_STATIONARY_TEXT tools. The text is moving left to the last bar and not staying in the fill space. I used BeginDateTime = 120 and BeginValue = 90.

However, if I use Tool.UseRelativeValue = 0 and Tool.BeginDateTime = -5 (or some other larger negative number), the text stays in the fill space but I would have to figure out what the appropriate Tool.BeginValue should be based on price scale to keep the text stationary relative to the window height. I am not sure how to arrive at the correct BeginValue for all the different scale types (Automatic, Constant Range, User Specified Range). Ideas?

Thanks.