Пример #1
0
        public AutoTreader(ref Archive ARCHIVE, ref OpenRatesBlotter ORBlotter, ref OpenDealsBlotter ODBlotter, ref OpenSettingsBlotter OSBlotter, ref Account ACCOUNT)
        {
            this.ARCHIVE   = ARCHIVE;
            this.ODBlotter = ODBlotter;
            this.ORBlotter = ORBlotter;
            this.OSBlotter = OSBlotter;
            this.ACCOUNT   = ACCOUNT;
            this.ANALYSIS  = new Analysis(ref ARCHIVE, ref ACCOUNT);

            foreach (TimeFrame TFrame in ARCHIVE.LTFrames)
            {
                DATA.Add(TFrame, new ConcurrentDictionary <string, ChartPointPredition>());
            }
        }
Пример #2
0
        public Form1()
        {
            DATABASE = new DataBase(USERID);

            ACCOUNT = DATABASE.Load_Account(USERID);
            if (ACCOUNT == null)
            {
                ACCOUNT = new Account();
            }

            CEDA_Authentyficator.ApplicationName = APPNAME;
            CEDA_Authentyficator.IPAddress       = "demorates.efxnow.com";// "87.205.102.39";
            CEDA_Authentyficator.Language        = "English";
            CEDA_Authentyficator.MachineName     = "EUROCOM";


            this.StartConnection();



            InitializeComponent();



            PSBlotter = new ProductsSettingsBlotter(TOKEN);
            ODBlotter = new OpenDealsBlotter(TOKEN, USERID);
            ORBlotter = new OpenRatesBlotter();


            this.SendString(TOKEN + "\r");
            this.UpdateDeals();
            this.UpdateAccount();



            TimrStartup.Enabled = true;
        }