Calculate optimal position size based on account risk percentage and stop loss. Built for AI trading agents.