The following CS0200 error code information is provided within the context of NinjaScript. The examples provided are only a subset of potential problems that this error code may reflect. In any case, the examples below provide a reference of coding flaw possibilities.
This error is most common when you try to assign values to a particular Series<T> index that is read-only. Instead try making your own Series<T> and assign the value there.
// Erroneous Sample Code - Cannot assign values to something that is read-only
Close = 25;
// Resolution Sample Code - Assigns value to a custom Series<double>
myCustomClose = 25;
// Erroneous Sample Code - Cannot reassign values to Series<double> indexed value and cannot have an if statement based // on an assignment operator
if (Close = Open)
// Resolution Sample Code - Properly compares two Series<double> values
if (Close == Open)