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 charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          67 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          150 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          162 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          99 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          286 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X