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

Personalized icons?

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

    Personalized icons?

    Is it possible to add your own icons to a list in NT for use when developing a strategy in the wizard?
    I want BIGGER arrows.
    How could I do that?
    Thanks
    raycam

    #2
    raycam, unfortunately not possible, but there're two workarounds -

    a) just use multiple arrows at different offsets from price for example to give the appearance of one large one used.

    b) use DrawText and employ a symbol language like Windings, then you could control the font / symbol size.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      raycam, unfortunately not possible, but there're two workarounds -

      a) just use multiple arrows at different offsets from price for example to give the appearance of one large one used.

      b) use DrawText and employ a symbol language like Windings, then you could control the font / symbol size.
      Hi Bertrand -
      Do you have a reference or an example code snippet that shows how DrawText might be used in the context of plotting a custom (Wingding type) icon on a chart?

      In a chart is there a way to offset to the left or right of the bar the Wingding type icons you mentioned?
      Thanks,
      Andrew

      Comment


        #4
        Hello Andrew,

        Please try the following in OnBarUpdate:
        (edited to use a large up arrow)
        Code:
        DrawText("text" + CurrentBar, true, new string((char) 0xF1, 1), 0, High[0] + 3 * TickSize, 0, Color.Black, new Font("Wingdings", 30f), StringAlignment.Center, Color.Empty, Color.Empty, 10);
        DrawText(string tag, bool autoScale, string text, int barsAgo, double y, int yPixelOffset, Color textColor, Font font, StringAlignment alignment, Color outlineColor, Color areaColor, int areaOpacity)


        You can offset the text to the right by adding spaces to it
        string.Format(" {0}", new string((char) 0xF1, 1))
        Last edited by NinjaTrader_ChelseaB; 06-03-2016, 02:14 PM.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hi Raycam,
          You could by overriding the plot method, but its a little bit complicated, maybe you should try to put the correct values on something like this.

          DrawTriangle(CurrentBar + "Triangle1", true , 1, Close[0] + 2 * TickSize ,7 , Close[0] - 10 * TickSize , -5, Close[0]- 10 * TickSize, Color.Green, Color.Green, 9);
          DrawRectangle(CurrentBar+ " Square1" , true , 3 , Close[0] - 10 * TickSize , -1 , Close[0] - 20 * TickSize , Color.Green , Color.Green , 9 ) ;

          Comment


            #6
            this post is high in the search results for "wingding",

            so I wanted to update Chelsea's posting with the NT8 equiv, even though the forum category is NT7:


            // Reference...
            //Draw.Text(NinjaScriptBase owner, string tag, bool isAutoScale, string text, int barsAgo, double y, int yPixelOffset, Brush textBrush, SimpleFont font, TextAlignment alignment, Brush outlineBrush, Brush areaBrush, int areaOpacity)

            Draw.Text(this, "UBV+_" + CurrentBar, true, new string((char) 0xDD, 1), 0, High[0] + 3 * TickSize, 0, Brushes.Green, new NinjaTrader.Gui.Tools.SimpleFont("Wingdings", 12) { Size = 30f, Bold = true }, TextAlignment.Center, Brushes.Transparent, Brushes.Transparent, 10);

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by jclose, Yesterday, 09:37 PM
            1 response
            11 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by firefoxforum12, Yesterday, 08:53 PM
            1 response
            14 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by kmunroe478, Yesterday, 05:39 PM
            2 responses
            15 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by kevinenergy, 02-17-2023, 12:42 PM
            115 responses
            2,700 views
            1 like
            Last Post kevinenergy  
            Started by prdecast, Today, 06:07 AM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_LuisH  
            Working...
            X