Added max loss, added start/stop times for simulation, added price only order changes.
This commit is contained in:
1 parent
c6697b82fe
commit
c9a0d4489b
15 files changed
+216
-95
No files matched your search
@@ -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"),' ');
|
||||
|
||||
Reference in new issue
Block a user