Esempio n. 1
0
 private void buttonStartMMBot_Click(object sender, EventArgs e)
 {
     Log.initialize();
     Parallel.Invoke(
         () => MasterThread.startMasterThread(),
         () => MarketData.startMarketData(),
         () => MMbot.startMMBot(80, 0.03)
         );
 }
Esempio n. 2
0
        private async void buttonExitAll_Click(object sender, EventArgs e)
        {
            Log.initialize();
            if (SystemFlg.getMarketDataFlg() == false)
            {
                MasterThread.startMasterThread();
                await Task.Delay(1000);

                MarketData.startMarketData();
                await Task.Delay(3000);
            }

            Account ac = new Account();
            await ac.updateCurrentPositions();

            await ac.startExitPriceTracingOrder();
        }
Esempio n. 3
0
 private void buttonStopMasterThread_Click(object sender, EventArgs e)
 {
     MasterThread.finishMasterThread();
 }
Esempio n. 4
0
 private void buttonStartMasterThread_Click(object sender, EventArgs e)
 {
     MasterThread.startMasterThread();
     MarketData.startMarketData();
 }