"In general" you want the position cash value (num of shares times share price) to be proportional to the inverse to volatility, whether that is measured by ATR, STD, or w/e. The devil is in the details I suppose, you could also include forward looking estimates of vol (from options).