Let's say that I wanted to carry out the calculations of an indicator in various user defined classes such as:
public class MyClass1
{
..
..
..
};
public class MyClass
{
private int x;
private System.Collections.Generic.List<MyClass1> lst;
public void Calculate(ref MyClass1 myclass1)
{
}
public void Calculate2(...)
{
}
};
In other words the calculation of this indicator is a bit complex and I would prefer to break it down into several classes.
What is the best way of providing Open, High, Low, Close, Volume series access to these classes?
Inheriting from the Indicator class does not seem to be an option.
Any hint or help is greatly appreciated.
Comment