#region Properties
[Browsable(false)]
[XmlIgnore]
public Series<double> myRSI
{
get { return Values[0]; }
}
The problem with using the internals of an indicator for a strategy is that the Addplot()'s must be used with *all* the "return Value[0]", "return Value[1]", "return Value[2]",..., "return Value[n]" for all the indicator array data that's fed to the chart for drawing via the AddPlot() functions.
The goal, however, for the strategy is to kill all the drawing of the indicator array data on the chart (this is a strategy), and only show the default NT8 Execution order information for trades (#shares, magenta and blue arrows for longs and shorts) on the price panel to which the strategy was added.
So as an attempt to kill the drawing of the arrays on the chart, I tried moving the double array early on in the class, i.e.:
public class myStrat : Strategy
{
private Series<double> myRSI;
and then commented out the AddPlot and all the code shown below:
// [Browsable(false)]
// [XmlIgnore]
// public Series<double> myRSI
// {
// get { return Values[0]; }
// }
But the compiler goes bonkers over this.
Overall, the strategy is correctly posting Executions with the NT8 default long and short #shares and arrows, but I can't seem to kill the AddPlot() functions, the Value[0] returns which send the indicator arrays to the chart, and redefine the <double> series e.g. myRSI somewhere else without a compile error.
FYI - the SampleMACrossOver strategy has no AddPlot or Value[0] returns in the properties, so how can I move a <double> series defined in the #region Properties up into the class, and then kill the indicator graphics?
Comment