Skip to main content

wma


WMA

Type: wma • Category: indicators

Description

Calculates the weighted moving average based on a list of prices

Parameters

NameTypeDescriptionRequiredDefault
dataExpstringList of pricesno
timeperiodnumberno30

Help

WMA

Weighted Moving Average Indicator

Description

The WMA (Weighted Moving Average) indicator is a financial market indicator that calculates the weighted moving average of a list of prices. It gives more importance to recent prices, making it a useful tool for analyzing trends and making informed investment decisions.

What does this worker do?

This worker takes a list of prices and a time period as input, and calculates the weighted moving average based on these parameters. The weighted moving average is a type of moving average that assigns more weight to recent prices, providing a more accurate representation of the current market trend.

How to interpret the results

The result of the WMA worker is a single value representing the weighted moving average of the input prices. A higher WMA value indicates a stronger upward trend, while a lower WMA value indicates a stronger downward trend. By comparing the WMA value to the actual prices, traders and investors can gain insights into the market's momentum and make more informed decisions.

Parameters

The following parameters are required to configure the WMA worker:

Parameters Schema (JSON)

{
"dataExp": {
"type": "string",
"description": "List of prices"
},
"timeperiod": {
"type": "number",
"default": 30
}
}

Parameters List

  • dataExp:
    • Type: string
    • Description: List of prices
  • timeperiod:
    • Type: number
    • Description: The time period for the weighted moving average calculation
    • Default: 30

By adjusting the timeperiod parameter, you can change the sensitivity of the WMA indicator to recent prices. A shorter time period will give more weight to recent prices, while a longer time period will give more weight to historical prices.