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

Help selecion of symbols to display advance / decline

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

    Help selecion of symbols to display advance / decline

    Hi I need help to get this line indicator advance / decline fucnione properly.


    Tienpo kinetick real as I have connected data.


    I have to modify symbols in Misc, I have to modify the symbols in the code scrip?, Please kinetick symbols and exactly to where I have to change?.

    Shipping the Ninja Scrip code

    Thank you very much.
    Attached Files
    Last edited by optimuss; 07-21-2013, 02:58 PM.

    #2
    Hello optimuss,

    Thank you for your post.

    There is no need to edit the code here or the symbol mapping. Please check the Log tab of your NinjaTrader Control Center for errors when attempting to load the ^ADV or ^DECL. What do these errors report?

    I look forward to your response.

    Comment


      #3
      Thanks for your help Patrikh, nothing appears, insert indicator and everything is white, no error in LOG.

      Shipping LOG file.

      Please help, I've been all day trying to open this indicator without success.
      Attached Files

      Comment


        #4
        Hello optimuss,

        Thank you for your response.

        What period type are you applying to the chart? Kinetick EOD Free only supports Daily based periods (Day, Week, Month, and Year), so no intra-day periods are supported (tick and minute based periods).

        Comment


          #5
          Hello, on a daily basis.

          Comment


            #6
            Hello optimuss,

            Thank you for your response.

            Can you attach a screenshot of your chart that is blank to your response?

            I look forward to assisting you further.

            Comment


              #7
              ok, here is the shipping.

              Thank you.
              Attached Files

              Comment


                #8
                Hello optimuss,

                Thank you for your response.

                I was incorrect, this is in fact related to the script. The BarsPeriod object cannot be accessed in the Initialize() method. If you change the add lines in your code to the following you will see that the plot is correct:
                Code:
                			Add("^ADV", PeriodType.Day, 1);
                			Add("^DECL", PeriodType.Day, 1);
                For information on dynamically adding new bar series based on the primary bar series please visit the following link: http://www.ninjatrader.com/support/f...ad.php?t=42749

                Please let me know if I may be of further assistance.
                Last edited by NinjaTrader_PatrickH; 07-22-2013, 10:53 AM.

                Comment


                  #9
                  Patrich Hello, thank you very much for your help.

                  I changed as you sugerirdo me, nor the charge indicator on the chart.
                  There is still something that is not properly configured.

                  Now in the LOG apararece the following error.


                  The indicator 'AdvanceDecline' has called the Add () method With An invalid instrument. Either '^ DECL' does not exist in the Instrument Manager or the specified exchange has not been configured.


                  What does this mean?
                  Last edited by optimuss; 07-22-2013, 07:13 AM.

                  Comment


                    #10
                    Hello optimuss,

                    Thank you for your response.

                    Please reset your instruments and restart NinjaTrader. To reset your instruments please: go to the Tools menu, select the Options menu item, select the Data tab, and then click on 'Reset Instruments'.

                    Please let me know if this resolves the matter.

                    Comment


                      #11
                      Patrickh Hello again, thank you very much for your help.

                      After reset the same mistakes instrumnetos continues Log.


                      The indicator 'AdvanceDecline' has called the Add () method With An invalid instrument. Either '^ DECL' does not exist in the Instrument Manager or the specified exchange has not been configured.
                      The indicator 'AdvanceDecline' has called the Add () method With An invalid instrument. Either '^ ADV' does not exist in the Instrument Manager or the specified exchange has not been configured.

                      What can we do, do not give up now.

                      Greetings.

                      Comment


                        #12
                        Hello optimuss,

                        Thank you for your response.

                        In your code it appears there is a space between the '^' and the index name. You need to remove the space in the instrument name string in the Add() methods.

                        Incorrect:
                        Code:
                        [COLOR="Red"]Add("^ ADV", PeriodType.Day, 1);
                        Add("^ DECL", PeriodType.Day, 1);[/COLOR]
                        Correct:
                        Code:
                        [COLOR="Green"]Add("^ADV", PeriodType.Day, 1);
                        Add("^DECL", PeriodType.Day, 1);[/COLOR]
                        Please let me know if I may be of further assistance.

                        Comment


                          #13
                          Hello patrickh, very good, ers the best, now it works.

                          If you'd be closer invited to eat.

                          Thank you very much, I wish you a nice day, buddy.

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by stafe, 04-15-2024, 08:34 PM
                          6 responses
                          31 views
                          0 likes
                          Last Post stafe
                          by stafe
                           
                          Started by adeelshahzad, Today, 03:54 AM
                          4 responses
                          27 views
                          0 likes
                          Last Post adeelshahzad  
                          Started by merzo, 06-25-2023, 02:19 AM
                          10 responses
                          823 views
                          1 like
                          Last Post NinjaTrader_ChristopherJ  
                          Started by frankthearm, Today, 09:08 AM
                          5 responses
                          17 views
                          0 likes
                          Last Post NinjaTrader_Clayton  
                          Started by jeronymite, 04-12-2024, 04:26 PM
                          3 responses
                          43 views
                          0 likes
                          Last Post jeronymite  
                          Working...
                          X