Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change parameters of strategy

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

    Change parameters of strategy

    When I have a strategy running in a chart and I want to change some parameters, which is the best way to do it? Actually I must change "Enabled to Disable" and then click on buttom "Apply" and then change de parameters and then change again from "Disable to Enable"... Is there any way more easy and quick?

    Thanks.

    #2
    Unfortunately not soyjesus, that would be the way to go as you outlined.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      soyjesus,

      I have found the best way to do this is to read your parameter values from a file, ignoring the ones set via the property box. Read the file in OnPositionUpdate whenever you are flat and apply the new parameters at that point.

      If you have the file open in Notepad, you can simply change the parameter you want to, save the file and the next time you enter a positon (from being flat), you can use the new value.

      Scott

      Comment


        #4
        Ok Scott thank you very much for your help.

        Comment


          #5
          You are quite welcome. Check out the stream reader sample code if you need to know how to read an external file.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by TraderIqbal, 10-20-2023, 10:12 AM
          2 responses
          117 views
          0 likes
          Last Post Funnywo
          by Funnywo
           
          Started by Creamers, 04-27-2024, 05:32 AM
          12 responses
          72 views
          0 likes
          Last Post Creamers  
          Started by fredericlebre, Today, 01:19 AM
          0 responses
          4 views
          0 likes
          Last Post fredericlebre  
          Started by TraderJA, Today, 12:06 AM
          0 responses
          6 views
          0 likes
          Last Post TraderJA  
          Started by SnailHorn, Yesterday, 10:49 PM
          0 responses
          8 views
          0 likes
          Last Post SnailHorn  
          Working...
          X