Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add custom DataSeries with multiple values

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

    Add custom DataSeries with multiple values

    I'm trying to add custom series to my strategy, but some of these series have multiple custom values.

    I'm currently using

    Code:
    AddDataSeries((BarsPeriodType)14, 10);
    as an example, but it's only allowing me to use one period/value.

    If possible, how do I adjust that to work properly? Any help is appreciated.

    Thanks

    #2
    Hello Lumbeezl,

    Thank you for your post.

    You can specify optional BarsPeriod values (such as Value2) of a custom BarsType in the BarsPeriod object initializer.

    For example:

    Code:
    AddDataSeries(new BarsPeriod() { BarsPeriodType = (BarsPeriodType)14, Value = 10, Value2 = 20 });
    Please let us know if we may be of further assistance to you.

    Comment


      #3
      That's exactly what I was looking for. Thanks so much for the quick response

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      69 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      42 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      24 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      27 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      54 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X