The cTrader Position Sizer robot by EarnForex.com is a version of the similar MetaTrader tool.
It can automatically calculate the volume of a trade based your risk inputs, the size of your account, the currencies involved, your broker's commission, and your personal preferences.
It is a customizable robot that, addition to standard position sizing, can help you understand the margin, potential portfolio risk & profit, and swaps involved in your trade.
This Position Sizer cBot can be used to open trades with either a mouse click or by pressing a keyboard shortcut.
You can find a detailed description of this robot and its input parameters here: https://www.earnforex.com/ctrader-robots/cTrader-Position-Sizer/
Its installation instructions can be found here: https://www.earnforex.com/ctrader-robots/cTrader-Position-Sizer/#Installation
All sorts of code and idea contributions are welcome!