Skip to main content

TRIMA

Type: trima • Category: indicators

Description

Calculates the triangular moving average based on a list of prices

Parameters

NameTypeDescriptionRequiredDefault
dataExpstringList of pricesno
timeperiodnumberno30

Help

TRIMA

Triangular Moving Average Indicator for Financial Markets

Description

The TRIMA worker calculates the triangular moving average based on a list of prices. This indicator is used in financial markets to smooth out price data and identify trends.

What does this worker do?

The TRIMA worker takes a list of prices and a time period as input, and returns the triangular moving average of the prices over the specified time period. This helps to reduce noise and fluctuations in the price data, making it easier to identify trends and patterns.

How to interpret the results

The output of the TRIMA worker is a list of triangular moving averages, one for each input price. A higher TRIMA value indicates a stronger uptrend, while a lower TRIMA value indicates a stronger downtrend. When the TRIMA value crosses above or below the actual price, it can be a signal to buy or sell.

Parameters

The TRIMA worker takes the following parameters:

JSON Schema

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

Parameters Table

ParameterTypeDescriptionDefault
dataExpstringList of prices-
timeperiodnumberTime period for the moving average30
  • dataExp: A string representing the list of prices. This should be a comma-separated list of numbers.
  • timeperiod: The time period for the moving average. This should be a positive integer. The default value is 30.