Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

No Plot but it compiles?

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

    No Plot but it compiles?

    Absolute beginner at this.
    It all looks logical but I am not getting either plot.
    Attached Files

    #2
    First step when things don't plot is to check the errors log. You are likely running into the error addressed by this article: http://www.ninjatrader-support.com/v...ead.php?t=3170
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      God I hate being a newbie!

      thanks Josh - I expect to ask many more simple questions before I get the hang of this - but 3 minutes to solve a problem must be some sort of record :-)

      Comment


        #4
        Hah. The record is around 30 seconds.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Respect


          So you are hot on the line waiting for the next simple one!

          Comment


            #6
            If we can assist you in any other way please feel free to post in a new thread. We will work to answer your questions. Thanks and have a good day trading.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              How do I get the value of a line?

              In easylanguage I can change the color of a plot quite simply but how do I do it in NinjaScript.
              At the mmoment I am trying to use two plots to cope with a condition.

              This is my current effort. Which doesn't work ( the commented out section)
              Attached Files

              Comment


                #8
                Mindset,

                We would appreciate it if you posted new questions in a new thread. This way we can help build up a knowledge base that other users can search through more easily.

                To check against a plot you need to use the indexing. Your plot is named Value. To check its values you would do Value[0] for the value at the current bar of the FIRST DataSeries plot in your indicator. Please see the Help Guide for Value to better understand how it is used. You will also have difficulty with your code because EMA is a reserved word taken by another indicator. You cannot name your DataSeries EMA.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Sure

                  Thanks for the heads up.
                  Will do that in future.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  574 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  332 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  101 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  553 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  551 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X