public ImportAccountStateBotConfig()
        {
            IsDebug        = false;
            RefreshTimeout = 1000;
            Mode           = ImportMode.Market;

            CSVConfig = new CSVFileConfig
            {
                DefaultVolume = 1.0,
                Separator     = ",",
                TimeFormat    = "yyyy-MM-dd'T'H:mm:ss'Z'",
                SkipFirstLine = true,
            };

            TrailingLimitPercentMode = new TrailingLimitPercentModeConfig
            {
                Percent = 0.1,
            };
        }
Exemple #2
0
 public TralingLimitModeWatcher(string symbol, ImportAccountStateBot bot) : base(symbol, bot)
 {
     _config             = bot.Config.TrailingLimitPercentMode;
     _tralingPercentCoef = _config.Percent * 0.01 * _symbol.Point;
 }