Added max loss, added start/stop times for simulation, added price only order changes.

This commit is contained in:
Pedro Pinto committed 2020-12-22 10:58:05 -05:00
1 parent c6697b82fe
commit c9a0d4489b
15 files changed
+216 -95

No files matched your search

+11
View File
@@ -221,6 +221,17 @@ PTime parse_simple_date_time_string (std::string const &t)
return boost::posix_time::time_from_string(t);
}
PDuration parse_duration (std::string const &time_str) {
try {
return boost::posix_time::duration_from_string (time_str);
}
catch (boost::bad_lexical_cast &)
{
bts_assert (false);
return boost::posix_time::time_duration ();
}
}
std::string FIX_date_time_string (PTime const &t)
{
std::string result (strlen ("20121204-14:44:02"),' ');