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

# GetCurrentBidVolume()

## Definition

Returns the current real-time bid volume.

1. When accessed during **State.Historical**, the [Volume](/developer/desktop-sdk/references/common/system-indicator-methods/volume) of the evaluated bar series is substituted. To access historical Bid Volumes, please see [Developing for Tick Replay](/developer/desktop-sdk/guides/educational-resources/developing-for-tick-replay).
2. The **GetCurrentBidVolume()** method runs on the bar series currently updating determined by the **BarsInProgress** property. For [multi-instrument](/developer/desktop-sdk/guides/educational-resources/multi-time-frame-instruments) scripts, an additional int "barsSeriesIndex" parameter can be supplied which forces the method to run on a supplementary bar series.

## MethoReturn Value

A long value representing the current bid volume.

## Syntax

`GetCurrentBidVolume()`

`GetCurrentBidVolume(int barsSeriesIndex)`

## Parameters

| Parameter           | Description                                                                                                                         |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| **barsSeriesIndex** | An **int** value determining the bar series the method runs. Note: This optional parameter is reserved for multi-instrument scripts |

## Examples

```csharp
protected override void OnBarUpdate()
{
   long currentBidVolume = GetCurrentBidVolume();
   Print("The Current Bid volume is: " + currentBidVolume);
   //The Current Bid volume is: 158
}

```

```csharp
protected override void OnStateChange()
{
   if (State == State.SetDefaults)
   {
     Name = "Examples Indicator";
   }
   if (State == State.Configure)
   {
     //Add MSFT as our additional data series
     AddDataSeries("MSFT", BarsPeriodType.Minute, 1);
   }
}
```

```csharp
protected override void OnBarUpdate()
{
   if(BarsInProgress == 0)
   {
     long currentBidVolume = GetCurrentBidVolume(0);
     Print("The Current Bid volume is: " + currentBidVolume);
     //The Current Bid volume is: 346
   }

   if(BarsInProgress == 1)

   {

     long msftBidVolume = GetCurrentBidVolume(1);

     Print("MSFT's Current Bid volume is: " + msftBidVolume);

     //MSFT's Current Bid volume is: 1548

   }
```