# VWMA - Volume Weighted Moving Average

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

VWMA is a non-cumulated smoothed average that is weighted based on the various volumes for the periods.

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

```csharp
VWMA(int period)
VWMA(IDataSeries inSeries, int period)
VWMA(int period)[int barsAgo]
VWMA(IDataSeries inSeries, int period)[int barsAgo]
```

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

**double**

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

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

inSeries Input data series for the indicator

period Number of bars included in the calculations

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

![VWMA - Volume Weighted Moving Average](https://agenatrader.github.io/AgenaIndicator-documentation/media/VWMA.jpg)

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

```csharp
//Output for the VWMA
Print("The current VWMA value is " + VWMA(14)[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/standard-indicators/moving-averages/vwma-volume-weighted-moving-average.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.
