This formula is based on Ed Thorp's on the best way to figure out how much money you can risk on a single trade. According to the article at TopStepTrader Lessons from Trading Great Ed Thorp