• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Parameters in Add On?

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

    Parameters in Add On?

    Hello, 1) How do I set a Parameter value for an AddOn? 2) How do I add a new Parameter to an existing AddOn? I'm not using AddOn to make a new tab or window....it is used to launch a background process.... Thanks

    #2
    reformatted?

    Hello,

    1) How do I set a Parameter value for an AddOn?

    2) How do I add a new Parameter to an existing AddOn?

    I'm not using AddOn to make a new tab or window....it is used to launch a background process....

    Thanks

    Comment


      #3
      Hello Turtle Trader,

      Thank you for your note.

      So I can best answer your question, would you please provide more information on what you're looking to do when you say set a parameter value?

      I look forward to your reply.
      Alan P.NinjaTrader Customer Service

      Comment


        #4
        reply

        I found a better solution than parameters

        What I am trying to do is to get the name of a session run time Profile.

        I don't like using the Ninja Parameters so I put most all parameters in an SQL database then load them at startup into public static variables.

        So, in this case I just needed the name of the Profile I want to load....for testing the profile will be something like TEST. In production, a different profile PROD.

        What I did was to put this profile name in a text file, very similar to the old idea of an INI file, in the Ninja 8 My Documents and then read it at startup (via an AddOn.

        Once I have the name of the session Profile, then I can continue loading the run configuration from the SQL database with an AddOn.

        Works good, and I don't have to mess with the Parameters.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by rickyblah12, Today, 08:17 PM
        0 responses
        5 views
        0 likes
        Last Post rickyblah12  
        Started by mrlucky1x, Today, 08:07 PM
        0 responses
        2 views
        0 likes
        Last Post mrlucky1x  
        Started by uday12, Today, 07:21 PM
        0 responses
        3 views
        0 likes
        Last Post uday12
        by uday12
         
        Started by voltlon, Today, 05:18 PM
        0 responses
        6 views
        0 likes
        Last Post voltlon
        by voltlon
         
        Started by Bobisam, Today, 04:57 PM
        0 responses
        8 views
        0 likes
        Last Post Bobisam
        by Bobisam
         
        Working...
        X