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 Haiasi, 04-25-2024, 06:53 PM
        2 responses
        17 views
        0 likes
        Last Post Massinisa  
        Started by Creamers, Today, 05:32 AM
        0 responses
        5 views
        0 likes
        Last Post Creamers  
        Started by Segwin, 05-07-2018, 02:15 PM
        12 responses
        1,786 views
        0 likes
        Last Post Leafcutter  
        Started by poplagelu, Today, 05:00 AM
        0 responses
        3 views
        0 likes
        Last Post poplagelu  
        Started by fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,407 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Working...
        X