Skip to main content
Glama

Agent Financial Advisor

Position sizing

position_size

Size a position the way a risk manager would: fixed-fractional risk to a stop, volatility targeting (ATR or annualized vol), or fractional Kelly from your edge statistics. Applies a max-position cap and round lots, and explains the binding constraint. Price: $0.005.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
atrNovolatility: average true range in price units.
sideNolong
equityYes
methodYes
avg_winNokelly: average win (any unit, same as avg_loss).
avg_lossNokelly: average loss as a positive number.
lot_sizeNoRound down to this multiple, default 1.
risk_pctNofixed_fractional: fraction of equity to risk, default 0.01.
win_rateNokelly: probability of a win (0-1).
annual_volNovolatility: annualized volatility of the asset (e.g. 0.35).
stop_priceNofixed_fractional: protective stop.
entry_priceYes
atr_multipleNovolatility: stop distance in ATRs, default 2.
kelly_fractionNokelly: fraction of full Kelly to use, default 0.25.
allow_fractionalNo
max_position_pctNoCap on position value / equity, default 0.2.
target_annual_vol_contributionNovolatility: target vol contribution as fraction of equity, default 0.02.

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.