private Bar GetBarPrefab(BarType barType) { if (barType == BarType.PlainBar) return plainBarPrefab; else if (barType == BarType.ButtonBar) return buttonBarPrefab; else { Debug.LogError("invalid bar type: " + barType.ToString()); return null; } }
public static void DeleteBar(Instrument instrument, DateTime datetime, BarType barType, long barSize) { DataManager.DeleteDataObject(instrument, datetime, new string[] { "Bar", barType.ToString(), barSize.ToString() }); }
public static void DeleteBarSeries(Instrument instrument, BarType barType, long barSize) { DataManager.DeleteDataSeries(instrument, new string[] { "Bar", barType.ToString(), barSize.ToString() }); }