Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Changing parameters in running strategies

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

    Changing parameters in running strategies

    2 related questions, actually.

    1. Is it possible to change an input parameter while a strategy is running?

    2. If not, I would have to stop the strategy and enter a new value. However, the information stored in variables during the previous session is lost then. Is it possible to store variables (for example, time elapsed or profit information) somewhere outside the strategy and retrieve them after the next session starts?

    #2
    1. Unfortunately not while the strategy is already running.

    2. You could try a text file, but this is not supported. Perhaps this reference will give you some ideas though: http://www.ninjatrader-support2.com/...ead.php?t=3476
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by Loki45 View Post
      2 related questions, actually.

      1. Is it possible to change an input parameter while a strategy is running?

      2. If not, I would have to stop the strategy and enter a new value. However, the information stored in variables during the previous session is lost then. Is it possible to store variables (for example, time elapsed or profit information) somewhere outside the strategy and retrieve them after the next session starts?
      It's possible, but it is outside of the realm of Ninja Trader and into the realm of C#. I've got a couple of things running that do just what you are asking.

      Comment


        #4
        I am a newbie for programming but I think we can write the variables to a text file and retrieve back when needed in c#. Just a suggestion .Try if it works
        Cheers,

        Comment


          #5
          Originally posted by Prospectus View Post
          It's possible, but it is outside of the realm of Ninja Trader and into the realm of C#. I've got a couple of things running that do just what you are asking.
          Are you doing it with text files like the other two posts are suggesting?

          Comment


            #6
            my solution

            Hello,

            some time ago I developped a solution for changing paramters in a running strategy.
            As I see request here I decided to make my solution available to other NinjaTrader users.
            Please undrstand that this cannot be for free as I put significant effort and time into this.

            Please have a look at

            Discover top crypto trading apps like Binance for secure, low-fee trading. Access crypto, forex, and more with real-time tools. Avoid scams, start small, and grow profits.


            Andreas

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            672 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            379 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            111 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            575 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            582 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X