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 Christopher_R, Today, 12:29 AM
            0 responses
            6 views
            0 likes
            Last Post Christopher_R  
            Started by sidlercom80, 10-28-2023, 08:49 AM
            166 responses
            2,235 views
            0 likes
            Last Post sidlercom80  
            Started by thread, Yesterday, 11:58 PM
            0 responses
            3 views
            0 likes
            Last Post thread
            by thread
             
            Started by jclose, Yesterday, 09:37 PM
            0 responses
            7 views
            0 likes
            Last Post jclose
            by jclose
             
            Started by WeyldFalcon, 08-07-2020, 06:13 AM
            10 responses
            1,415 views
            0 likes
            Last Post Traderontheroad  
            Working...
            X