I have created in tradingview (pine script) three Exponential Moving Averages and I want to create an array from such EMA's.
I have tried this:
//@version=5
indicator("My script")
ema3 = ta.ema(close,3)
ema6 = ta.ema(close,6)
ema9 = ta.ema(close,9)
arr = array.new_float([ema3,ema6,ema9])
But I get this error:
Cannot call 'array.new_float' with argument 'size'='ema3,ema6,ema9'. An argument of '[series float, series float, series float]' type was used but a 'series int' is expected.
I need to create an array (or a list) containing those EMA's. For example, in Python I'd do:
arr = [ema3,ema6,ema9]
Can anyone help me please?