1. 首页
  2. 易语言 - EasyLanguage
  3. 在图表的四个角均显示文字 Make Text Visible in a Charts 4 Corners

在图表的四个角均显示文字 Make Text Visible in a Charts 4 Corners

How to plot Text in any or all four corners of the chart

 Here is some simple code to plot Text in the 4 corners of the visible chart. It wasn’t until DIDA used fracportion for the time element of text placement that I managed to sort out getting text onto the left hand side of the chart – so all the kudos is his.
The text “floats” so is always readable and if you re size the chart – text refocuses on the next tick.
Example indicator plots all 4 corners.

NB Below 5 ticks per bar the Left hand corners tend to “Slide off”. They re appear, eventually but it’s just annoying. Right hand corners are unaffected.

Above 5 tick bars seems to behave quite normally.

更新于 2020年5月25日

这篇文章对您有帮助吗?

相关的话题

留言评论