I'm trying to understand this function. The documentation says "Calculates the quantity, based on the percentage of the capital you're willing to risk per trade."
Does that mean it decides qty, based on what you could afford to lose, if the price goes from entry to stop, and limits that to max 3% of capital? How is the risk calculated and what % of capital is traded per trade? Won't this qty be static, if you have a fixed stop-loss and take profit?