CS0200
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.
Error Code Explanation
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.
Error Description
Property or indexer āNinjaTrader.NinjaScript.ISeries\<double\>.this[int]ā cannot be assigned to ā it is read only
Examples
Example #1
Erroneous Sample Code - Cannot assign values to something that is read-only
Resolution Sample Code - Assigns value to a custom Series<double>
Example #2
Erroneous Sample Code - Cannot reassign values to Series<double> indexed value and cannot have an if statement based on an assignment operator
Resolution Sample Code - Properly compares two Series<double> values

