Actually, in trading terms, a year is only 12*20 days, since only about 20 days a month are working days.
So two years are 24*20 = 480, which means, you could either increase the LookBack period accordingly, or alter the ATR command later in the script.