Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

command to calculate Compound Value for NT*

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

    command to calculate Compound Value for NT*

    I am trying to find a code or command for NT8 to calculate a compound value according to following rule: if a bar number is greater than length then the visible data value is returned, otherwise the historical data value is returned. This function is used to initialize studies with recursion.
    I am new to NT8.Any help will be appreciated.

    #2
    Hello sukhob,

    The bar number is CurrentBar.

    By visible data you are meaning the visible bars on the chart as the chart is scrolled around?

    This would come from the ChartBars.FromIndex and .ToIndex.



    Then you are wanting to loop through the visible bars, is this correct?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Actually I am trying to convert ThinkorSwim (TOS) indicator to NT8. There is a command in TOS, CompoundValue. To see the details of that command please visit the following link: https://tlc.thinkorswim.com/center/r.../CompoundValue
      I would like to use the similar command for NT8. Please help me with it. Thanks.

      Comment


        #4
        Hello sukhob,

        I'm not aware of any command or method in NinjaScript with this functionality.

        I am happy to submit a feature request for the development team to consider this if you would like.

        For now, you will likely need to create that method.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Please submit a feature request. Thanks

          Comment


            #6
            Hello sukhob,

            I have received tracking ID# SFT-4622 for this request for a CompoundValue() method.

            As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.

            Release Notes — https://ninjatrader.com/support/help...ease_notes.htm

            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Would love to see this, too. Thanks!

              Comment


                #8
                Hello chasebank,

                I've added your vote.

                Thanks for your feedback.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  Did compound value get added?

                  Comment


                    #10
                    Hello Rocket,

                    SFT-4622 has not been implemented at this time. If implemented, it will be noted in the Release Notes page of the Help Guide.

                    Release Notes — https://ninjatrader.com/support/help...ease_notes.htm
                    Chelsea B.NinjaTrader Customer Service

                    Comment


                      #11
                      Thank you.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                      0 responses
                      574 views
                      0 likes
                      Last Post Geovanny Suaza  
                      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                      0 responses
                      332 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by Mindset, 02-09-2026, 11:44 AM
                      0 responses
                      101 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                      0 responses
                      553 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by RFrosty, 01-28-2026, 06:49 PM
                      0 responses
                      551 views
                      1 like
                      Last Post RFrosty
                      by RFrosty
                       
                      Working...
                      X