I made this indicator to calculate position sizes for manually traded securities. “Semi” realtime—manually input available funds, percentage to trade and leverage (eg. for 3:1, input 3). When using in a scanner, format the style property to Number and 0 decimals.
Edit: just noticed you can lose the decimals on the chart too in the scaling preference setting. If someone wants to code this to round down to the nearest 100, feel free and please post!