Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stickies on getting started

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

    Stickies on getting started

    Hi Support,
    I haven't been able to find a "how to" for plotting a dataseries within an indicator.

    Have looked at the code of the indicators that come with NT and don't see the paint commands anywhere so assuming this must have something to do with orders of lines?

    I see how to use Add() to add a plot but how do I get it to paint anything or set it to values? The plot doesn't even have a name?

    Would be very grateful for an explanation of how the indicators work or to see some stickies, NT helps on this.
    Thanks!

    #2
    Hello,

    Thanks for the note,

    Please see this sample which is an example of multi color plots. However will show how to add multiple plots to an indicator.





    Let me know if yo have any questions I can answer on this.
    BrettNinjaTrader Product Management

    Comment


      #3
      Hi Brett,

      This was very helpful, thanks!

      I have one other question. Every time I compile my indicator referencing Close[0] or Close[1] everything plots okay. But if I reference Close[2] or beyond all my plots disappear, even the ones that aren't even related to the statements in which Close[any int >= 2) appears. Since Close is itself a DataSeries I'm quite confused as referencing [2] or greater of other DataSeries I've created in the indicator does not cause the "crash"

      Thanks!

      Comment


        #4
        entropy,

        Check the log tab of the control center for any error messages. It's likely you're running into this one:
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        603 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        349 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        104 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
        560 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X