/// <summary></summary> protected override void OnBotStopping() { if (m_ldr != null) { Util.Dispose(ref m_grp); m_ldr.ToFile(Debugging.FP("training.ldr")); } Instrument.Dump(); Util.Dispose(ref m_training); Util.Dispose(ref m_testing); base.OnBotStopping(); }
/// <summary>Watch for bot stopped</summary> protected override void OnBotStopping() { base.OnBotStopping(); // Log the whole instrument Debugging.DebuggingEnabled = true; Debugging.ReportEdge(100); var ldr = new pr.ldr.LdrBuilder(); foreach (var trade in Debugging.AllTrades.Values) { Debugging.Dump(trade, ldr_: ldr); Debugging.Dump(new PricePeaks(Instrument, trade.EntryIndex + Instrument.IdxFirst), ldr_: ldr); } ldr.ToFile(Debugging.FP("trades.ldr")); Debugging.Dump(Instrument); Debugging.DebuggingEnabled = false; }