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

AtmStrategySelector in indicator

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

    AtmStrategySelector in indicator

    I would like to add a strategy selector on a custom chart panel that I have created. I see there is an AtmStrategySelector in the AddOn base. But that does not work when calling it from an indicator. Is there a way to do this within an indicator?

    #2
    Can somebody from NT respond to my question? Thanks!

    Comment


      #3
      Hello martyn73,

      Apologies for the delay. I wrote up a response and failed to send it out.

      This would not be a property that could be added to indicators parameters, but it may be possible to add this control to the WPF elements of a chart using the Addon approach.

      Below is a link to an example that uses the Atm Strategy Selector.



      And a link to example indicators that modify WPF elements.

      Hello All, Moving forward this will be maintained in the help guide reference samples and no longer maintained on the forum. Creating Chart WPF (UI) Modifications from an Indicator - https://ninjatrader.com/support/help...ui)-modifi.htm (https://ninjatrader.com/support/helpGuides/nt8/creating-chart-wpf-(ui)-modifi.htm) I've

      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Thanks for the example. But my solution requires direct access to the ATM strategies without using a separate AddOn window. Is there a way to get the list of Atm strategies so I can add them to my own control?

        Comment


          #5
          Hello martyn73,

          The AtmStrategySelector automatically populates the list of Atm Strategies.

          Anything outside of this would require custom C# and would be outside of what is supported by NinjaTrader Support.


          AtmStrategy templates are located in Documents\NinjaTrader 8\templates\AtmStrategy. In your custom c# code one idea might be listing the file contents of this folder.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Thank you for the guidance. I have created my own ComboBox with the Atm strategies listed. Ideally it would also include the "Custom" value option that pops up the Custom Strategy Parameters window. Is there a way for me to call that?

            Comment


              #7
              Hello martyn73,

              I am not aware of a way of creating that without using an AtmStrategySelector object.
              Chelsea B.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by bill2023, Yesterday, 08:51 AM
              8 responses
              43 views
              0 likes
              Last Post bill2023  
              Started by yertle, Today, 08:38 AM
              6 responses
              25 views
              0 likes
              Last Post ryjoga
              by ryjoga
               
              Started by algospoke, Yesterday, 06:40 PM
              2 responses
              24 views
              0 likes
              Last Post algospoke  
              Started by ghoul, Today, 06:02 PM
              3 responses
              16 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by jeronymite, 04-12-2024, 04:26 PM
              3 responses
              46 views
              0 likes
              Last Post jeronymite  
              Working...
              X