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

# CS0201

The following **CS0201** 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 make a statement solely from an indicator or variable call.

You will need to do something with the value you called for the statement to be complete.

### Error Description #1

Only assignment, call, increment, decrement, await and new object expressions can be used as a statement

Erroneous Sample Code - Statement that does nothing

```csharp
// Erroneous Sample Code - Statement that does nothing
SMA(5)[0];
```

Resolution Sample Code - 'currentSMA' takes on the current bar's SMA(5) value

```csharp
double currentSMA = SMA(5)[0]; 
```