I am having issues in adding a new plot to my strategy. I am using the following function:
Add(new Plot(Color.Blue, PlotStyle.Dot, "ATR"));
I've added "ATR" to my #region Variables as:
// Wizard generated variables
privateint shortSMA = 20; // Default setting for ShortSMA
privateint longSMA = 40; // Default setting for LongSMA
privateint ATR = 20; // default for ATR
Here are the errors I get when I try to plot the following.. PLEASE HELP!
CalculateOnBarClose = true;
AccountSize = 1000000; //account size
Add(MAEnvelopes(1.5, 3, 20));
Add(SMA(40));
Add(SMA(10));
Add(new Plot(Color.Blue, PlotStyle.Dot, "ATR"));
BarsRequired = (1);
The best overloaded method match for 'NinjaTrader.Strategy.StrategyBase.Add(NinjTrader. Indicator.IndicatorBase)' has some invalid arguments
Code CS1502
and
Argument '1': cannot convert from NinjaTrader.Gui.Chart.Plot' to 'NinjaTrader.Indicator.IndicatorBase'
Code CS1503
Comment