Javascript – Sum a number of range values; process and add to array
I'm attempting to create a Simple Moving Average (SMA) for an existing list of downloaded ETH prices. The main function calls a separate function to do the SMA calculation. It has 2 params: sheet: A 'sheet' object sma1: The length…