Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          648 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          369 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          108 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          572 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          573 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X