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

changing input parameter type at config time

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

    changing input parameter type at config time

    hi support again...

    I'm using user defined input types for a strategy (enums). And depending on the intrument typ the strategy is binded, the enum typ should change.
    I think it is a feature of C# to define the input parameter type as object and at runtime bind an specific enum to the variable.
    What would be the best time to do that?
    It must be before the setup dialog raised, so the user has the correct choice. Is that possible by NT?

    Any ideas?
    cicondo

    #2
    I have done this, you are right you must access Ninja before the NewStrategy Dialog is shown.
    You must use quite a few undocumented functions. Search my older posts and you will get an idea how I resolved this.

    I have parameters saved relative to the instrument used.


    best regards

    andreas

    Comment


      #3
      Hi Andreas,

      many thanks for your tip.
      But you have over 137 posts...how old do you think it is?

      cicondo


      Originally posted by zweistein View Post
      I have done this, you are right you must access Ninja before the NewStrategy Dialog is shown.
      You must use quite a few undocumented functions. Search my older posts and you will get an idea how I resolved this.

      I have parameters saved relative to the instrument used.


      best regards

      andreas

      Comment


        #4
        Support for the development of custom automated trading strategies using NinjaScript.


        and related xml stuff

        Comment


          #5
          Thanks a lot...zweistein

          Originally posted by zweistein View Post

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by DustyContrer, Today, 04:02 AM
          0 responses
          3 views
          0 likes
          Last Post DustyContrer  
          Started by ETFVoyageur, Today, 02:15 AM
          0 responses
          11 views
          0 likes
          Last Post ETFVoyageur  
          Started by Board game geek, Today, 01:34 AM
          0 responses
          9 views
          0 likes
          Last Post Board game geek  
          Started by morrnel, 05-12-2024, 06:07 PM
          3 responses
          42 views
          0 likes
          Last Post wzgy0920  
          Started by FishTrade, Yesterday, 11:11 PM
          0 responses
          7 views
          0 likes
          Last Post FishTrade  
          Working...
          X