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

ParameterCollection in NT8

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

    ParameterCollection in NT8

    Hello!

    I am trying to collect custom/add-on public variables of Parameters within a Strategy

    I don't want to collect manually by writing all the variables, I want it compatible with Alien Strategies - so I have the second file that will work as a collector

    In NT7 I able to collect

    using the following

    foreach (Parameter Myparam in Parameters)
    {
    myAL.Add(Myparam.Name);
    }

    The ParameterCollection "Parameters" is no longer exist in NT8?

    Is there something new in NT8, Any workaround to address my concern?


    Thanks,
    Danville
    Last edited by Danville.Sumobay; 01-09-2018, 02:11 AM.

    #2
    Hello,

    Thank you for the post.

    I will need to research this item as this was not a documented or supported item in NT7. This may or may not be available in NT8, when I have further details I will reply back here.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello,

      To reply on this item, the collection has been moved to:

      Code:
      foreach (Parameter Myparam in OptimizationParameters)
      {
      					
      }

      This is still not a documented topic for Strategies specifically but is noted in the Optimizer help which is the only area where this is used: https://ninjatrader.com/support/help...tionParameters

      Testing in a strategy I do see this is available for NinjaScript although undocumented.

      I look forward to being of further assistance.
      Last edited by NinjaTrader_Jesse; 01-09-2018, 09:04 AM.
      JesseNinjaTrader Customer Service

      Comment


        #4
        Thank you, Jesse!

        Exactly what I am looking for.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by KennyK, 05-29-2017, 02:02 AM
        2 responses
        1,278 views
        0 likes
        Last Post marcus2300  
        Started by fernandobr, Today, 09:11 AM
        0 responses
        0 views
        0 likes
        Last Post fernandobr  
        Started by itrader46, Today, 09:04 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by timmbbo, Today, 08:59 AM
        0 responses
        2 views
        0 likes
        Last Post timmbbo
        by timmbbo
         
        Started by bmartz, 03-12-2024, 06:12 AM
        5 responses
        33 views
        0 likes
        Last Post NinjaTrader_Zachary  
        Working...
        X