def ATAN(df, price='Close'): """ Arc Tangent """ atan_list = [] i = 0 while i < len(df[price]): atan = cmath.atan(df[price][i]).real atan_list.append(atan) i += 1 return atan_list