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 bortz, 11-06-2023, 08:04 AM
          47 responses
          1,607 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          9 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          19 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          6 views
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          15 views
          0 likes
          Last Post Javierw.ok  
          Working...
          X