This script calculates the amount of stocks in a trade based on risk awareness. The risk awarness is part of portfolio management and the book "sustainable & successfull trading" by Faik Giese. Input is depot size (cash and stocks), risk per depot position, max. Stop-Loss and ATR.