• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw.Text with Unicode

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

    Draw.Text with Unicode

    Hi,

    I want to use Circled Numbers and Letters on my charts. I am using the Draw.Text.

    The font I am using is "Arial Unicode MS" which requires me to use a unicode to access the character. For the Circled E, the character code is 24BA, how do I use this code in the Draw.Text to achieve access to this character?

    Thanks in advance.

    #2
    Hello KhaosTrader, and thank you for your question.

    This publicly available MSDN link will demonstrate creating unicode characters from escape sequences.

    https://msdn.microsoft.com/en-us/library/aa664669.aspx

    In your case, this code

    Code:
    string example = "Your unicode character -> " + '\u24ba';
    Draw.Text(this, "example" + CurrentBar, example, 0, Close[0]);
    gives us this output

    Your unicode character -> Ⓔ
    Please let us know if there are any other ways we can help.
    Jessica P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by saltminer, Today, 05:19 PM
    0 responses
    3 views
    0 likes
    Last Post saltminer  
    Started by martyn73, Today, 04:18 PM
    0 responses
    2 views
    0 likes
    Last Post martyn73  
    Started by aprendiz, Today, 03:42 PM
    0 responses
    2 views
    0 likes
    Last Post aprendiz  
    Started by 1001111, Today, 09:10 AM
    1 response
    18 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by usero86, Today, 06:02 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X