4
Да я не о том. Хотя, наверное, оптимизация выровняла ошибку в эксперте.
В советнике написано
res = OrderSend(Symbol(), OP_BUYSTOP, lot1, PriceUp1, Slip, StopLossUp, TakeProfUp, "Up 1", Magic, Time[1] + 24*60*60);
if(res<0) {Alert("OrderSend BUY1 Error: ", GetLastError());}
res = OrderSend(Symbol(), OP_BUYSTOP, lot2, PriceUp2, Slip, StopLossUp, TakeProfUp, "Up 2", Magic, Time[1] + 24*60*60);
if(res<0) {Alert("OrderSend BUY2 Error: ", GetLastError());}
res = OrderSend(Symbol(), OP_BUYSTOP, lot2, PriceUp3, Slip, StopLossUp, TakeProfUp, "Up 3", Magic, Time[1] + 24*60*60);
if(res<0) {Alert("OrderSend BUY3 Error: ", GetLastError());}
а должно быть
res = OrderSend(Symbol(), OP_BUYSTOP, lot1, PriceUp1, Slip, StopLossUp, TakeProfUp, "Up 1", Magic, Time[1] + 24*60*60);
if(res<0) {Alert("OrderSend BUY1 Error: ", GetLastError());}
res = OrderSend(Symbol(), OP_BUYSTOP, lot2, PriceUp2, Slip, StopLossUp, TakeProfUp, "Up 2", Magic, Time[1] + 24*60*60);
if(res<0) {Alert("OrderSend BUY2 Error: ", GetLastError());}
res = OrderSend(Symbol(), OP_BUYSTOP, lot3, PriceUp3, Slip, StopLossUp, TakeProfUp, "Up 3", Magic, Time[1] + 24*60*60);
if(res<0) {Alert("OrderSend BUY3 Error: ", GetLastError());}