The following NT1503 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 can occur when you try to set the value of a DataSeries object to another DataSeries. DataSeries objects can only take on values that are integers or doubles.
To ensure you are not setting the value of your DataSeries object to another DataSeries object, use an index value on the DataSeries object that contains the value you want.
Error Description #1
// Erroneous Sample Code – Cannot set a DataSeries to another DataSeries
// Resolution Sample Code – Assign the value at index 1 (previous bar)
Additional Error Descriptions