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

# Volume (VOL)

## Description

Volume is simply the number of shares (or contracts) traded during a specified time frame (e.g., hour, day, week, month, etc). The analysis of volume is a basic yet very important element of technical analysis. Volume provides clues as to the intensity of a given price move.

... Courtesy of [Market In Out](http://www.marketinout.com/technical_analysis.php?id=114)

## Syntax

`VOL()`

`VOL(ISeries\<double\> input)`

**Returns default value**

`VOL()[int barsAgo]`

`VOL(ISeries\<double\> input)[int barsAgo]`

## Return Value

**double**; Accessing this method via an index value `[int barsAgo]` returns the indicator value of the referenced bar.

## Parameters

| Parameter | Description                                                                          |
| --------- | ------------------------------------------------------------------------------------ |
| input     | Indicator source data ([ISeriesT](/developer/desktop-sdk/references/common/iseriest) |

## Example

```csharp
// Prints the current value VOL  
double value = VOL()[0];  
Print("The current VOL value is " + value.ToString());
```

## Source Code

You can view this indicator method source code by selecting the menu New > NinjaScript Editor > Indicators within the NinjaTrader Control Center window.