i want my function to send an order and if the order is not successful, the order should be sent repeatedly till it is
i know how to check if the send was successful
how do i tell it to repeat the ordersend?
You could use
but its not recommended because if the sl or tp or any value is wrong it will result the robot to be stuck in an endless loop.
just a check
but its not recommended.
how do i count the order to increment ticket value
do i say?
But its not recommended it can result in an endless loop and disconnection from the server due to choking requests if your values are not correct.
In stead you can check the return value in most cases it will try to order another time on the next tick if the condition is still valid.
while(ticket<0 && try<200);