Hi all ...
The error is on SendSingleTrade function, this line:
if (OrderType() != OP_BUY && OrderType() != OP_SELL)
Should be like this:
if (OrderType() != OP_BUYSTOP && OrderType() != OP_SELLSTOP)
The error is on SendSingleTrade function, this line:
if (OrderType() != OP_BUY && OrderType() != OP_SELL)
Should be like this:
if (OrderType() != OP_BUYSTOP && OrderType() != OP_SELLSTOP)