You let your risk level determine your position size.
If you choose to have a 1% risk level and you have 100,000 dollars in your account then you risk losing 1000 of every trade you make.
If the stock is selling for 25.00 but you have to give it 2.00 worth of room then you can only buy 500...