> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# CS0443

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**

```csharp
// 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];
```