diff --git a/src/lib/api/services/OrderService.proto b/src/lib/api/services/OrderService.proto index f8994b08e..d4d4f67ff 100644 --- a/src/lib/api/services/OrderService.proto +++ b/src/lib/api/services/OrderService.proto @@ -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; diff --git a/src/lib/orderman/orders/algo/algo_orders/FileRunner.cpp b/src/lib/orderman/orders/algo/algo_orders/FileRunner.cpp index b7db0a76a..f2906ade0 100644 --- a/src/lib/orderman/orders/algo/algo_orders/FileRunner.cpp +++ b/src/lib/orderman/orders/algo/algo_orders/FileRunner.cpp @@ -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),