public static TPManager AddPair(CurrencyPair pair) { if (tradePairs == null) { tradePairs = new Utility.TSList <TPManager>(); } TPManager tpMan = new TPManager(pair); tpMan.Setup(); tpMan.RecalculateVolatility(); tpMan.Start(); tradePairs.Add(tpMan); return(tpMan); }
public static void AddPairLocal(CurrencyPair pair) { // adds the pair without pulling any data, using only what's available from file if (tradePairs == null) { tradePairs = new Utility.TSList <TPManager>(); } TPManager tpMan = new TPManager(pair); tpMan.Setup(false); tpMan.RecalculateVolatility(); Console.WriteLine("Added Pair " + pair + " Locally."); tpMan.Start(); tradePairs.Add(tpMan); }