示例#1
0
 private void buttonStartMMBot_Click(object sender, EventArgs e)
 {
     Log.initialize();
     Parallel.Invoke(
         () => MasterThread.startMasterThread(),
         () => MarketData.startMarketData(),
         () => MMbot.startMMBot(80, 0.03)
         );
 }
示例#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();
        }
示例#3
0
 private void buttonStopMasterThread_Click(object sender, EventArgs e)
 {
     MasterThread.finishMasterThread();
 }
示例#4
0
 private void buttonStartMasterThread_Click(object sender, EventArgs e)
 {
     MasterThread.startMasterThread();
     MarketData.startMarketData();
 }