Forum

OrderSend error: 4111,4110

When I set “Long Only” or “Short Only” in the advisor settings, the terminal sees error 4110 or 4111, how can I write a check for position allowing in the code before completing the OrderSend function

OrderSend error: 4111,4110

When I set “Long Only” or “Short Only” in the advisor settings, the terminal sees error 4110 or 4111, how can I write a check for position allowing in the code before completing the OrderSend function . Here is my code. double spread = Ask-Bid; int total = OrdersTotal (); if (total == 0 &&

Position type allowing MQL4 EA

how to write a check in the code of the mql4 advisor " Only Short " and "Only Long" so as not to get errors 4110 or 4111