Invalid Ticket for OrderCloseFunction / OrderCloseError4051
GlobalVariableSet(ticket,number); }} if (OrdersTotal() != 0){ Print(OrdersTotal()); OrderSelect(GlobalVariableGet(ticket),SELECT_BY_TICKET); // If the next is available
- RTFM. What is the first parameter to GVSet? What is it's type? What type is ticket and it's value?
- Why are you using global variables? Use them only for communication between EA's. You can not use them for persistent storage.
- What are Function return values ? How do I use them ? - MQL4 forum
Hello,
since three days, i sit on this problem and don't find the problem. Maybe someone of you could help me.