我copy了OpenQuant Strategy Development文档里的范例程序到OQ 2.8.1里,结果不能编译,说"OpenQuant.API.Order" is a "type", which is not valid in the given context. public override void OnBarOpen(Bar bar) { // calculate the size of the gap down since last bar double gap_size = (prevClose - bar.Open) / prevClose; // issue a buy order if the gap is big enough if (gap_size > desired_size) { Order order = Order (Side.Buy, qty); //Order order = Order (); //order.Side = Side.Buy; //order.Qty = qty; order.Text = "Tech1_System1 - Buy"; order.Send (); } } 请问有人知道是哪里的问题吗?
It seems like you picked an invalid syntax as OQ API doc has a few syntax alternatives corresponding to different programming languages used.