<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Editor > Compile Error Codes >


Previous page Return to chapter overview Next page

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


// Erroneous Sample Code - Missing index value

double myValue = SMA(20)[];


// Resolution Sample Code - 'myValue' takes on the current bar's SMA(20) value

double myValue = SMA(20)[0];