I have a proprietary indicator I wrote let's name it Indicator1 that gets no arguments.
Now I'm developing a new indicator let's name it Indicator2.
Within Indicator2 I want to use the values of Indicator1 so I write the following code:
#region Variables
private Indicator1 indicator1= null;
#endregion
protected override void Initialize()
{
indicator1 = Indicator1();
Add(indicator1); //ERROR!!!!!!!
}
protected override void OnBarUpdate()
{
//This is the way I want to use it
if(indicator1[0] > 10)
//Do someting...
}
How can I solve it?
BTW in Strategies I don't have any problems adding Indicators.
Thank in advance!

Comment