Support Board
Date/Time: Fri, 10 Jan 2025 13:11:16 +0000
Post From: Compilier error
[2016-09-03 20:37:07] |
ertrader - Posts: 681 |
Here are all the functions that are failing now: int ControlFile(SCStudyInterfaceRef sc) { std::ifstream input("controlfile.txt"); // set the global variables to local variables so the parameters are passed input >> g_ControlLine; } float WriteFile(SCStudyInterfaceRef sc) { std::ofstream output; output.open ("writefile.txt", std::ofstream::out | std::ofstream::app); // insert into the file and add spaces between variables output << g_ControlLine << " " << g_ProfitFactor << " " << g_TotalPercentProfitable << " " << g_MaximumDrawdown << " " << g_MaximumTradeRunup <<" " << g_TotalTrades << " " << g_TotalLongTrades << " " << g_TotalShortTrades << "\n"; output.close(); } int ProcessingFile(SCStudyInterfaceRef sc) { std::ofstream output; output.open ("processing.txt", std::ofstream::out | std::ofstream::ate); // insert into the file and add spaces between variables output << g_Processing; output.close(); } int StartProcessing(SCStudyInterfaceRef sc) { // enable or disable processing. 0 = disable, 1 = enable. Used to control when initially loading the study std::ifstream input("startprocessing.txt"); input >> g_StartProcessing; } |