updated file runner
This commit is contained in:
1 parent
c20bd60ff7
commit
ea13bb31ec
2 files changed
+5
-3
No files matched your search
@@ -286,9 +286,10 @@ message MomentumAlgoParamsFile {
|
||||
uint32 time_start_hours_24_hrs = 16;
|
||||
uint32 time_start_minutes = 17;
|
||||
uint32 date_start_day_of_month = 18;
|
||||
uint32 date_start_month_0_12 = 19;
|
||||
uint32 date_start_month_1_12 = 19;
|
||||
uint32 date_start_year_20xx = 20;
|
||||
double run_duration_hours_decimal = 21;
|
||||
string market_data_security = 22;
|
||||
}
|
||||
// message MomentumAlgoResult {
|
||||
// // google.protobuf.Timestamp time = 3;
|
||||
|
||||
@@ -211,11 +211,12 @@ void FileRunner::run_algo(const api::orderman::MomentumAlgoParamsFile p) {
|
||||
"rt "
|
||||
"Mont"
|
||||
"h "
|
||||
"(0-"
|
||||
"(1-"
|
||||
"12"
|
||||
")"] = dynamic_parameter(p.date_start_month_0_12());
|
||||
")"] = dynamic_parameter(p.date_start_month_1_12());
|
||||
map["Date Start Year "
|
||||
"(20XX)"] = dynamic_parameter(p.date_start_year_20xx());
|
||||
map["Market Data Security"] = dynamic_parameter(p.market_data_security());
|
||||
rv.mutable_custom_def()->mutable_dynamic()->CopyFrom(momentum);
|
||||
me->child_template_buy = &(me->servg->make_child_template(rv));
|
||||
auto key = _algo().launch_child(*me->child_template_buy, Price(1321.5),
|
||||
|
||||
Reference in new issue
Block a user