Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Set default values for Strategy

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

    Set default values for Strategy

    I would like to set the default value for "price based on", "Type" and "Value". Also for time series, I would like to set the default value. (Please see screenshot)

    How can I do this in the strategy code?
    Attached Files

    #2
    Hello sambathraj,

    There is not a way to set default data series properties in the strategies code, that can only be controlled by using a template or manually changing them.

    Comment


      #3
      Thanks. How do we use the template to set this parameter? Everytime when I compile, Strategy analyzer looses the value set for the data series.

      Comment


        #4
        Hello sambathraj,

        After manually configuring the strategy you can create a template, that will retain the data series properties it was configured with when loaded. You can use a default template to keep always used values.

        Comment


          #5
          It looks like template stores the instrument name. But it does not store whether 5 min or 10 min chart is used. How do I fix that? Do you have an example template which stores these details?

          Comment


            #6
            Hello sambathraj,

            I tried this on my end and see the template also stores the data series settings. After making changes to the data series you can save a template, when the strategy loads the template or the default the data series settings are changed. That works in both the control center and analyzer.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            88 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            48 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            30 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            34 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            68 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X