# Volume Oscillator

#### Description <a href="#description_131" id="description_131"></a>

The Volume Oscillator makes use of the difference between the moving averages based on the trading volume, with a similar result to the MACD or to any other oscillator in which moving averages are used for calculation.

#### Interpretation <a href="#interpretation_62" id="interpretation_62"></a>

The Volume Oscillator is used to determine the trend strength. If developments in the price of the share are accompanied by disproportionate volume oscillator values, this should be regarded as highly relevant. In this way, the indicator can be used to filter out false signals. Values above zero mean that the shortest moving average of the volume is above the long-term moving average. IsSerieRising prices with a higher short-term volume indicate a bullish scenario.

#### Usage <a href="#usage_118" id="usage_118"></a>

```csharp
VolumeOscillator(int fast, int slow)
VolumeOscillator(IDataSeries inSeries, int fast, int slow)
VolumeOscillator(int fast, int slow)[int barsAgo]
VolumeOscillator(IDataSeries inSeries, int fast, int slow)[int barsAgo]
```

#### Return value <a href="#return-value_116" id="return-value_116"></a>

**double**

When using this method with an index (e.g. **VolumeOszillator**(12,26)\[**int** barsAgo] ), the value of the indicator will be issued for the referenced bar.

#### Parameters <a href="#parameters_107" id="parameters_107"></a>

inSeries Input data series for the indicator

fast Number of bars for the calculation of the fast moving average

slow Number of bars for the calculation of the slow moving average

#### Visualization <a href="#visualization_120" id="visualization_120"></a>

![Volume Oscillator](https://agenatrader.github.io/AgenaIndicator-documentation/media/VolumeOscillator.jpg)

#### Example <a href="#example_112" id="example_112"></a>

```
//Output of the current value for the Volume Oscillator
Print("The current value for the Volume Oscillator is: " + VolumeOszillator(12,26)[0]);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://indicators.agenatrader.com/premium-indicators/volume-addon/volume-oscillator.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
