I saw some sample codes where classes are assigned to null.
Suppose i want to write a code where if the CurrentBar is less than say 10, i want to assign the value null. Is it valid to assign null to values of DataSeries?
For instance, would this be a correct code:
if (CurrentBar<Periods) {
Input[0] = null; // where Input is a DataSeries
}
if (Input[0] != null && Input[1] == null) {
AnotherInput[0] = Input[0]; // where AnotherInput is another DataSeries
}
thanks
Comment