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 fredericlebre, Today, 01:19 AM
        0 responses
        1 view
        0 likes
        Last Post fredericlebre  
        Started by TraderJA, Today, 12:06 AM
        0 responses
        4 views
        0 likes
        Last Post TraderJA  
        Started by SnailHorn, Yesterday, 10:49 PM
        0 responses
        7 views
        0 likes
        Last Post SnailHorn  
        Started by naanku, Yesterday, 07:25 PM
        0 responses
        8 views
        0 likes
        Last Post naanku
        by naanku
         
        Started by milfocs, Yesterday, 07:23 PM
        0 responses
        6 views
        0 likes
        Last Post milfocs
        by milfocs
         
        Working...
        X