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 lezlebric, Today, 06:32 PM
        0 responses
        8 views
        0 likes
        Last Post lezlebric  
        Started by TheTechnician86, Today, 05:47 PM
        0 responses
        9 views
        0 likes
        Last Post TheTechnician86  
        Started by Ryan333, Today, 05:25 PM
        0 responses
        4 views
        0 likes
        Last Post Ryan333
        by Ryan333
         
        Started by hsammons87, Today, 05:21 PM
        0 responses
        6 views
        0 likes
        Last Post hsammons87  
        Started by Gmonte, 10-01-2022, 08:28 AM
        2 responses
        191 views
        0 likes
        Last Post charlesthomas  
        Working...
        X