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