To calculate the ATR for a stock, you take the highest value from the following three: current high minus the current low, current high minus the previous close, or the current low minus the previous close. These values are then typically averaged over 14 days to get the ATR.