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 CarlTrading, Yesterday, 11:51 AM
      0 responses
      17 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, Yesterday, 11:48 AM
      0 responses
      22 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-25-2026, 09:53 PM
      0 responses
      23 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 03-25-2026, 09:51 PM
      0 responses
      13 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 03-23-2026, 11:13 AM
      0 responses
      20 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X