I've been fiddling with this all day and am a bit stuck, I'm trying to load 1 indicator from another indicator, so i assume first thing I have to do is add the second indicator to my first in the initialise event?
Like so:
protectedoverridevoid Initialize()
{
Add(FalseBreakRev(1,SF,SP));
signalD = new DataSeries(this);
CalculateOnBarClose = true;
Overlay = true;
PriceTypeSupported = true;
}
On compilation however I'm constantly getting this error:
Indicator\RNBSignals.cs,The best overloaded method match for 'NinjaTrader.Indicator.IndicatorBase.Add(NinjaTrad er.Gui.Chart.Line)' has some invalid arguments,CS1502 - click for info,46,4,
Indicator\RNBSignals.cs,Argument '1': cannot convert from 'NinjaTrader.Indicator.FalseBreakRev' to 'NinjaTrader.Gui.Chart.Line',CS1503 - click for info,46,8,
I have tried calling the indicator in the same way from my strat and I don't get this problem, it only seems to be when i call one indicator like this, is my implementation incorrect?.
Thanks
Cheers
Ross
Comment