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 argusthome, Yesterday, 10:06 AM
      0 responses
      22 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      19 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      14 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      10 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      41 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X