Made the leverage dialog work. Calculated value is automatically added to the quantity editbox on the trading form.