Machine Learning, Deep Learning, Cryptocurrency Investment, Algorithmic Trading, Neural Networks.
= [6, 8, 10, 12, 14, 16, 18, 22, 26, 33, 44, 55] name_periods = [6, 8, 10, 12, 14, 16, 18, 22, 26, 33, 44, 55] df = data.copy() new_columns = [] for period in time_periods: for nperiod in name_periods: df[f'ATR_{period}'] = ta.ATR(df['High'], df['Low'], df['Close'], timeperiod=period)