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 cmtjoancolmenero, Yesterday, 03:58 PM
          6 responses
          28 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by gbourque, Today, 06:39 AM
          2 responses
          14 views
          0 likes
          Last Post gbourque  
          Started by rexsole, Today, 08:39 AM
          0 responses
          4 views
          0 likes
          Last Post rexsole
          by rexsole
           
          Started by trilliantrader, Yesterday, 03:01 PM
          3 responses
          31 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Started by Brevo, Today, 01:45 AM
          1 response
          14 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X