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

Stoch Momentum Indicator

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

    #31
    Reply

    I checked all items.

    1. Data is on the chart. Futures and stocks
    2. Recompiled script, again. It says sucessful. No error logs.
    3. No errors in control panel log is I run a Future Contract.
    If I run a stock I get the following:

    "Error on plotting Indicator" StochasticMomentumIndex". Please check the 'onbarupdate' or the 'plot' method. Overflow error."

    I am attaching the file used to compile. If you have time to look at it I would appreciate it.
    Attached Files

    Comment


      #32
      Hi rtj4201,

      that kind of error message is delivered when a runtime exception occures. I suspect a variable was overflowing (illegal calculation result, too many increments). Have a look at the trace-file in the NT trace directory. Usually you could find there a stack report describing the exception in more detail.

      Regards
      Ralph

      Comment


        #33
        Reply

        I am new to Ninjascript. I will get there. But I haven't studied it enough to find the information that you have noted. Is there anyway you could be a little more detailed so I can find a way to begin?

        Comment


          #34
          Hello rtj4201,

          I suggest to take a look at the forum thread below that addresses a similar issue.


          More information regarding debugging NInjaScript code can be found at the following link.
          JasonNinjaTrader Customer Service

          Comment


            #35
            Yes, follow Jason's links they give you some guidance regarding the debugging process. And have a look at the trace file of the day when the exception occured. You find these files in the 'trace'-directory of the NT installation, one trace file for every trading day.

            Regards
            Ralph

            Comment


              #36
              Doesn't it seem odd that the indicator works just fine for Futures contracts and does not work for stocks.

              What does that indicate?

              Comment


                #37
                I tested the custom indicator on my end on a AAPL 1 minute chart and the indicator plotted on my end.

                I suggest to delete the indicator and re-import it and check if this will make a difference.
                Attached Files
                JasonNinjaTrader Customer Service

                Comment


                  #38
                  hi, it also happens to me that this indicator doesnt plot.
                  this happens in some futures. its not only to you, rtj4201 !

                  Comment


                    #39
                    It is evident there is a bug with the indicator. It may be best for you guys to try and come into contact with the original author of the indicator. Unfortunately we cannot provide any support for this 3rd party indicator.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #40
                      Ok, I will try and work thru the original submitter. By the way, I have reloaded and recompiled this thing a number of times.

                      The first time, even the Futures would not work, then the Futures started working.

                      Oh, well.

                      Comment


                        #41
                        Originally posted by [email protected] View Post
                        I would really like to have this indicator available but do not have the compile function on my NT version.

                        Can someone post the zip file here for easy import of this indicator?

                        Thanks for your help and great work!
                        All I had to do was open the indicator after it was moved (Tools>Edit Ninjascript>Indicator) select StochasticMomentumIndex to open it and then right-click anywhere inside the text. That gave the compile option in a drop-down menu.

                        Comment


                          #42
                          Originally posted by NinjaTrader_Jason View Post

                          I suggest to delete the indicator via Tools-->Edit NinjaScript-->Indicator.
                          Jason,
                          I'm trying to follow your instructions to delete this indicator (since it doesn't work for me), but when I go to "Tools", I see no "Edit Ninjascript" option (I'm using NT version 6.5.1000.14). Instead, all I see is:

                          Tools
                          Instrument Manager
                          Historical Data
                          Account Connections
                          Options

                          Where is the "Edit Ninjascript" or is this command on an earlier or later version of Ninja?
                          Thanks, Tasuki

                          Comment


                            #43
                            Hello Tasuki,

                            You must have a license entered at Help-->License Key that does not allow the use of NinjaScript.

                            Please send me an email at support[at]ninjatrader[dot]com and reference this forum thread. I will provide you the free license key that will allow you to access Edit NinjaScript.
                            JasonNinjaTrader Customer Service

                            Comment


                              #44
                              TOS version here.

                              eDanny
                              NinjaTrader Ecosystem Vendor - Integrity Traders

                              Comment


                                #45
                                Forgive my igorance ()
                                What does TOS stand for? Just curious.
                                Tasuki


                                Originally posted by eDanny View Post

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by CortexZenUSA, Today, 12:53 AM
                                0 responses
                                1 view
                                0 likes
                                Last Post CortexZenUSA  
                                Started by CortexZenUSA, Today, 12:46 AM
                                0 responses
                                1 view
                                0 likes
                                Last Post CortexZenUSA  
                                Started by usazencortex, Today, 12:43 AM
                                0 responses
                                5 views
                                0 likes
                                Last Post usazencortex  
                                Started by sidlercom80, 10-28-2023, 08:49 AM
                                168 responses
                                2,265 views
                                0 likes
                                Last Post sidlercom80  
                                Started by Barry Milan, Yesterday, 10:35 PM
                                3 responses
                                11 views
                                0 likes
                                Last Post NinjaTrader_Manfred  
                                Working...
                                X