if(dsDMP2 == null) dsDMP2 = new DataSeries(DM(BarsArray[1],period2).DiPlus);
and I get a CS1502 and a NT1503 error.
If I leave off the ".DiPlus" it works OK.
(1) Why doesn't this work? Isn't the DiPlus a series?
(2) Will any formula work in order to assign BarsArray[1] to a dataseries even though I may use a different formula in the ".Set" command? i.e. Use an SMA in the "new" but use ADX in the "Set".
Thanks
Comment