I have a global created by:
MyIndicator myIndicator;
I try to initialize it in State.DataLoaded:
MyIndicator myIndicator = MyIndicator( stuff, morestuff);
I then tell it to be in a separate panel:
myIndicator.IsOverlay = false;
AddChartIndicator(myIndicator);
I get the error "Cannot implicitly convert type 'NinjaTrader.NinjaScript.Indicators.MyIndicator' to 'NinjaTrader.NinjaScript.Strategies.MyIndicator'". The Code is CS0029
and
The name 'myIndicator' does not exist in the current context" Code CS0103
What am I doing wrong?

Comment