MACD — Moving Average Convergence Divergence for Openclaw

A technical analysis tool for AI agents to calculate and interpret Moving Average Convergence Divergence from price data.

bytesagain-lab
v2.0.4
Mar 27, 2026
0
980
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install macd

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install macd using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is MACD — Moving Average Convergence Divergence?

The MACD skill provides a robust framework for AI agents to perform technical analysis on financial time-series data. It allows for the calculation of the Moving Average Convergence Divergence line, the signal line, and the histogram, which are critical for identifying momentum and trend direction. By leveraging this tool within Openclaw Skills, developers can build agents capable of sophisticated market analysis without external heavy dependencies, as it relies only on standard bash and python environments.

MACD — Moving Average Convergence Divergence Use Cases

  • Automating market momentum analysis for cryptocurrency or stock price series.
  • Identifying bullish and bearish crossovers to trigger automated trading signals.
  • Analyzing historical price data from CSV files to identify divergence patterns.
  • Integrating technical indicator calculations into AI-driven financial research workflows.

How MACD — Moving Average Convergence Divergence Works

  1. The user inputs a comma-separated list of prices or provides a CSV file path.
  2. The skill processes the price series to compute Exponential Moving Averages (EMA).
  3. It calculates the MACD line by subtracting the long-term EMA from the short-term EMA.
  4. A signal line is derived from the EMA of the MACD line itself.
  5. The difference between the MACD and signal lines is calculated to produce the histogram.
  6. The tool outputs formatted technical data, including crossover analysis and strategic interpretations.

MACD — Moving Average Convergence Divergence Setup

This skill requires bash 4+ and python3. To begin using it within your Openclaw Skills setup, ensure the scripts are accessible in your environment.

# To calculate MACD from an inline series:
bash scripts/script.sh calculate "170.5,171.2,172.8,171.0,173.5"

# To process a file:
bash scripts/script.sh calculate-file prices.csv

MACD — Moving Average Convergence Divergence Data Schema & Taxonomy

The skill produces structured data outputs that categorize the technical state of the asset.

Indicator Description
EMA Values Exponential Moving Averages calculated at each data point
MACD Line The primary trend-following momentum indicator
Signal Line An EMA of the MACD line used for signal triggers
Histogram The difference between MACD and Signal lines, indicating momentum
Crossover Signals Logical flags identifying when the MACD crosses the Signal line

MACD — Moving Average Convergence Divergence Advanced Features

  • Direct interpretation of MACD values to provide human-readable trading signals.
  • Support for bulk processing via CSV file input for historical backtesting.
  • Built-in strategy frameworks for entry and exit rule planning within Openclaw Skills.
  • Momentum reading guides for interpreting histogram expansion and contraction.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*