老师们,同时有多单和空单 open这样写可以指定是多单的开仓价嘛?谢谢啦
76826
|
4378 人阅读
|
30 人评论
|
2022-07-15
for (int i = OrdersTotal() - 1; i >= 0; i--) {
if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES) == true) {
if (OrderSymbol() == Symbol() && OrderType() == orderType) {
double open = OrderOpenPrice();
if (orderType == OP_BUY) {
if (Ask < (open - nsSlPoint * Point))
|
|
|
|
|