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 fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,404 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by Shai Samuel, 07-02-2022, 02:46 PM
        4 responses
        95 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by DJ888, Yesterday, 10:57 PM
        0 responses
        8 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        160 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Yesterday, 09:29 PM
        0 responses
        9 views
        0 likes
        Last Post Belfortbucks  
        Working...
        X