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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          63 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          35 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          54 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          61 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          48 views
          0 likes
          Last Post CarlTrading  
          Working...
          X