Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawinf objects in NT7

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

    Drawinf objects in NT7

    Hi,

    Is there a way I can draw objects (like lines) that will permanently remain on the chart, regrdless of the indicator created them?
    What I see is this:
    1) When indicator draw lines, and I click F5, the lines disappear.
    2) If I want to remove a line that was drawn by the indicator I have to remove the indicator (there is a message box asking whether to remove the indicator or not, if I click no it does not remove the line, if I click yes it removes the line and the indicator).

    So to sum up, can I draw a line like the draw tool is doing?

    Thx,

    Yuval.

    #2
    Yuval, I am 99% sure this is not currently possible. I will have someone confirm tomorrow.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Too bad.. Thx for the reply on Sunday though...

      Comment


        #4
        yuvalw, unfortunately Austin is correct here - what's the idea you had in mind where this would be needed for you? To keep a history?

        What's on our list for future consideration is a programmatic setting to create Global Draw Objects...thus you could use one chart without any indicator that would be 'feeded' from other charts and different indicators...

        Comment


          #5
          Hello Bertrand,

          What I'm actually trying to do is create my own chart tools (i.e. like the Fib tools).
          So I get some input points from the user and draw whatever I need, this is a one time thing, and I want this drawing object to stay regrdless od the indicator added it...
          I found a way todo this which is probably not supported (create new ChartObject and add it to the ChartControl's chart objects)...

          Comment


            #6
            I see. Unfortunately we would not be able to provide much assistance on this as using ChartControl is well beyond what we can offer support for. Thank you for understanding.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Originally posted by yuvalw View Post
              Hello Bertrand,

              What I'm actually trying to do is create my own chart tools (i.e. like the Fib tools).
              So I get some input points from the user and draw whatever I need, this is a one time thing, and I want this drawing object to stay regrdless od the indicator added it...
              I found a way todo this which is probably not supported (create new ChartObject and add it to the ChartControl's chart objects)...
              Hi yuvalw.
              Would you be able to share the solution or give some more hints maybe?
              I see I need to learn this C# better, but maybe your solution accomplish just that.
              Best,
              u

              Comment


                #8
                Open Visual Studio, create empty project, add reference to NinjaTrader.Core.dll and then open Object Browser (ctrl+alt+j) and then look at the following namespace:
                NinjaTrader.Gui.Chart under which you will see all the chart objects you can draw, like: ChartLine, ChartRay, ChartDot etc...
                Now create the object you like and add it to the ChartObjects list under ChartControl, example:

                Code:
                 
                // Create a ChartDot to be drawn 5 bars ago at value (price) 80.
                ChartDot dot = new ChartDot(0, true, Color.Black, Time[5], 80)
                dot.Tag = "dot1";
                 
                // Add the Dot to the chart.
                ChartControl.ChartObjects.Add(dot);
                This is the general idea...

                Yuval.

                P.S - This is unsupported undocumented (I think), so no guarantee and it might cause your Ninja to crash.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                601 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                347 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                103 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                559 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                558 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X