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

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.

    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 arvidvanstaey, Today, 02:19 PM
        4 responses
        10 views
        0 likes
        Last Post arvidvanstaey  
        Started by samish18, 04-17-2024, 08:57 AM
        16 responses
        57 views
        0 likes
        Last Post samish18  
        Started by jordanq2, Today, 03:10 PM
        2 responses
        8 views
        0 likes
        Last Post jordanq2  
        Started by traderqz, Today, 12:06 AM
        10 responses
        18 views
        0 likes
        Last Post traderqz  
        Started by algospoke, 04-17-2024, 06:40 PM
        5 responses
        47 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X