Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Wingdings in NT7

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

    Wingdings in NT7

    I am trying to insert characters from the character map. This works in 6.5 but not in NT7 and was wondering where I am going wrong. this is what I have.

    #region Variables

    private System.Drawing.Font textFont;
    #endregion

    protected override void Initialize()
    {

    textFont = new Font("Wingdings 3",15);
    }
    #endregion

    protected override void OnBarUpdate()
    {

    DrawText("MyMarker","‡",0,High[0]+TickSize,Color.Blue, textFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0);
    }
    #endregion

    I am getting an error message that says:

    No overload for method 'DrawText' takes '10' arguments

    Where am I going wrong here?

    Thanks

    #2
    Please review the "coding breaking changes" section of the document you should have got with the beta, before migrating any custom indicator/strategy.

    Also: there are related threads yet on this forum which you could find by the search function, e.g. http://www.ninjatrader-support2.com/...light=drawtext

    Comment


      #3
      Thanks, That helped. this made it work

      DrawText("MyMarker"+CurrentBar,true,"ˆ",0,High[0]+TickSize,1,Color.Red, textFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0);

      Comment


        #4
        One thing I like about Wingdings is that you can set the font size...it would be really good to be able to set the size of Chart Markers in draw tools in a similar manner...most of them are just way too small to be of any real use. Maybe a user being able to add some selected Wingdings to the Chart Markers area and size them as wished could be good (??) if not too difficult.

        Thanks...

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        47 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        23 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        33 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        50 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        42 views
        0 likes
        Last Post CarlTrading  
        Working...
        X