• QUANTITY
  • RISK
  • CAPITAL
  • HUMAN

How to determine position sizing with your agent

Connect your portfolio data to your AI client to automate the math behind each trade. It calculates exactly how many shares to buy based on your risk tolerance.

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 position size using AI?

Tell your agent your total portfolio value, the entry price, and your stop-loss level. Your agent uses the plan_position_size tool to output the specific number of shares you should hold to keep your risk within your defined limits. You'll get precise numbers instead of guessing.

The results you get

Precise risk management outcomes

Once you provide your trade parameters, your agent delivers these specific results.

QUANTITY

Exact share counts

Your agent calculates the specific number of units to buy. This removes the manual math from your execution.

RISK

Defined loss limits

Each calculation is tied to your specific stop-loss. You'll know exactly how much capital is at risk before you enter the trade.

CAPITAL

Portfolio allocation

Your agent checks your total account value to ensure your position doesn't exceed your available buying power.

HUMAN

Final trade execution

Your agent provides the numbers, but you decide if the setup is worth the risk. You remain the one who pulls the trigger.

The workflow

What your agent does when the trade details arrive.

Your agent handles the heavy lifting of risk management so you can focus on the chart.

  1. Analyze risk parameters

    Your agent reads your entry price and stop-loss distance to determine the risk per share.

    plan_position_size
  2. Calculate share counts

    Your agent runs the math against your total portfolio value to find the optimal position size.

    plan_position_size
  3. Validate against capital

    Your agent ensures the suggested position doesn't require more cash than you actually have in your account.

    plan_position_size
  4. Present trade plan

    You receive a clean breakdown of the shares to buy and the total dollar amount at risk.

    plan_position_size

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 Stock Profit/Loss 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 get immediate results from your agent.

Starting points

Replace the stock names and dollar amounts with your actual trade ideas.

Stock Profit/Loss Calculator Connector

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

Connector linkhttps://edge.vinkius.com/vk_preview_HAwMqRC5G8A9KVk7eepP7raRNgSJXfXzscNts3mK/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, Stock Profit/Loss Calculator capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "stock-profitloss-calculator-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_HAwMqRC5G8A9KVk7eepP7raRNgSJXfXzscNts3mK/mcp"
    }
  }
}
Copy into chat04
  • 01

    Calculate my position size for 100 shares of NVDA if my portfolio is $50,000 and my stop-loss is at $115.

  • 02

    I have $25,000 in my account. How many shares of TSLA can I buy if I want to risk only $500 on the trade with a stop-loss at $170?

  • 03

    Using my current portfolio value, what is the max position size for AAPL if I set my stop-loss 5% below my entry?

  • 04

    Help me plan a trade for AMD. My total capital is $10,000, entry is $150, and stop-loss is $142.

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

Start here

Connect Stock Profit/Loss Calculator once, then ask.

Click the link to connect the MCP to your client. Your credentials stay encrypted and you can start running math immediately.

Connect Stock Profit/Loss Calculator to your agent

FAQ

How the calculator behaves

  • 01

    Can your agent execute the trade for me?

    No. Your agent only calculates the math. You must manually place the order in your brokerage.

  • 02

    Does your agent know my real-time brokerage balance?

    No. You must tell your agent your current portfolio value or account balance in the prompt.

  • 03

    Will your agent change my stop-loss orders?

    No. This tool only performs calculations. It cannot access or modify your live brokerage account.

  • 04

    Can it calculate risk for multiple stocks at once?

    Yes, if you provide the parameters for each stock in your prompt.

  • 05

    What happens if my stop-loss is too tight?

    Your agent will still calculate the math, but it won't warn you if the position size becomes too small to be meaningful.

  • More questions about Stock Profit/Loss Calculator? The Connector page answers them. See everything the Stock Profit/Loss 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 Stock Profit/Loss 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.

    Stock Profit/Loss 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 Stock Profit/Loss 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.