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

Access Input Series name in SetDefaults

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

    Access Input Series name in SetDefaults

    Hello,

    I am trying to default some strategy parameters when creating a new strategy based on the asset. I am aware that we can not get the instrument name until the DataLoaded state. Is there a way to access the Input series name under the Data Series tab of the strategy in the SetDefaults state?

    Click image for larger version

Name:	image.png
Views:	62
Size:	62.8 KB
ID:	1260765

    Thank you,

    #2
    Hello HypoXic5665,

    There is not a way to work with the data series inside of SetDefaults, that property would need to be selected by the user. If there is only one data series on the chart the input series would select that, if there is more than one available input the first is default selected otherwise whatever the user selects is used.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thank you for the reply,

      Is there a way to just get the name of the defaulted selected input series in set defaults?

      Thank you,

      Comment


        #4
        Hello HypoXic5665,

        At that point the defaults are set for the UI dialog and not passed to your strategy instance, the chart is providing the grid with the series it has. Those aren't known to the strategy at that point, once you apply it then it would know about the series being used. Can you provide more specific detail on what you are trying to accomplish?
        JesseNinjaTrader Customer Service

        Comment


          #5
          Hello,

          I am trying set default strategy parameters based on the input series that the strategy is being tied to. I would like this to populate when the user first starts customizing the strategy so that they can see the recommended inputs for that asset. I can do this in the DataLoaded, but would be misleading to the user as it would be changing variables after they applied it. From what your outlineing, it doesn't seem that this is possible. That is fine, I am just trying to take some tedious processes and fat finger errors out of adding strategies to charts.


          Thank you,

          Comment


            #6
            Hello HypoXic5665,

            This would be more of a situation to create templates for those the supported asset classes used and then select the template while applying the strategy.
            JesseNinjaTrader Customer Service

            Comment


              #7
              Ok.

              Thank you for your input.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by fx.practic, 10-15-2013, 12:53 AM
              5 responses
              5,403 views
              0 likes
              Last Post Bidder
              by Bidder
               
              Started by Shai Samuel, 07-02-2022, 02:46 PM
              4 responses
              94 views
              0 likes
              Last Post Bidder
              by Bidder
               
              Started by DJ888, Yesterday, 10:57 PM
              0 responses
              6 views
              0 likes
              Last Post DJ888
              by DJ888
               
              Started by MacDad, 02-25-2024, 11:48 PM
              7 responses
              158 views
              0 likes
              Last Post loganjarosz123  
              Started by Belfortbucks, Yesterday, 09:29 PM
              0 responses
              8 views
              0 likes
              Last Post Belfortbucks  
              Working...
              X