Definition
MACD line (fast EMA minus slow EMA), its signal EMA, or the histogram (MACD minus signal). Classic trend/momentum indicator.
Parameters
Asset, Fast length (12), Slow length (26), Signal length (9), Interval (Day), Line (macd | signal | histogram)
Output range: Price scale (line/signal); either sign (histogram)
Example condition
`MACD(AAPL) histogram > 0` (Fast EMA above its signal — bullish momentum)Usage notes
Use the `line` parameter to pick the macd line, signal line, or histogram. All three warm up together, so switching lines never delays readiness.
Use in a strategy
Add this indicator to a strategy condition, choose its supported parameters and compare the output with the threshold required by your rule. Preserve the same interval and lookback when comparing backtests.
After saving the condition, inspect its asset, interval, lookback and comparison operator against the parameters above. If no trades occur, check whether the condition ever became true and whether the requested input data exists for that period. A missing input is not a zero-valued signal. An indicator produces an input to a rule. It does not establish future returns, and data availability can differ across assets and periods.