CS0443

View as Markdown

The following CS0443 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 commonly invoked when no index value is used inside the indexing brackets.

Please ensure you place a value inside the ’[]’.

Error Description #1

Syntax error, value expected

1// Erroneous Sample Code - Missing index value
2double myValue = SMA(20)[];
3
4// Resolution Sample Code - 'myValue' takes on the current bar's SMA(20) value
5double myValue = SMA(20)[0];