Hi,
In WL6 it seems the y-direction position of text was determined with pixel count from the top of the price pane. It seems WL8 has a double value instead. The display engine takes the highest and lowest candlestick values to determine what is visible.
Is the double value corresponding to the top of the screen somehow available?
Any other way of doing this is appreciated.
A related question: the horizontal direction can be scaled using the bar spacing value.
Is there a way to scale in the y-direction?
Thanks!
In WL6 it seems the y-direction position of text was determined with pixel count from the top of the price pane. It seems WL8 has a double value instead. The display engine takes the highest and lowest candlestick values to determine what is visible.
Is the double value corresponding to the top of the screen somehow available?
Any other way of doing this is appreciated.
A related question: the horizontal direction can be scaled using the bar spacing value.
Is there a way to scale in the y-direction?
Thanks!
Rename
QUOTE:
Any other way of doing this is appreciated.
Is there a way to scale in the y-direction?
Yes, you want to use DrawBorderText instead of DrawText.
DrawBorderText lets you scale where to place the text relative to the Chart borders.
---
This is off topic, so start a new discussion for followup questions. But if you're displaying metrics you want to see on all Charts, then you should be doing it with a "custom" Data Panel instead. https://www.wealth-lab.com/Support/ExtensionApi/DataPanelScoreCard
Thank You!
It seems this is better than the DrawText of WL6 as its fixed pixel coordinates made it so text disappeared from time to time. With this version text will always be visible.
It seems this is better than the DrawText of WL6 as its fixed pixel coordinates made it so text disappeared from time to time. With this version text will always be visible.
Your Response
Post
Edit Post
Login is required