Skip to main content
Glama

Clear Tape

Position size calculator

calculate_position_size
Read-onlyIdempotent

Position size from the stop: how many shares to buy (or short) so that a stop-out loses a set percentage of the account. Computed with the same function as Clear Tape's free position size calculator page (linked in the result), not estimated. Returns the inputs, each result with its unit, the formula and the page link. Educational, not investment advice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNoLanguage of the returned text: "en" (default) or "zh" (Simplified Chinese).en
stopYesStop price per share in USD. Below the entry for a long, above it for a short; not equal to the entry.
entryYesEntry price per share in USD.
accountYesAccount size in USD.
riskPctYesRisk per trade, percent of the account (1 = 1%). Above 0, at most 100.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources