Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Referencing timeframe

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

    Referencing timeframe

    Hi guys.

    Is there a way to reference the time frame chosen in a strategy? I need it so I can create my secondary bars time-frame as I work in multiples of 3. For example if primary bars is selected as 1500 tick then secondary bars needs to be 500 tick. For example what I am trying to do is this.
    Initialize
    {
    eg. Add(PeriodType.Tick.PrimaryBars / 3);
    }

    Thanks

    Ash

    #2
    Hi Ash, unfortunately we could not support the dynamic addition of series - you can query the series you're working with over the BarsPeriod.Id and Value, however only outside of Initialize().

    For your need, I would create custom inputs for the series to load, so the user sets the timeframe to a third as needed via the input.

    Comment


      #3
      Cheers for the response Bertrand. Good idea, I will just create user inputs for the time frames as suggested.

      Thanks

      Ash

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      649 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      370 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      109 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      574 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      576 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X