public void Init(string symbol) { //AllocConsole(); m_symbol = symbol; java.lang.System.setOut(new PrintStream(new ByteArrayOutputStream())); java.util.TimeZone.setDefault(java.util.TimeZone.getTimeZone("GMT")); TestParameters.TestName = "MTTest"; bool initAll = true; if (initAll) { //Feng.Data.DbHelper.Instance.ExecuteNonQuery("truncate table [Forex_MT].[dbo].[EURUSD_D1]"); //Feng.Data.DbHelper.Instance.ExecuteNonQuery("truncate table [Forex_MT].[dbo].[EURUSD_M1]"); //Feng.Data.DbHelper.Instance.ExecuteNonQuery("truncate table [Forex_MT].[dbo].[EURUSD_HP]"); System.IO.File.Delete(string.Format("{0}\\console.txt", TestParameters.BaseDir)); System.IO.File.Delete(TestParameters.GetBaseFilePath(string.Format("{0}_ccScores.txt", TestParameters2.CandidateParameter.MainSymbol))); } if (m_simuStrategy == null) { InitSimulationStrategys(); } m_mleaRealTime.Init(); }