Announcement

Collapse
No announcement yet.

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.

    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 Hwop38, 05-04-2026, 07:02 PM
            0 responses
            155 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            307 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            244 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            345 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            176 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X