• DATA
  • METRICS
  • ANALYSIS
  • HUMAN

How to calculate swing movement metrics with your agent

Connect your agent to price data and let it handle the math for each pivot. It turns raw price action into clean, measurable swing data.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How do I calculate swing movement metrics with my AI?

Your agent uses the ZigZag Indicator Calculator to find price pivots and measure the distance and time between them. You get precise amplitude and duration values for each swing. This breakdown shows you how the data flows from price action to actionable metrics.

The results

What you get from the data

Your agent processes price movements into these specific outputs.

DATA

Clean pivot points

Your agent identifies each significant high and low. You get a list of coordinates that define the market structure.

METRICS

Swing math

The tool calculates the exact price change and the number of bars between pivots. This gives you the amplitude and duration for each move.

ANALYSIS

Trend strength

By comparing swing sizes, your agent determines if momentum is increasing or fading. This helps you spot shifts in market character.

HUMAN

Strategy decisions

Your agent provides the numbers, but you decide how to trade them. You use the calculated metrics to set your stops and targets.

The workflow

What your agent does when the data arrives.

Your agent handles the heavy lifting of pattern recognition and arithmetic.

  1. Identify pivots

    Your agent scans the price feed to find local highs and lows based on your specified sensitivity. It ignores minor noise to focus on meaningful turns.

    analyze_swing_metrics
  2. Measure amplitude

    Once pivots are set, your agent calculates the vertical distance between each high and low. This tells you exactly how much price moved in each leg.

    analyze_swing_metrics
  3. Calculate duration

    Your agent counts the time or number of candles between identified pivot points. This provides the horizontal component of the swing.

    analyze_swing_metrics
  4. Format results

    Your agent organizes these metrics into a structured format. You can then ask questions about the trend or use the data for further modeling.

    analyze_swing_metrics

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute ZigZag Indicator Calculator tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts to trigger the calculation immediately.

Starting points

Swap the bracketed text for your specific ticker or timeframe.

ZigZag Indicator Calculator Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_K8FGiUhL2QUd6SX2Rxh3V4ZB1XYqXC8VMSkxurDA/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, ZigZag Indicator Calculator capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "zigzag-indicator-calculator-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_K8FGiUhL2QUd6SX2Rxh3V4ZB1XYqXC8VMSkxurDA/mcp"
    }
  }
}
Copy into chat04
  • 01

    Analyze the swing metrics for BTC/USD on the 4h chart.

  • 02

    Find the amplitude and duration for the last three swings in the AAPL price data.

  • 03

    Calculate the swing metrics for the current trend in the ETH/USDT feed.

  • 04

    Using the ZigZag data, tell me the average duration of swings on the 15m chart for TSLA.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect ZigZag Indicator Calculator once, then ask.

Click the link to connect the MCP to your client. Your credentials stay encrypted, and you can start asking for swing data right away.

Connect ZigZag Indicator Calculator to your agent

FAQ

How the task behaves

  • 01

    Can your agent execute trades based on these swings?

    No. Your agent only calculates and reports the metrics. You must execute all trades yourself through your own brokerage or platform.

  • 02

    Does your agent change my historical price data?

    No. Your agent only reads the data to perform calculations. It cannot modify your price feeds or historical records.

  • 03

    How does it decide what a pivot is?

    It uses the sensitivity parameters you provide in your prompt to distinguish between noise and actual price turns.

  • 04

    Can I use this for any asset?

    Yes, as long as you can provide the price data to your AI client, it can run the calculations on that data.

  • 05

    Will your agent automatically update my spreadsheet with these numbers?

    No. Your agent provides the calculated metrics in the chat. You would need to manually move that data to a sheet unless you use a different tool for writing.

  • More questions about ZigZag Indicator Calculator? The Connector page answers them. See everything the ZigZag Indicator Calculator Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from ZigZag Indicator Calculator to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    ZigZag Indicator Calculator plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect ZigZag Indicator Calculator to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.