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

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 sephichapdson, Today, 11:36 PM
                  0 responses
                  1 view
                  0 likes
                  Last Post sephichapdson  
                  Started by bortz, 11-06-2023, 08:04 AM
                  47 responses
                  1,612 views
                  0 likes
                  Last Post aligator  
                  Started by jaybedreamin, Today, 05:56 PM
                  0 responses
                  9 views
                  0 likes
                  Last Post jaybedreamin  
                  Started by DJ888, 04-16-2024, 06:09 PM
                  6 responses
                  19 views
                  0 likes
                  Last Post DJ888
                  by DJ888
                   
                  Started by Jon17, Today, 04:33 PM
                  0 responses
                  6 views
                  0 likes
                  Last Post Jon17
                  by Jon17
                   
                  Working...
                  X