/// <summary> /// Reset data and stats. /// </summary> private void ResetTrader() { tickLocalTime = DateTime.Now; // Prevents ping for one second. StopTrade(); Data.IsConnected = false; bridge.ResetBarsManager(); Data.ResetBidAskClose(); Data.ResetAccountStats(); Data.ResetPositionStats(); Data.ResetBarStats(); Data.ResetTicks(); UpdateTickChart(Data.InstrProperties.Point, Data.ListTicks.ToArray()); UpdateBalanceChart(Data.BalanceData, Data.BalanceDataPoints); UpdateChart(); }