public static void CalcRex(string pair) { List <string> instrument = new List <string>(); instrument.Add(pair); var point = GetAccountInstrumentsAsync(AccountID, new AccountInstrumentsParameters { instruments = instrument }).Result.Last().pipLocation; Rex = CalcMA(TVB, PeriodLength); Rex = Rex.Select(i => i / Math.Pow(10, point - 1)).ToArray(); }