HT_TRENDMODE
Type:
ht_trendmode• Category:indicators
Description
Hilbert Transform - Trend vs Cycle Mode
Parameters
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
dataExp | string | prices data | no | |
price | string | Price field to use to calculate HT_TRENDMODE | no |
Help
HT_TRENDMODE
Hilbert Transform - Trend vs Cycle Mode
The HT_TRENDMODE worker is an indicator used in financial analysis to identify the trend versus cycle mode of a given price data. This worker is part of a larger set of indicators used to analyze financial markets.
Description
The Hilbert Transform (HT) is a mathematical technique used to analyze signals. In the context of financial analysis, it is used to identify the trend and cycle components of a price series. The HT_TRENDMODE worker specifically focuses on determining whether the price data is in a trend mode or a cycle mode.
What does this worker do?
The HT_TRENDMODE worker takes two parameters:
dataExp: The price data to analyze.price: The price field to use for the calculation.
It then applies the Hilbert Transform to the price data to identify the trend versus cycle mode.
How to interpret the results
The output of the HT_TRENDMODE worker is a value that indicates whether the price data is in a trend mode or a cycle mode.
- Trend Mode: A value of 1 indicates that the price data is in a trend mode, meaning that the price is following a clear upward or downward trend.
- Cycle Mode: A value of 0 indicates that the price data is in a cycle mode, meaning that the price is oscillating within a range.
Usage
To use the HT_TRENDMODE worker, simply pass in the required parameters:
HT_TRENDMODE(dataExp, price)
Example
Here is an example of how to use the HT_TRENDMODE worker:
HT_TRENDMODE(prices, close)
Visualizing the Indicator
For a visual representation of how to use the HT_TRENDMODE worker, please refer to the following images:
Full GIF
[](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_full.gif)
Short GIF
[](https://pub-6c7cc7f707d94ca98153d59a039b9a3d.r2.dev/indicator_short.gif)
Additional Information
The Hilbert Transform is a powerful tool for analyzing signals, and the HT_TRENDMODE worker is a valuable addition to any financial analysis toolkit. By identifying the trend versus cycle mode of a price series, traders and analysts can gain insights into market behavior and make more informed investment decisions.