This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

Perpetual Position Size Calculator

Trading · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — try it free, no account needed.
CategoryTrading
PlatformAll
Pricing Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.

About this app

WHAT IT DOES

Perpetual Position Size Calculator watches the current perpetual trading page for the user's wallet address and token, reads the user's wallet balance and current token price from the blockchain, calculates the maximum position size based on the user's collateral and leverage, computes the risk-adjusted position size based on the user's risk tolerance and stop-loss distance, compares with protocol limits, and displays recommendations with position size options, risk metrics, and optimal leverage suggestions. The tool connects to the user's wallet via window.ethereum, reads the user's token balance and current price, calculates the available collateral in USD, determines the maximum position size based on leverage, computes the risk-adjusted position size using the Kelly-style formula (riskAmount / stopLossPct), and provides clear recommendations for position sizing and leverage.

WHERE IT RUNS

The tool runs as a panel inside your browser on GMX perpetual trading pages at https://app.gmx.io/*. It works on GMX trading pages where the user is planning to open a position. The tool connects to your real EVM wallet extension (MetaMask, WalletConnect, or any wallet injecting window.ethereum) to read on-chain data via eth_call and the ethers library loaded at runtime. No data is sent to any external server; all reads happen directly from the blockchain through your wallet provider.

HOW TO USE

Install the BotGentz extension, navigate to GMX, and open the Perpetual Position Size Calculator panel. Set your risk tolerance percentage (default 2%) — the tool will calculate position size based on this percentage of your wallet you are willing to risk. Set your stop-loss distance percentage (default 5%) — the tool uses this to determine the position size that will risk only your risk tolerance amount if the stop-loss is hit. Set your minimum and maximum leverage (default 1x to 25x) — the tool will recommend leverage within this range. Toggle "Auto-check on page load" if you want the tool to analyze automatically when you open the panel. Click "Calculate" — the tool reads your wallet balance and token price, calculates your collateral in USD, computes the optimal position size using the risk-adjusted formula, determines the recommended leverage, and displays a comprehensive analysis with position size options, risk metrics, and leverage recommendations. Review the output and use the recommendations for manual execution through the perpetual interface.

MECHANISM — RISK-ADJUSTED POSITION SIZING WITH LEVERAGE OPTIMIZATION

This tool uses a risk-adjusted position sizing engine that applies the Kelly criterion for optimal position sizing. The system first connects to window.ethereum and requests the user's wallet address. It reads the user's token balance via eth_call and fetches the current token price to calculate the collateral in USD. The tool then applies the risk-adjusted position sizing formula: Position Size = (Collateral * RiskPct) / (StopLossPct / 100). This ensures that if the stop-loss is hit, the loss is limited to the user's risk tolerance. The leverage is calculated as Position Size / Collateral, and clamped within the user's configured range. The tool also calculates the maximum position size based on the maximum leverage. Recommendations are generated based on the calculated leverage relative to the configured range, helping users decide whether to use higher or lower leverage for their trade.

THE PANEL

The BotGentz panel is fully draggable, allowing you to position it anywhere on your screen without obstructing the GMX interface. It includes per-site position memory, so the panel returns to your preferred location each time you visit the exchange. Snap-to-edge functionality lets you dock the panel to any side of the browser window. The panel collapses to a compact icon when not in use and expands with a single click. You can resize it to your preferred dimensions, and pressing the Escape key instantly closes the panel. All interactions are smooth and intuitive, designed to work alongside your trading workflow.

PLEASE NOTE

This tool requires the free BotGentz extension and a real EVM wallet extension (such as MetaMask) already installed in your browser. EVM chains only — currently supports Ethereum mainnet and compatible networks. This is an analysis and planning tool only — it does not execute position opening transactions automatically. The tool cannot guarantee that the displayed price matches the exact moment of execution due to price changes. It cannot account for slippage or price impact during execution. It cannot read position data from perpetual protocols other than GMX. It cannot predict price movements or risk outcomes. It cannot read private wallet information or trading intentions. All blockchain reads are performed directly through your wallet provider; no data is stored or transmitted beyond your browser. Websites change their layouts and content structures regularly; while we continuously update the extraction logic, some pages may require script updates. Always verify all position size, leverage, and risk calculations independently before executing any transactions.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.