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 cmoran13, 04-16-2026, 01:02 PM
        0 responses
        43 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        25 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        158 views
        2 likes
        Last Post CaptainJack  
        Working...
        X