/// <summary> /// Stops the trade. /// </summary> void StopTrade() { if (!isTrading) { return; } isTrading = false; DeinitTrade(); Data.SetStopTradingTime(); JournalMessage msg = new JournalMessage(JournalIcons.StopTrading, DateTime.Now, Language.T("Automatic trade stopped.")); AppendJournalMessage(msg); SetTradeStrip(); return; }