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

Advance Decline ^ADD

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

    #16
    Hello,

    Thanks for your reply.

    That is correct. I will edit it in your post however to prevent spam from being emailed in.
    BrandonNinjaTrader Customer Service

    Comment


      #17
      I haven't received a reply back after sending in the email. Did the sent files reveal anything?

      In the meantime, I initially didn't have any errors in the log file but after rebooting, I did have a log file error message.

      -------
      Error on calling 'OnBarUpdate' method for indicator 'AdvanceDecline' on bar 20: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on

      --------

      It works when I use "Reload Ninja Script" but not in real time.

      When using Visual Studio Express I can't trap this error. Of course with the error I can't run the code in real time and when trying to capture the error when reloading the code, it seems to miss the error.

      Not sure what its telling me...

      regards,
      taddypole...

      Comment


        #18
        taddypole, I'm sorry to hear that - I personally have so far not seen the files coming in. Which ticket # did you get assigned?

        From your feedback, can you please try running the study with a CurrentBars check for all 3 series included?

        i.e.

        if (CurrentBars[0] < BarsRequired || CurrentBars[1] < BarsRequired || CurrentBars[2] < BarsRequired)
        return;
        BertrandNinjaTrader Customer Service

        Comment


          #19
          Thanks Bertrand,

          That fixed the "accessing an index with a value that is invalid since its out of range" error.

          But now I'm having problems with it updating in real time. Again, when I reload Ninja Script I get an updated Plot but when I let it run real time, it does not update.

          taddypole...
          Attached Files

          Comment


            #20
            Hi Taddypole,

            I wasn't able to track down your email you sent in.

            Can you send in another email, and with this email add a link to this forum thread?

            platformsupport [at] ninjatrader [dot] com

            I look forward to receiving your email.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #21
              email sent ChelseaB

              regards,
              taddypole...

              Comment


                #22
                Question: Am I supposed to receive a confirmation when I send an email to [email protected]?

                How do I know if an email I sent for support was received?

                thanks,
                taddypole...

                Comment


                  #23
                  Hello Taddypole,

                  I received an email with a link to this forum thread after requesting that you write in.

                  I requested the strategy and received a response with an attached AdvanceDeclineTest strategy.

                  Was this email not from you?

                  If not, please send a new email to platformsupport [at] ninjatrader [dot] com and let me know again that this was sent. I'll confirm with you here on the forum that I have received your email.
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #24
                    Yes Chelsea that is me.

                    You also sent an email an requested some additional Print statements. I installed those and sent you the results. It appears the values for ^ADD and ^DECL are not being updated in real time.

                    Do you know what might be causing this?

                    regards,
                    taddypole...
                    Jim Harding

                    Comment


                      #25
                      Hi Taddypole,

                      Thank you for confirming that you have received my email.

                      Generally the confirmation that we have received your email is that we send a reply email to you and begin assisting with the issue.

                      Would you like to continue working in this forum thread and close the ticket created via email?
                      Chelsea B.NinjaTrader Customer Service

                      Comment


                        #26
                        Yes, I would like to continue working my issue via the Forum thread. For some reason i'm not receiving the emails. I've only received one so far.

                        thank you,

                        taddypole...

                        Comment


                          #27
                          Hi Taddypole,

                          The print I asked you to add:

                          Print("Inputs[1][0]: "+Inputs[1][0]+" - Inputs[2][0]: "+Inputs[2][0]+" = "+(Inputs[1][0] - Inputs[2][0]));
                          Print("Time of primary bar: "+Times[0][0]+" | Time of ^ADV: "+Times[1][0]+" | Time of ^DECL: "+Times[2][0]+"\r\n");

                          The last line of output you sent back:
                          AdvanceDecline ** * Now Real Time *
                          Inputs[1][0]: 1882 - Inputs[2][0]: 1296 = 586
                          Time of primary bar: 12/19/2014 8:27:00 AM | Time of ^ADV: 12/19/2014 8:06:00 AM | Time of ^DECL: 12/19/2014 8:06:00 AM

                          Primary bar is at 8:27, ^ADV is at 8:06. There hasn't been an update for the ^ADV for a while.

                          Please open an ^ADV chart and let me know the time of the most recently closed bar (second to last bar as the last bar will be the currently building bar. Also send the last line from your updated output again.
                          Chelsea B.NinjaTrader Customer Service

                          Comment


                            #28
                            I have loaded a separate chart of the ^ADV and it only loads historical data up to 9:42 AM today even though it is after 11:00 AM.

                            AdvanceDecline ** * Now Real Time *
                            Inputs[1][0]: 1835 - Inputs[2][0]: 1402 = 433
                            Time of primary bar: 12/19/2014 11:18:00 AM | Time of ^ADV: 12/19/2014 9:42:00 AM | Time of ^DECL: 12/19/2014 9:42:00 AM

                            You can see the current time is 11:18 AM. So, for some reason ^ADV is not updating properly.

                            ???
                            Attached Files

                            Comment


                              #29
                              Hi Taddypole,

                              Are there any error messages in the Log tab of the Control Center in yellow?

                              If so, what do these say?
                              Chelsea B.NinjaTrader Customer Service

                              Comment


                                #30
                                I've been looking but have never seen any messages that would help explain this issue.

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by ZenCortexCLICK, Today, 04:58 AM
                                0 responses
                                5 views
                                0 likes
                                Last Post ZenCortexCLICK  
                                Started by sidlercom80, 10-28-2023, 08:49 AM
                                172 responses
                                2,280 views
                                0 likes
                                Last Post sidlercom80  
                                Started by Irukandji, Yesterday, 02:53 AM
                                2 responses
                                18 views
                                0 likes
                                Last Post Irukandji  
                                Started by adeelshahzad, Today, 03:54 AM
                                0 responses
                                8 views
                                0 likes
                                Last Post adeelshahzad  
                                Started by Barry Milan, Yesterday, 10:35 PM
                                3 responses
                                13 views
                                0 likes
                                Last Post NinjaTrader_Manfred  
                                Working...
                                X