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

Indicator stopped working

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

    Indicator stopped working

    The attached indicator when run with GomCD as the input series no longer works (constant zero value). Can someone please help?
    I did get an error in the log: "Error on calling 'OnBarUpdate' method for indicator 'Volatility Switch' on bar 1. The code includes
    if
    (CurrentBar < 1) return; which I thought was meant to prevent that error.

    It worked fine yesterday.
    Attached Files

    #2
    Hello Taggart,

    Thank you for your post.

    The Int LookBack by default goes back 21, so you will need to increase the CurrentBar check:
    Code:
    if(CurrentBar < LookBack)
    return;
    For information on making sure you have enough bars before accessing them please visit the following link: http://www.ninjatrader.com/support/f...ead.php?t=3170

    Please let me know if I may be of further assistance.

    Comment


      #3
      I made the change in the code but no improvement with the output. Still constant zero. Is there something else that could cause this to suddenly stop working?


      Edit: I should mention that all other Gom indicators that I am using are working fine and are as normal.

      Comment


        #4
        Hello Taggart,

        Thank you for your response.

        Are you still seeing errors in your Log tab? If so, what do these errors report?

        I look forward to your response.

        Comment


          #5
          There is just one error listed in the log and it was from about an hour ago.

          Comment


            #6
            Hello Taggart,

            Thank you for your response.

            I am able to see values other than 0 when using the GomCD as the input series for the VolatilitySwitch.

            So I may investigate this matter further please answer the following questions.

            What version of NinjaTrader are you using? You can check under Help -> About (Example: 7.0.1000.X)

            Who are you connected to? This is displayed by green on lower left corner of the Control Center window.

            What instrument(s) have you selected? If a futures instrument, what expiry is selected? (Example: ES 06-13)

            What interval is selected for your chart(s)? (Example: Tick, Minute, Day, etc.)

            I look forward to your response.

            Comment


              #7
              Thanks a bunch for your help.

              Ninja 7.0.1000.12
              Connected to Zen- Fire
              Instrument CL 06-13
              Chart - 2 Better Renko

              I have tried it on another instrument and on minute/second charts with the same result.

              Comment


                #8
                Hello Taggart,

                Thank you for that information.

                Please take a screenshot of the chart and attach it to your response.

                I look forward to your response.

                Comment


                  #9
                  The gom recorder is set to millisec which I have not had problems with before.
                  Attached Files

                  Comment


                    #10
                    Hello Taggart,

                    Thank you for your response.

                    To confirm you see this on Minute bars as well?

                    Comment


                      #11
                      I just tried it again on a minute chart and it worked. I definitely tried that before and it didn't. It still won't work on a better renko chart even though it did yesterday. Any ideas?

                      Comment


                        #12
                        Hello Taggart,

                        Thank you for your response.

                        I would like to schedule a support call with you tomorrow if possible to investigate this item on your PC.

                        Please send the following information to support[at]ninjatrader[dot]com with 'ATTN: Patrick - 845135' in the subject line and a refernece to this thread in the body of the e-mail: http://www.ninjatrader.com/support/f...ad.php?t=57815
                        • A phone number where you can be reached
                        • A time window where I can call you (please include a time zone)
                        • Launch our remote support application from the following link, http://www.ninjatrader.com/remotesupport. Once launched, the application will provide you with an ID# and password. I will need these from you once I have you on the phone.

                        I look forward to our support call.

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by sidlercom80, 10-28-2023, 08:49 AM
                        168 responses
                        2,262 views
                        0 likes
                        Last Post sidlercom80  
                        Started by Barry Milan, Yesterday, 10:35 PM
                        3 responses
                        10 views
                        0 likes
                        Last Post NinjaTrader_Manfred  
                        Started by WeyldFalcon, 12-10-2020, 06:48 PM
                        14 responses
                        1,429 views
                        0 likes
                        Last Post Handclap0241  
                        Started by DJ888, 04-16-2024, 06:09 PM
                        2 responses
                        9 views
                        0 likes
                        Last Post DJ888
                        by DJ888
                         
                        Started by jeronymite, 04-12-2024, 04:26 PM
                        3 responses
                        41 views
                        0 likes
                        Last Post jeronymite  
                        Working...
                        X