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 Irukandji, Today, 05:49 AM
        0 responses
        3 views
        0 likes
        Last Post Irukandji  
        Started by maykingoh1, Today, 05:25 AM
        0 responses
        4 views
        0 likes
        Last Post maykingoh1  
        Started by Human#102, Today, 05:18 AM
        0 responses
        8 views
        0 likes
        Last Post Human#102  
        Started by ntram, 05-08-2024, 05:39 PM
        3 responses
        22 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by Zach55, 02-19-2024, 07:22 PM
        3 responses
        70 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X