We have been using a 20D ATR, which is the average absolute of the price difference between the Max of (High of day, Previous close) and the Min of (Low of day, Previous close).
We did not "optimize" but measured different ATR periods and the 20D seemed to be the most adequate, although it is slow.
Pascal