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.

    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 NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          54 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          130 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          72 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          44 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          49 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X