My order line:
OrderSend(Symbol(),OP_BUYLIMIT,1,NormalizeDouble(RectanglePriceMin+300*Point,Digits),3,NormalizeDouble(RectanglePriceMin,Digits),NormalizeDouble(RectanglePriceMax,Digits)+500*Point,"Order Sent", 16384,0,Green);
Trying to select my order to write the profits + or - in my journal:
if(OrderSelect(16384, SELECT_BY_TICKET)==true)
Print("Profit for the order 16384 ",OrderProfit());
else
Print("OrderSelect returned the error of ",GetLastError());
But I get instead a 4105 error ... weird.. ?
OrderSend(Symbol(),OP_BUYLIMIT,1,NormalizeDouble(RectanglePriceMin+300*Point,Digits),3,NormalizeDouble(RectanglePriceMin,Digits),NormalizeDouble(RectanglePriceMax,Digits)+500*Point,"Order Sent", 16384,0,Green);
Trying to select my order to write the profits + or - in my journal:
if(OrderSelect(16384, SELECT_BY_TICKET)==true)
Print("Profit for the order 16384 ",OrderProfit());
else
Print("OrderSelect returned the error of ",GetLastError());
But I get instead a 4105 error ... weird.. ?
Know your indicators!