getMaTypeFromString = function (maType) {
        // no constant in lib?
        const types = ['SMA', 'EMA', 'WMA', 'DEMA', 'TEMA', 'TRIMA', 'KAMA', 'MAMA', 'T3'];
        return types.includes(maType) ? types.indexOf(maType) : 1;
      }
Extract int from string input eg (SMA = 0)

@see https://github.com/oransel/node-talib
@see https://github.com/markcheno/go-talib/blob/master/talib.go#L20