Exemplo n.º 1
0
        /// <summary>
        /// Сохранить состояние параметров эмуляции.
        /// </summary>
        /// <param name="storage">Хранилище.</param>
        public override void Save(SettingsStorage storage)
        {
            base.Save(storage);

            storage.SetValue("StartTime", StartTime);
            storage.SetValue("StopTime", StopTime);
            storage.SetValue("OrderLogMode", OrderLogDataMode.To <string>());
            storage.SetValue("DepthMode", DepthDataMode.To <string>());
            storage.SetValue("MarketTimeChangedInterval", MarketTimeChangedInterval);
            storage.SetValue("UnrealizedPnLInterval", UnrealizedPnLInterval);
            storage.SetValue("LogLevel", LogLevel.To <string>());
            storage.SetValue("TradeMode", TradeDataMode.To <string>());
            storage.SetValue("BatchSize", BatchSize);
        }
Exemplo n.º 2
0
        /// <summary>
        /// To save the state of paper trading parameters.
        /// </summary>
        /// <param name="storage">Storage.</param>
        public override void Save(SettingsStorage storage)
        {
            base.Save(storage);

            storage.SetValue(nameof(StartTime), StartTime);
            storage.SetValue(nameof(StopTime), StopTime);
            storage.SetValue(nameof(OrderLogDataMode), OrderLogDataMode.To <string>());
            storage.SetValue(nameof(DepthDataMode), DepthDataMode.To <string>());
            storage.SetValue(nameof(MarketTimeChangedInterval), MarketTimeChangedInterval);
            storage.SetValue(nameof(UnrealizedPnLInterval), UnrealizedPnLInterval);
            storage.SetValue(nameof(LogLevel), LogLevel.To <string>());
            storage.SetValue(nameof(TradeDataMode), TradeDataMode.To <string>());
            storage.SetValue(nameof(BatchSize), BatchSize);
        }