Accessing MACD Components in BigQuant 3.0 Expressions
Summary
This brief platform discussion explains how users can call MACD in BigQuant 3.0 after an older expression format stopped working. It gives two supported expression forms: a windowed MACD function and a shorthand helper. Both calculate MACD from closing prices with the usual 12, 26, and 9 parameters.
The practical issue is that the returned value is a list of indicator components rather than a single number. A user attempting to compare the whole result with zero encounters a type conversion error. The reported fix is to select the desired component by its position in the list, which allows a condition such as testing whether the histogram is below zero. The post does not specify the component ordering or provide a full expression for selecting the histogram, so users should verify the list structure in their own environment.
Key ideas
- BigQuant 3.0 supports more than one expression form for calculating MACD.
- The MACD function returns a list of components rather than a single scalar value.
- A comparison against zero can fail when applied to the entire list.
- Select the relevant list element before using a MACD component in a condition.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.