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

# Value

## Definition

A collection of historical references to the first ISeries object Values\[0] in the indicator. This is the primary indicator value (synched to the primary series in case of a [MultiSeries](/developer/desktop-sdk/guides/educational-resources/multi-time-frame-instruments) indicator)

## Property Value

An ISeries\<double> object.

## Syntax

`Value`

## Examples

```csharp
// OnBarUpdate method of a custom indicator  
protected override void OnBarUpdate()  
{  
    // Ensures we have enough bars loaded for our indicator  
    if (CurrentBar < 1)  
        return;  
   
    // Evaluates the indicator primary value 1 bar ago and sets the value of the indicator  
    // for the current bar being evaluated  
    if (Value[1] < High[0] - Low[0])  
        Value[0] = High[0] - Low[0];  
    else  
        Value[0] = High[0] - Close[0];  
}
```