Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Request: Virtual Series<T> methods

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

    Request: Virtual Series<T> methods

    Please make the get/set methods (indexers) of Series<T> virtual or provide a way to make the value lazy for descendants. I would like to override these to enable lazy calculations.

    For example, if I have a series where the calculation of the value is expensive and not all indicators/strategies would use it or use all values, it should not calculate.

    Code:
     public class MySeries : Series<MyEnum>
     {
         public override MyEnum this[int ago]
         {
             get
             {
                 if (!IsValidDataPoint(ago))
                     this[ago] = ExpensiveCalculation(ago);
      
                 return base[ago];
             }
             set { base[ago] = value; }
         }
     }

    #2
    Hello wbennettjr,

    Thank-you for your post and contributions to improving our product.

    I have submitted a feature request to the development team.

    Comment


      #3
      Thanks a lot Paul. No prob.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, Yesterday, 06:46 AM
      0 responses
      14 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      23 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      16 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      82 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      51 views
      0 likes
      Last Post PaulMohn  
      Working...
      X