Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AtmStrategySelector - setting a default value

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

    AtmStrategySelector - setting a default value

    I have added my own instance of an AtmStrategySelector to a chart using an indicator. I would like to set the default selected value to an Atm Strategy instead of "None". However any event listener I have attempted to use (SelectionChanged, CustomPropertiesChanged, Loaded, etc) do not work. When they fire for the first time when the indicator is loaded, it always returns 4 items (I use atmStrategySelector.Items.Count to see how many items there are). And those 4 items are all Separators. Only when I call the selector from from OnRender() do I get the full list of all the values. So it seems the values are loaded with some delay?

    But I don't think attemting to set the default value from OnRender is the best place to do that. What is the timing or load order of the Atm Strategies? Is there an event that will fire after all the values have been loaded? Or is there a selector option that is something like "DesiredAtmStrategy" that can be set?

    Thanks.
    Last edited by martyn73; 11-17-2019, 03:39 PM.

    #2
    Hi martyn73, thanks for your post.

    The code to set a default value doesn't exist in Ninjatrader, so this will need to be submitted as a feature request. I will post a feature tracking ID in the next couple of business days.

    Thanks in advance for your patience.

    Comment


      #3
      Yes, would like to see this added. As a work around I now read the list of atm strategies, figure out it's index order. Then add 4 to it because that appears to be where they start on the selector. Then use atmStrategySelector.SelectedIndex to set the default value. So not a straight forward solution.

      Comment


        #4
        Originally posted by martyn73 View Post
        I have added my own instance of an AtmStrategySelector to a chart using an indicator. I would like to set the default selected value to an Atm Strategy instead of "None". However any event listener I have attempted to use (SelectionChanged, CustomPropertiesChanged, Loaded, etc) do not work. When they fire for the first time when the indicator is loaded, it always returns 4 items (I use atmStrategySelector.Items.Count to see how many items there are). And those 4 items are all Separators. Only when I call the selector from from OnRender() do I get the full list of all the values. So it seems the values are loaded with some delay?

        But I don't think attemting to set the default value from OnRender is the best place to do that. What is the timing or load order of the Atm Strategies? Is there an event that will fire after all the values have been loaded? Or is there a selector option that is something like "DesiredAtmStrategy" that can be set?

        Thanks.
        Hello martyn73,

        I´m trying to create something similar.. wouldn´t you mind to share your indicator?

        Thank you
        emuns

        Comment


          #5
          Hi all, the feature tracking ID for this request is #4499

          Comment


            #6
            Originally posted by NinjaTrader_ChrisL View Post
            Hi all, the feature tracking ID for this request is #4499
            Hello Chris,

            add my vote for this feature request please.

            Thank you

            Comment


              #7
              Hello emuns,

              We have added your vote.

              Thanks for sharing your interest.

              Comment


                #8
                Originally posted by NinjaTrader_ChrisL View Post
                Hi all, the feature tracking ID for this request is #4499
                Hi !
                Any news about this ?
                pmaglio
                NinjaTrader Ecosystem Vendor - The Indicator Store

                Comment


                  #9
                  Hello pmaglio, thanks for the follow up.

                  This is still open. I have added another vote to this request for you.

                  Kind regards.

                  Comment


                    #10
                    Is this still open? If so, please add my vote. If not, can someone share the fix?

                    Comment


                      #11
                      As of NinjaTrader 8.1.4.1, there isn’t a built‐in option to have the ATM Strategy Selector automatically preselect a default strategy when a chart first loads (i.e. when opening a workspace). The behavior is such that unless you’ve already configured and saved your chart (for example, via a chart template that includes your ATM strategy settings), the ATM Strategy Selector will not load with a pre‑set value.

                      What You Can Do Instead:
                      • Save a Chart Template:
                        If you have a specific ATM strategy configuration you want to use, set up your chart with that strategy and then save the chart as a template. When you load that template, your ATM strategy settings will be recalled.
                      • Manual Selection:
                        Otherwise, you’ll need to manually select the desired ATM strategy from the ATM Strategy Selector each time you open a new chart or workspace that doesn’t already have that configuration saved.

                      If having a default selection is critical for your workflow, you might consider submitting a feature request on the NinjaTrader support forum for a future release. Currently, however, the functionality to auto-load a default ATM strategy upon first chart load is not available.

                      So, still looks like they would need to add this in as a feature request in a future release. Still waiting 5+ years lol.

                      Comment


                        #12
                        Hello Cgammons01,

                        I will add your vote to this request SFT-4499.

                        Please note, we receive many requests and cannot reasonably implement all requested features or changes. Interest is tracked internally and if enough interest is tracked, it would be weighed against how feasible it would be to make those changes to consider implementing, so we cannot offer an ETA or promise of fulfillment.

                        When new features are implemented, they will be listed in the Release Notes page of the Help Guide. The ID number may be different than the internal feature request tracking ID, but the description of the feature will let you know if that feature has been implemented.

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

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                        0 responses
                        558 views
                        0 likes
                        Last Post Geovanny Suaza  
                        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                        0 responses
                        324 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
                        545 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by RFrosty, 01-28-2026, 06:49 PM
                        0 responses
                        547 views
                        1 like
                        Last Post RFrosty
                        by RFrosty
                         
                        Working...
                        X