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 PaulMohn, Today, 05:00 AM
          0 responses
          8 views
          0 likes
          Last Post PaulMohn  
          Started by ZenCortexAuCost, Today, 04:24 AM
          0 responses
          6 views
          0 likes
          Last Post ZenCortexAuCost  
          Started by ZenCortexAuCost, Today, 04:22 AM
          0 responses
          3 views
          0 likes
          Last Post ZenCortexAuCost  
          Started by SantoshXX, Today, 03:09 AM
          0 responses
          16 views
          0 likes
          Last Post SantoshXX  
          Started by DanielTynera, Today, 01:14 AM
          0 responses
          5 views
          0 likes
          Last Post DanielTynera  
          Working...
          X