Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Fonts

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

    Fonts

    Hello,
    i use somewhere in the code the "Windings" font.
    This to get the arrows up,down and equal.
    This equals é, è and ê with this font.
    But the arrows are not plotted, insteed the é,è or ê.
    For exemple
    Code:
    private Font arrowFont = new Font("Windings", 14); // é and ê and è
    or
    Font arrowFont = new Font("Windings", arrowSize, FontStyle.Bold); // é and ê and è (in the body where needed)
    DrawText( "Down",false, "é",  NbBarsOldHighs + 1, OldHigh, 0, resColor, arrowFont,StringAlignment.Center, Color.Transparent, Color.Transparent, 0);
    Attached Files

    #2
    Hello mate41,
    Please refer to this post which demonstrates how to draw arrow up/down using the wingdings font.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Thanks,
      but it don't change anything.
      I use version nt 7.0.1000.11.

      Strange, i developped a similar code times ago with nt ver. 7.0.1000.9 or 10 without any problem.

      Comment


        #4
        Hello mate41,
        Please try the below code and see if you can get the arrows.

        in Variable
        Code:
        Font textFont;
        in OnStartUp
        Code:
        textFont = new Font("Wingdings 3",12);
        in OnBarUpdate
        Code:
        DrawText("This is an up arrow",false,"‡",0,High[0]+TickSize,0,Color.Blue, textFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0);
        
        DrawText("This is a down arrow",false,"ˆ",0,Low[0]-TickSize,0,Color.Red, textFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0);
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          Hello Joydeep,
          no way it do not work.
          Look at this shot below, this is an indicatot i developped last year.
          Here you can see it worked/works with an older nt version.

          Code:
          if( showMacdArrows )
          {
                Font arrowFont = new Font("Wingdings", arrowSize, FontStyle.Bold);
          if (CrossAbove(MACD(fast,slow,smooth),0,1))
          {
                DrawText("CrossingUp"+CurrentBar, false, "é", 0, Macd[0]-arrowOffset*TickSize,0, bullColor, arrowFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0);
          
          //etc
          }
          }
          Attached Files

          Comment


            #6
            Hello mate41,
            To assist you further can you please send a toy NinjaScript code* replicating the behavior to support[AT]ninjatrader[DOT]com

            Please append Attn:Joydeep in the subject line of the email and give a reference of this thread in the body of the email.

            I look forward to assisting you further.

            *The "toy" just means something that is a stripped down version that isn't necessarily the whole logic. It makes things easier to rout out.
            JoydeepNinjaTrader Customer Service

            Comment


              #7
              Joydeep, thanks... many thanks.
              Stupid mistake.....
              I can go further now.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by ZenCortexCLICK, Today, 04:58 AM
              0 responses
              5 views
              0 likes
              Last Post ZenCortexCLICK  
              Started by sidlercom80, 10-28-2023, 08:49 AM
              172 responses
              2,281 views
              0 likes
              Last Post sidlercom80  
              Started by Irukandji, Yesterday, 02:53 AM
              2 responses
              18 views
              0 likes
              Last Post Irukandji  
              Started by adeelshahzad, Today, 03:54 AM
              0 responses
              8 views
              0 likes
              Last Post adeelshahzad  
              Started by Barry Milan, Yesterday, 10:35 PM
              3 responses
              13 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Working...
              X