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

Substitute for ^ADD Index

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

    Substitute for ^ADD Index

    I downloaded the Advance / Decline indicator for NT8. I cannot incorporate both ^ADV and ^DECL indexes into the Input Series to get the combined, single value I am looking for...

    I know NinjaTrader PatrickH has a program that he uploaded for a previous question along these lines. I wasn't sure if it was for NT7 or NT8? And he specifically asked for a "time frame". He set it up for a 3 minute chart.

    I would like to know a couple of things if possible:
    1) Is that program for NT7 or NT8?
    2) Will the program work on any time frame?
    3) How do we put 2 indexes into the input series for a chart or will the program take care of that for me?

    Thank you for your time and help in advance.

    CommodityRFun

    #2
    I actually want the same thing too. The only solution I've found is to use the Spread indicator on Big Mike's forum and run it between the 2 indexes.

    The best futures trading community on the planet: futures trading, market news, trading charts, trading platforms, trading strategies


    Ideally, I wish there was just a single indicator that did this. TOS does this easily by letting you put in ADD - DEC in the Input series window.

    Comment


      #3
      PN720,

      Hopefully you can make out the picture I am uploading of the "Spread Indicator" off of Big Mike's website? I have the ^ADV and ^DECL indexes in for the Front and Back legs with the ratios being 1 and 1. Only thing you forgot to mention is this indicator is for Elite members only which is a paid subscription of $100 for lifetime membership.

      All good though. This will take over for the ^ADD index and do a fine job! Thanks again for your reply.

      Comment


        #4
        Originally posted by CommodityRFun View Post
        PN720,

        Hopefully you can make out the picture I am uploading of the "Spread Indicator" off of Big Mike's website? I have the ^ADV and ^DECL indexes in for the Front and Back legs with the ratios being 1 and 1. Only thing you forgot to mention is this indicator is for Elite members only which is a paid subscription of $100 for lifetime membership.

        All good though. This will take over for the ^ADD index and do a fine job! Thanks again for your reply.
        Hi, thanks for posting this additional detail.
        A follow-up question for you.. have you been able to compare the values that the Spread indicator returns vs TOS ADD values? I saw different values but I assume that's due to 2 different feeds.

        Comment


          #5
          PN720,

          I have not used this indicator for Time Of Sales comparisons. I was strictly looking for the difference in the NYSE ^ADV and ^DECL indexes.

          Sorry I can not be of further help...

          CommodityRFun

          Comment


            #6
            Make a series that you plot and set its value to the subtraction of add And decline.

            Comment


              #7
              Sledge,

              Do you have a indicator set up for that? Something you could upload for everyone interested in using it or giving it a try?

              if so, include directions on how to use it and put the 2 input series in to get the results we are all looking for.

              Maybe have the output be able to be displayed in up and down candlesticks?

              I like the idea Sledge. I might be asking for too much...

              Thanks again!

              Comment


                #8
                Hello CommodityRFun,

                While not perfect, the AdvanceDecline indicator on the User App Share section of the ecosystems has the basic idea.
                NYSE Advancing Issues/Declining Issues Uses historical tick data to calculate the ^ADV index minus the ^DECL index to give a simulation of the ^ADD index. Requires a data feed that supports indexes and provides data for the ^ADV (NYSE Advancing Issues) and ^DECL (NYSE Declining Issues). Update June 16th, 2020 – Corrected stroke attributes to […]



                The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  ChelseaB,

                  When using the Advance /Decline indicator, what do you use for the data input series?

                  Thank you

                  Comment


                    #10
                    Hello CommodityRFun,

                    Internally in the script the ^ADV index and ^DECL index are added with AddDataSeries().
                    Chelsea B.NinjaTrader Customer Service

                    Comment


                      #11
                      Chelsea_B,

                      If I put the Advance / Decline indicator on a 5 minute ES chart, the data input series will be ES 5 minute. That will still plot the difference for the NYSE ^ADV and ^DECL?

                      Thank you.

                      PS: I’m not trying to be a wise guy. I’m just curious how I can get the difference between 2 indexes without the data being inputted?

                      Comment


                        #12
                        Hello CommodityRFun,

                        The data is added for those indexes with AddDataSeries() in the script.

                        Below is a link to the help guide on AddDataSeries().


                        After the data for those series are added, the ticks are collected until the primary bar closes and then the variable collecting those ticks is reset for the new bar.

                        This is an open source script and you are welcome to view the code in the NinjaScript Editor.
                        Chelsea B.NinjaTrader Customer Service

                        Comment


                          #13
                          Hi Chelsea,

                          I'm trying to use that AdvanceDecline indicator in a strategy but I'm having one small issue. I noticed that even if my primary data series is the 1 Minute chart, the indicator is returning a value every second. I've attached a simple strategy script that prints out the Close value. It's returning a value every second instead of every minute. How can I fix this?

                          Also, how can I get the Strat Analyzer chart display not to crunch up like the included PNG? Can I put the AdvanceDecline indicator in its own panel?
                          Attached Files
                          Last edited by PN720; 03-15-2019, 12:09 PM.

                          Comment


                            #14
                            Hello PN720,

                            Are you certain the script is running every second and not on every update of the primary series and each tick for the added series?

                            You script is coded to run on BarsInProgress 1 which is each tick of ^ADV.

                            Below is a public link to the help guide.



                            Unfortunately, no, the Strategy Analyzer does not give you all of the tools of a chart. It is not possible to add additional panels to the Chart display in the Strategy Analyzer.
                            Chelsea B.NinjaTrader Customer Service

                            Comment


                              #15
                              Originally posted by NinjaTrader_ChelseaB View Post
                              Hello PN720,

                              Are you certain the script is running every second and not on every update of the primary series and each tick for the added series?

                              You script is coded to run on BarsInProgress 1 which is each tick of ^ADV.

                              Below is a public link to the help guide.



                              Unfortunately, no, the Strategy Analyzer does not give you all of the tools of a chart. It is not possible to add additional panels to the Chart display in the Strategy Analyzer.
                              Hi Chelsea,

                              How can I change the added series to 1 Minute bars instead of each tick? I changed the indicator from Calculate OnEachTick to OnBarClose and also changed:

                              AddDataSeries("^ADV", new BarsPeriod() { BarsPeriodType = BarsPeriodType.Tick, Value = 1 }, hours.Name);
                              AddDataSeries("^DECL", new BarsPeriod() { BarsPeriodType = BarsPeriodType.Tick, Value = 1 }, hours.Name);


                              to:

                              AddDataSeries("^ADV", new BarsPeriod() { BarsPeriodType = BarsPeriodType.Minute, Value = 1 }, hours.Name);
                              AddDataSeries("^DECL", new BarsPeriod() { BarsPeriodType = BarsPeriodType.Minute, Value = 1 }, hours.Name);

                              But when I try to run it, I get an error:

                              'AdvanceDecline' tried to load additional data. All data must first be loaded by the hosting NinjaScript in its configure state. Attempted to load ^ADV Nyse: 1 Tick

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by manitshah915, Today, 12:59 PM
                              0 responses
                              2 views
                              0 likes
                              Last Post manitshah915  
                              Started by ursavent, Today, 12:54 PM
                              0 responses
                              2 views
                              0 likes
                              Last Post ursavent  
                              Started by Mizzouman1, Today, 07:35 AM
                              3 responses
                              17 views
                              0 likes
                              Last Post NinjaTrader_Gaby  
                              Started by RubenCazorla, Today, 09:07 AM
                              2 responses
                              13 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Started by i019945nj, 12-14-2023, 06:41 AM
                              7 responses
                              82 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Working...
                              X