Announcement

Collapse
No announcement yet.

drawTextRelative() Questions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • drawTextRelative() Questions

    I am trying to place CENTERED text above price bars. There is no (documented) Text.CENTER flag available for drawTextRelative, and neither Text.RIGHT or Text.LEFT do what I want. Is there a trick I can use to center over the bar? If not, would the developers of version 7.2 consider adding a Text.CENTER flag to drawTextRelative? How can I submit a request for this?

    I have also found that drawTextRelative seems to ignore the font parameter when I supply one. This is my code:

    drawTextRelative(SellBar, SellPrice, "ð", Color.red, null, Text.ONTOP | Text.TOP, "Wingdings 3", 12, "FSell" + BarCntr );

    ð in "Wingdings 3" is a fancy down arrow.

    Am I doing this correctly?

    Thanks for any help.

  • #2
    Re: Reply to post 'drawTextRelative() Questions'

    We'll definitely look into adding some Left/right/center flags for the drawText
    commands for the 7.3/7.4 releases.

    As to the wingdings font, I'm not sure how you would code up that font name.

    m.

    --- [email protected] wrote:
    > Hello mattgundersen,
    >
    > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    >
    Matt Gundersen

    Comment

    Working...
    X