/// <summary>Watch for bot stopped</summary>
        protected override void OnBotStopping()
        {
            base.OnBotStopping();

            // Log the whole instrument
            Debugging.DebuggingEnabled = true;
            Debugging.ReportEdge(100);
            Debugging.Dump(Debugging.AllTrades.Values);
            Debugging.Dump(Instrument, mas: new[] { MA0, MA1 });
            Debugging.DebuggingEnabled = false;
        }
Пример #2
0
        /// <summary>Watch for bot stopped</summary>
        protected override void OnBotStopping()
        {
            base.OnBotStopping();

            // Log the whole instrument
            Debugging.DebuggingEnabled = true;
            Debugging.ReportEdge(100);
            Debugging.Dump(Debugging.AllTrades.Values);
            Debugging.Dump(Instrument, mas: new[] { Indicator.EMA(Instrument, 5), Indicator.EMA(Instrument, 15), Indicator.EMA(Instrument, 100) });
            Debugging.Dump("channels.ldr", ldr =>
            {
                foreach (var ch in Channels)
                {
                    ldr.Rect("channel", 0xFF0000FF, AxisId.PosZ, ch.Idx.Sizef, ch.Price.Sizef, false,
                             new v4(ch.Idx.Midf, ch.Price.Midf, 0f, 1f));
                }
            });
        }
Пример #3
0
        /// <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;
        }