Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ticksize, Output High ,Low

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

    Ticksize, Output High ,Low

    Hello all,

    I am currently learning C# to make programming for NT easier for me. I hope people can help me here. I have successfully programmed a certain candle constellation so that this is displayed in color in the chart. How can I program that the tick size, high and low of the candle is displayed in ticks in the chart ? Without that I need the output window for this. I can do that, but I do not always want to have the output window open. And since I already address the Output window, how can I make an output in tab 2 ? With Print Output 2 () this is not possible.
    If you could help me, I would be very grateful.

    Greetings
    Frank


    #2
    Hi Frank, thanks for writing in.

    You can use Draw.Text or custom rendering within the OnRender method to display any text desired. Draw.Text() will be the most straight forward approach, where custom rendering will be fastest with maximum flexibility. For an example of using custom rendering see the "SampleCustomRender" example indicator. I have also linked documentation below.

    https://ninjatrader.com/support/help...?draw_text.htm
    https://ninjatrader.com/support/help..._rendering.htm

    Kind regards,
    -ChrisL

    Comment


      #3
      Hello,

      thank you very much for your reply. How can I display the low and high of a particular candle in the chart as a number possibly as text ?

      Greetings
      Frank

      Comment


        #4
        Hi Frank, thanks for your reply.

        You can draw the data with the Draw.Text method e.g.

        if(Open[0] < Close[0]) //draws high and low price of green bars
        {
        Draw.Text(this, "High"+CurrentBar, "High " + High[0], 0, High[0]+TickSize*2);
        Draw.Text(this, "Low"+CurrentBar, "Low " + Low[0], 0, Low[0]-TickSize*2);
        }

        Kind regards,
        -ChrisL

        Comment


          #5
          Hello,

          perfect...many many thanks.

          Greetings
          Frank

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          607 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          353 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          560 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          561 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X